DellAXIMX50PDAUserInterfacewithDataAcquisition_第1页
DellAXIMX50PDAUserInterfacewithDataAcquisition_第2页
DellAXIMX50PDAUserInterfacewithDataAcquisition_第3页
DellAXIMX50PDAUserInterfacewithDataAcquisition_第4页
DellAXIMX50PDAUserInterfacewithDataAcquisition_第5页
已阅读5页,还剩15页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、PAGE PAGE 20Dell AXIM X50 PDA User Interface with Data Acquisition Patrick BowlesCEN 3213Professor Janusz ZalewskiFlorida Gulf Coast UniversityNovember 2, 2008Introduction“Data acquisition is the sampling of the real world to generate data that can be manipulated by a computer. Sometimes abbreviated

2、 DAQ or DAS, data acquisition typically involves acquisition of signals and waveforms and processing the signals to obtain desired information. The components of data acquisition systems include appropriate sensors that convert any measurement parameter to an electrical signal, which is acquired by

3、data acquisition hardware” 1.There are many different companies on the market, dealing with just this kind of technology. In this project we are dealing exclusively with the process of PDA data acquisition. There are several companies that work on these technologies. For example, National Instrument

4、s has several different systems that deal with data acquisition. The CF-6004 is the data acquisition device that is used in this project (Figure 1). Another device from National Instruments is the DAQCard-6024E which has more functionality than others but is more expensive and almost twice the size

5、(Figure 2). We are using the CF-6004 because we have a Dell Axiom X50 PDA that has a Compact Flash slot so the CF-6004 is prefect for our needs or our hardware.Figure 1Figure 2Data Acquisition Cards from National Instruments (Source: ).Another type of Data Acquisition System can be built with FPGA (

6、field programmable gate array). An FPGA is a semiconductor device containing programmable logic components called logic blocks, and programmable interconnects. Logic blocks can be programmed to perform the function of basic logic gates such as AND, and XOR, or more complex combinational functions su

7、ch as decoders or mathematical functions. In most FPGAs, the logic blocks also include memory elements, which may be simple flip-flops or more complete blocks of memory. An example of an FPGA is a ZestSC2 which is a high performance desktop USB board.1Figure 3FPGA board ZestSC2There are also PCI Dat

8、a Acquisition boards available; however, they are not moveable due to the fact that they are connected to a desktop PC. On the plus side they are built for high speed and high resolution not mobility. 2. Hardware and Software Description2.1 Device Description - PDAThis device has multiple uses, more

9、 than is possible to list. In todays day and age having a device that can do various jobs is not just a benefit, its a necessity. The most useful purpose of such a device is the ability to connect to external devices in the field for the purpose of data acquisition dealing with sensors, for example.

10、 The Dell Axim X50 PDA is, when released, on the top of a very short list. The specifications of this PDA model are listed in Table 1 and pictures in Figure 4.Figure 4, Dell Axim X50 Source:43Installed RAM64MB SDRAMInstalled ROM128MBProcessorIntel 520 MHz XScaleInput device typeStylus, Touch screen,

11、 5-way navigation buttonDigital audio standards supportedMP3, WMAAudio input typeBuilt in MicrophoneAudio output typeBuilt in Speakers Voice recording capabilityYesDisplay type3.5 in TFT active matrixColor support16-bit(64K colors)Max resolution240 x320Wireless connectivityWi-Fi, Bluetooth, IEEE 802

12、.11bBattery Type1100mAh Lithium IonOperating SystemWindows Mobile Edition 2003 Second EditionStorage Card SD Memory Card, Compact Flash Card Type IITable 1 Dell Axim X50 Specs(Source: 2) “The Axim X50 features a bright 3.5 QVGA display with a 320 x240 resolution, and includes the power and storage c

13、apacity to handle work and multimedia applications. The X50 handheld has a sleek and stylish design with CF and SDIOexpansion slots for connecting scanners, GPS systems, network cards and modems. The X50 is powered by the next-generation Intel PXA270 processor that provides technology to help extend

14、 battery life and deliver enhanced multimedia performance. Featuring Microsoft Windows MobileTM 2003 Second Edition software for Pocket PCs with familiar applications like Word, Excel and Internet Explorer, you can stay productive while you are away from your home or office on the go. Thanks to the

15、standard 1100 mAh battery, Bluetooth and optional Wi-Fi you can stay both productive and connected all day long.”22.2 Other Hardware DescriptionNI CF-6004 CompactFlash Data Acquisition for PDAs is designed to be lightweight and ultra portable specifically for mobile application. Some practical appli

