Tablets in Data Acquisition



Similar documents
COPYRIGHT RESERVED TEAM MYSTERIOUS MANIACS HOME AUTOMATION via BLUETOOTH (Using ANDROID PLATFORM)

4.1 Introduction 4.2 Explain the purpose of an operating system Describe characteristics of modern operating systems Control Hardware Access

Reminders. Lab opens from today. Many students want to use the extra I/O pins on

Example of Standard API

Discovering Computers

Fall Lecture 1. Operating Systems: Configuration & Use CIS345. Introduction to Operating Systems. Mostafa Z. Ali. mzali@just.edu.

Syncing ipad devices using itunes

Access Tropical Cloud Desktop from Any Device

Industrial DAQ System for Measurements and Monitoring. Hans-Petter Halvorsen, M.Sc.

SOFTWARE UNIT 1 PART B C O M P U T E R T E C H N O L O G Y ( S 1 O B J A N D O B J 3-2)

Mobile Print/Scan Guide for Brother iprint&scan

DATENBLATT USB-DIO32HS USB-DIO32HS-OEM. HABEN SIE FRAGEN ODER WÜNSCHEN SIE EIN INDIVIDUELLES ANGEBOT? Unser Team berät Sie gerne persönlich.

Getting Started With Parallels Desktop 8

New Mexico Broadband Program. Basic Computer Skills. Module 1 Types of Personal Computers Computer Hardware and Software

Fachbereich Informatik und Elektrotechnik SunSPOT. Ubiquitous Computing. Ubiquitous Computing, Helmut Dispert

Welch Allyn Connectivity SDK Development

Quickstart Guide Vodafone Mobile Wi-Fi R207

BYOD Mobile Device Chart

Mobile Print/Scan Guide for Brother iprint&scan

Harry Fike Frostburg State University Office of Information Technology Technical Services

Quickstart Guide Vodafone Mobile Wi-Fi R209-Z

User Guide Vodafone Pocket WiFi Pro. Designed by Vodafone

Do you know what makes NetSupport Manager so unique?

Avira Secure Backup INSTALLATION GUIDE. HowTo

Important Bluetooth. and Software Considerations for Wireless Barcode Scanner Deployments

Developing Applications for ios

KANGAROO MOBILE DESKTOP USER GUIDE

A Beginners Guide To Responsive, Mobile & Native Websites 2013 Enhance.ie.All Rights Reserved.

Chapter 4. Operating Systems and File Management

User Guide Vodafone Mobile Wi-Fi R206-Z. Designed by Vodafone

STEELSERIES FREE MOBILE WIRELESS CONTROLLER USER GUIDE

User Guide Vodafone Mobile Wi-Fi R210. Designed by Vodafone

Installation Instructions

Quickstart Guide Vodafone Mobile Wi-Fi R216-Z

Answers to Your Frequently Asked Questions About the Microsoft Office365 Program for Pasadena City College Faculty and Staff

Before proceeding with the update process, Back-up/Synch your data to maintian: Calendar Events Contacts Accounts Messages

Mobile Print/Scan Guide for Brother iprint&scan

IBM Endpoint Manager for Mobile Devices

Kaseya 2. User Guide. Version 1.0

Parallels Desktop 8 for Mac

N600 Wireless Dual Band Router

Connecting your Aiki phone to a network

QUICK START GUIDE Bluetooth Cordless Hand Scanner (CHS)

Systems Manager Cloud Based Mobile Device Management

Mobile Operating Systems. Week I

Mobile Application Testing

Quick Start Guide. Version R9. English

01. Introduction of Android

Setting up RDP on your ipad

VIRTUAL SOFTWARE LIBRARY REFERENCE GUIDE

Enterprise Analytics. (Also known as Pyramid Analytics or BI Office) Mobile Device Support

NEW! CLOUD APPS ReadyCLOUD & genie remote access

User Guide Vodafone Mobile Wi-Fi R206-Z. Designed by Vodafone

Dell Wyse Cloud Connect

ShareLink 200 Setup Guide

Mobile Communicator for Mobile Devices

Gauge Drawing Tool Slider Drawing Tool Toggle Button Drawing Tool One-Way List Drawing Tool... 8

Zebra Link-OS Environment Version 2.0

Using MCC GPIB Products with LabVIEW

Medstar Health Dell Services

The End is Near. Options for File Management and Storage

OS X LION SET UP THE SYSTEM

A Review of Different Comparative Studies on Mobile Operating System

How To Use Tsplashbox On A Pc Or Mac Or Mac (For A Pc) With A Windows 7 Computer (For Mac) Or Mac) With Tsplatro (For Pc) Or Ipad (For Windows) With An

Ways to Use USB in Embedded Systems

Spontania User Setup Guide

STEREO WIRELESS BLUETOOTH HEADPHONES

Kaseya 2. User Guide. Version 7.0. English

Consumerization. Managing the BYOD trend successfully. Harish Krishnan, General Manager, Wipro Mobility Solutions