16、cations are Biomedical/wearable computing, field monitoring/ diagnostics, and portable data logging and analysis. Measuring less than 16 cm2, slightly larger than a standard postage stamp, the National Instruments CF-6004 is a tiny, yet powerful platform for handheld measurements. With 14-bit resolu

17、tion and up to 132 kS/s aggregate sampling on four analog input channels, the NI CF-6004 packs full measurement functionality into a Type II CompactFlash slot, available on many PDAs. The NI CF-6004 is ideal for many portable applications, from consolidation of multiple handheld instruments to custo

18、m handheld measurement, analysis, and communication. The block diagram in Figure 5 shows key functional components of the CF-6004.Figure 5 General view of the CF-6004 DAQ board. A couple other pieces of hardware are the connector cable NI SH-15-15 Shielded Cable with D-sub Connector and the NI SCB-1

19、5 Shielded Compact Connector Block (DB-15 adapter) which is what is connected to the battery pack, in order to get a voltage reading. Figure 7 shows the terminal assignments for the DB-15 connector, and Figure 6 shows the battery pack used in this project.Figure 6 Battery pack connected to the conne

20、ctor block (DB-15)Figure 7 Pin layout for DB-15 Connector2.3 Programming the PDAA number of programming methods are available to be implemented on the X50, however the CF-6004 requires the use of LabVIEW 6. The use of Java is also possible, but it does not have functions specific for data acquisitio

21、n, as LabVIEW does. 2.3.1 JAVA ProgrammingOk the first step was just to familiarize myself with the device. Understand how it works and how to install and run programs. The program Ive been using is Mysaifu. Mysaifu is a Java Virtual Machine which runs on Windows Mobile 2003 5. So that being said we

22、 need to download the file JVM.Release.CAB 10.7MB from the website: HYPERLINK http:/sourceforge.jp/projects/mysaifujvm/files/?release_id=29215%2329215%20 http:/sourceforge.jp/projects/mysaifujvm/files/?release_id=29215#29215To your local Computer then with a program call Microsoft ActiveSync witch s

23、hould be installed from the CD we received with the Dell Axim X50 PDA. ActiveSync is a File transfer program that will allow you to transfer anything from you computer to the PDA. Just like an external drive just drag and drop what you want on the PDA and ActiveSync will automatically send it to the

24、 PDA. Ok so sent the JVM CAB file to the PDA then simply tap the file and the Mysaifu JVM will do the rest. Before we can run a java program on the PDA we need to create the java program first then, after compiling it we must send the class file to the PDA and any other files that goes with the clas

25、s file (there may be more than one file) and make sure that you put it in my Documents on the PDA because that is were the program (Mysaifu) looks for these file by default. If you choose to use another location for you class file simply select the “Options” button shown in Figure 10 and the in the

26、window shown in Figure 11 go down to current directory and tap the Browse button then select your directory then the program should be ready to run.After installing the program go to Programs folder as seen in Figure 9 and open the JVM as seen in Figure 10. You will see that by default the type of f

27、ile is Class so all you have to do is enter the name of the class file in the name text box and select Show console if you are displaying something on the console. Then press “execute” to run the program. Ive had mixed success with the JVM and have not yet cleared all the bugs. However on nice featu

28、re with Mysaifu JVM is that it keeps a “Recent list” or in other words a list of recently ran programs. Figure 8 shows the success of a simple hello world program.package helloworld;public class HelloWorld public HelloWorld()System.out.println(HelloWorld);public static void main(Stringarg)HelloWorld

29、 HW = new HelloWorld();Figure 8Simple Hello World ProgramFigure 9 - PDA Program FolderFigure 10 Mysaifu JVM user InterfaceFigure 11 Mysaifu JVM to input command line argumentsHowever after a little research it was discovered that using Java will be difficult, since Java does not have the appropriate

30、 libraries. Due to software requirements with the CF-6004 were will use LabVIEW to build our applications.2.3.2 LabVIEW IntroductionNI LabVIEW is short for Laboratory Virtual Instrument Engineering Workbench, and is an intuitive graphical programming language for engineers and scientists, that have

31、high level tools and configuration utilities that are designed for real world data. “LabVIEW is a platform and development environment for visual programming. The LabVIEW program has two windows the front panel and the block diagram. LabVIEW is commonly used for data acquisition, instrument control,

32、 and industrial automation on a variety of Operating Systems.”7 The graphical language is named “G” originally released for Apple Macintosh in 1986.The block diagram is where the programmer develops the graphical code. The flow of data determines the execution of the program. The Front panel is wher