Wireless Presentation Gateway. User Guide

Simplify the Deployment and Management of Desktop Virtualization & VDI Technologies. Terry Lewis Solutions Architect

Centralized Mac Home Directories On Windows Servers: Using Windows To Serve The Mac

Manual. Start accepting card payments with payleven

mcashier User Guide To accept payments To cancel a payment

Statement of Direction

How To Use Wineweb Point Of Sale With An Ipad Or Iphone Or Ipod With A Browser On A Pc Or Ipad On A Cell Phone Or Ipo On A Computer Or Ipd On A Tablet Or Ipot On A

Next Gen Platform: Team & Mentor Guide

Mobility with Eye-Fi Scanning Guide

Parallels Desktop 7 for Mac

Bluetooth 4.0 Solutions for Apple ios Devices. Bluegiga Technologies

Mobile Testing That s Just a Smaller Screen, Right?

N750 Wireless Dual Band Gigabit Router Premium Edition

farmerswife Contents Hourline Display Lists 1.1 Server Application 1.2 Client Application farmerswife.com

Yamaha 01V96 Version2 Upgrade Guide

g!mobile 6 Android App Android 4.0 or above -- See Android Devices table for compatibility information Document Revision Date: 2/14/2013

16GB ~ 32GB Wi-Fi SD Card

Introduction to Virtual Machines

Technology in Action. Alan Evans Kendall Martin Mary Anne Poatsy. Eleventh Edition. Copyright 2015 Pearson Education, Inc.

Mobile App User's Guide

GoToMyPC reviewer s guide

Evolving in the global digital scenario. Politecnico di Torino

User Guide Vodafone Mobile Wi-Fi R212. Designed by Vodafone

PNY DUO-LINK On-The-Go Flash Drive for iphone and ipad. User Manual

Using Virtual PC 7.0 for Mac with GalleryPro

TELUS Business Connect Meeting User Guide. Video Conference. Web Share.

Transcription:

Tablets in Data Acquisition Introduction In the drive to smaller and smaller data acquisition systems, tablet computers bring a great appeal. Desktop personal computers gave engineers the power to create custom test and measurement applications. Laptop computers gave engineers the ability to create smaller and more portable DAQ systems. Are tablet computers the natural evolution of this trend? While penetration of tablets still lags that of traditional PCs, the growth rate of tablets has been phenomenal. According to IDC, tablet sales grew 78.4% in 2012. IDC expects tablet sales to surpass desktop sales in 2013 and portable PCs In 2014. The growth in tablets, however, has not yet penetrated the engineering lab. Because both desktop and laptop platforms shared much of the same infrastructure microprocessors, operating systems, and programming language - the move from desktop computer to laptop was relatively seamless. Tablets, on the other hand, support different programming languages, run under a different operating system, and have less processing power and connectivity options than their PC counterparts. The top two programming languages for custom DAQ applications C# and National Instruments LabVIEW, are not supported in either Android or ios and USB, a common data acquisition bus, can drain precious power from tablet batteries. Because of these technical discontinuities, moving to a tablet requires special attention to how systems and applications are put together. With limited battery capacity and lack of processing power, the tablet is a less forgiving environment for DAQ application developers and requires a deeper understanding of how the program and the operating system interact. A few apps are available There are a few test and measurement apps on the market, such as the Oscium s imso- 104, a 5 MHz bandwidth mixed signal oscilloscope. The imso- 104 oscilloscope supports one analog and 4 digital signals and offers 12 MSPS sampling. Its circuitry connects to the Dock Connector Port and uses the ipad, ipod Touch, or iphone as the display and user interface. Another app is the NI Data Dashboard for LabVIEW. The Data Dashboard runs on both ios and Android, and allows users to create custom and portable views of NI LabVIEW applications by displaying the values of network published shared variables and/or web services on charts, gauges, text indicators and LEDs. While not taking data directly, the Data Dashboard provides access to real time test data on a tablet. While the Oscium and NI apps provide a useful start to bringing tablets into the lab, neither of them let users build custom DAQ apps like they have for years on desktops and laptops.