33、e the programmer creates the graphical user interface with you can customize object like graphs, knobs, and buttons. Figure 12 shows an example program, this is the code of the program, notice that there are no lines of code in this example which greatly reduces the risk of syntax errors. Figure 12

34、Example LabVIEW ProgramIn the front panel simply drag and drop the components that apply to the current project then you have to switch to the block panel. In the block panel the components have to be connected to other function icon using a wiring tool. After you create the program and have all the

35、 correct connection then you hit the go button and the LabVIEW software will compile and run the program. On the PDA LabVIEW actually installs an exe file for you to run.2.3.3 LabVIEW Installation and ProgrammingIn this project the software version used is LabVIEW 8.2(20th Anniversary edition). Ther

36、e are six disks required for everything to work, and three files that have to be downloaded from National Instruments website. Professional Development System for WindowsDevice Drives disk (there are three disk for this step)NI DAQmx Base 2.2PDA Module for Pocket PC (Windows Mobile 2003 Se)Though th

37、e HYPERLINK /public.nsf/websearch/AF586D34790A379886256D73005CAF13?OpenDocument l 7.1 link, download from the Microsoft Web Site.Embedded Visual C+4.0Embedded Visual C+4.0 SP4SDK for Windows Mobile 2003-based Pocket PCs On a PC with Windows XP it takes a little over 2GB of space on the hard drive fo

38、r the software to be loaded. Before a LabVIEW program can run on the PDA the driver have to be installed on the PDA. To do this, make sure Microsoft ActiveSync is installed and working on the host computer, and that the PDA is in the cradle and the USB plug is connected to the host computer. Then go

39、 to: StartProgramsNational InstrumentsNI-DAQmx Base Windows Mobile and CE Driver Installation.Now everything is ready to start developing the LabVIEW programs. Open the LabVIEW software by: StartProgramsNational Instrument LabVIEW 8.2.1 After it loads the start window will appear (Figure 11). Figure

40、 13 LabVIEW Start screen Then select the type of project or VI (Virtual Instrument) to create, circled in red in Figure11, after making the selection the front and back panel will appear along with the project explorer, and now every thing is ready to start making the VI Figure12.Figure 14 Front and

41、 Block Panels Below are the control palette (Figure 15) used for controls on the front panel and the Functions palette (Figure 16) used on the block diagram to manipulate the data. All of these are just drag and drop icons that have to be wired to one another to make working programs.Figure 15 Contr

42、ol PaletteFigure 16 Functions Palette3. Problem DescriptionIn this project the goal is to write software to connect to a battery pack to the PDA through the CF-6004 and read the voltage from the battery pack to product a waveform graph. Many other input sources could be used for this project such as

43、 sensors to collect field data. The next step is to add a networking aspect or have Internet connectivity with this device. In other words, from a website, retrieve data by accessing the PDA program and have it send the data to the website to display it from the website. (Figure 17) So far it seems

44、that the PDA is used as a server to send the data through a TCP/IP connection using IP addresses to a client program that can be embedded into a web page or possibly downloaded to any computer as long as it has LabVIEW run-time engine installed.Figure17 Data Acquisition Diagram with networking.4. So

45、lutionThe solution to this problem is to develop a software program to connect to the input source using the CF-6004 through the compact flash that is connected to the PDA, then read the data and display it in the form of a waveform graph on the PDA screen. The second part of this project is to use

46、Computer Networking to make this project more useful to anyone with internet access. By setting up a server client relationship to send the data that is collected from the PDA over a TCP/IP connection to a client that is embedded into a Web page. So in order to control the front panel and see the gr

47、aph one would only have to go to that website.5. ImplementationUnlike other programming languages like C, C+, or Java there isnt hundreds of lines of code to make this project work as shown in Figure 18. Using LabVIEWs graphical programming language to develop complicated programs looks very simple.

48、 Here is the Pseudo Code for this project. Please refer to Figure 18 for the actual code. The numbers of steps in pseudo code corresponds to the numbers in Figure 18.Specify an analog input voltage taskCall the start VI to start the acquisitionRead the data in a loop until the user hits the stop but

49、ton or an error occursCall the stop VI to stop the TaskUse the popup dialog box to display an error if anyFigure18 Code Written in LabVIEW for this projectThe following block diagram example represents a client application that initiates a connection to a remote server.Figure 19 Sample client application. The following block diagram example shows how the server uses the remote address output value of the TCP.Figure 20 Samp

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论