Building Custom Applications The ability to create custom applications that fit a particular industry need catapulted the personal computer into the test and measurement arena. If the tablet is going to significantly break into this market, users need to create custom applications for this platform as well. There are three main differences in creating a DAQ application on a tablet vs. creating a DAQ application on a personal computer hardware connectivity, program language/structure support, and device driver support. Hardware Connectivity Personal computers were designed to easily add peripherals, either with internal or external buses. The controlled environment of a tablet has far fewer options for connecting peripherals. WiFi and Bluetooth are two communication methods that most tablets support, and the Apple ipad includes a proprietary Dock Connector Port; however, connectivity to existing DAQ devices is a challenge for tablet applications A survey of the DAQ market shows very few options that offer WiFi, Bluetooth, or the Apple Dock Connector Port. The communication method that offers the most options today - both in tablets and DAQ devices - is USB. While a growing number of Android tablets support USB host mode, USB data acquisition, many devices derive power from their hosts, taxing already limited battery capacity. As the application space for tablets in test and measurement grows, more devices supporting Bluetooth, WiFi, and WiFi Direct will become available. Programming Language and Structure Most PC- based DAQ programs are written in NI LabVIEW or C#; however, tablets support neither of these programming languages. Programming in Android is done in Java,while programming in ios is done in Objective C both are object oriented languages that are similar to C++ and C#. Unlike personal computers where languages like NI LabVIEW or DASYLab allow novice users to create custom applications, tablets require expertise in object- oriented programming. This means that tablet app development is really the domain of those with a strong background in programming. Beside the language difference, programming a DAQ application on a tablet is significantly different than programming a DAQ application on a personal computer. Since tablets have limited memory and processor speeds, they cannot handle having many programs running at once. Instead of letting programmers manage when an application closes (as desktop operating systems do), the tablet OS either Android or ios decides when to close them. This is why you do not typically see a close button on a tablet application. The application lifecycle is an important concept to understand when programming tablet devices. To understand application lifecycle, we will look at the Android OS. Android defines four program components and we will focus on two activities and services. An activity represents a single

screen with a user interface which may be closed at any time. A service is a component that, when set to foreground mode, runs without interruption in order to perform long- running operations. Activities are managed in a stack. When a new activity starts, it is placed on the top of the stack and becomes the running activity, while the previous activity always remains below it in the stack. This activity does not come to the foreground again until the new activity exits. An activity has essentially three states: If an activity is in the foreground of the screen (at the top of the stack), it is active or running. If an activity has lost focus but is still visible (that is, a new non- full- sized or transparent activity has focus on top of your activity), it is paused. A paused activity is completely alive (it maintains all state and member information and remains attached to the window manager), but can be killed by the system in extreme low memory situations. If an activity is completely obscured by another activity, it is stopped. It retains all state and member information; however, it is no longer visible to the user. so its window is hidden and it is often killed by the system when memory is needed elsewhere. 1 If an activity is paused or stopped, the system can drop the activity from memory by either asking it to finish, or simply killing its process. In essence, if an application is not in the foreground, it has the potential of being killed by the OS. Imagine this happening during a critical data collection operation! A way around this uncertainty is to use services application components that perform long- running operations in the background. An activity has no control over when it is considered in the foreground or in the background. By contrast, a service can be manually set to run in the foreground, minimizing the chance that it will be closed. An activity can start a service and have it continue running even if the user switches to another application. For example, a service might handle network transactions, play music, perform file I/O, or collect data from a DAQ device, all running without interruption of another activity coming into the foreground. While the OS can also kill services, it is far less likely and only in states of low memory or low power. Driver Support Device drivers offer a high- level way to easily and reliably execute DAQ board functionality. Device drivers are components of DAQ systems that many take for granted since these drivers are supplied free with the DAQ hardware. While all data acquisition companies provide drivers for Windows, support for a tablet OS is a different matter. Without the device driver or intricate knowledge of the device, interfacing with a DAQ device from a tablet is futile. Measurement Computing has taken the lead in driver support for Android OS creating Universal Library for Android a native Java software API for data acquisition. With the UL for Android API, you can easily create custom data acquisition apps for Android devices. UL for Android communicates with supported Measurement Computing DAQ devices over the Android 3.1 platform (API level 12) and later. 1 From developer.android.com

The first data acquisition board supported by UL for Android is the BTH- 1208LS. The BTH- 1208LS was designed with tablets and phones in mind as it offers reliable and easy- to- set- up Bluetooth connectivity along with rechargeable batteries. Later in 2013, UL for Android will be expanded to support a full line of MCC USB data acquisition devices. For a list of data acquisition devices supported by UL for Android, please visit http://www.mccdaq.com/ulforandroid. Sample program available A quick way to learn how to program for tablets is to look at an example. The Software Engineering group at Measurement Computing has put together example projects for Android tablets using UL for Android: ftp://ftp.mccdaq.com/downloads/ul_for_android/ While not overly complex, this application program shows that data acquisition on a tablet device with a standard off- the- shelf DAQ device is possible with the right driver support, an understanding of the platform limitations, and a good knowledge of object- oriented programming. Getting Started If you are interested in creating your own DAQ application on a tablet, you need to download the required tools and the Android Software Development Kit (SDK). Android development can be done on a Mac, Windows, or Linux machine. For more information, please refer to: 5 Steps to Creating and Deploying Android Data Acquisition Apps. To download the Android tools, visit: http://developer.android.com/sdk/index.html Windows is a registered trademark of Microsoft Corporation

Android is a trademark of Google Inc. Macintosh is a registered trademark of Apple Inc. Linux is a registered trademark of Linus Torvalds in the United States and other countries. LabVIEW is a trademark of National Instruments. DASYLab is a registered trademark of National Instruments Ireland Resources Limited.