版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
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. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 市場(chǎng)機(jī)會(huì)發(fā)現(xiàn)健康科技與醫(yī)療創(chuàng)新考核試卷
- 化學(xué)礦資源開(kāi)發(fā)與生態(tài)文明建設(shè)考核試卷
- 政府小型工程合同模板
- 庭院工程合同模板
- 天然氣市場(chǎng)發(fā)展態(tài)勢(shì)與預(yù)測(cè)考核試卷
- 光電流計(jì)與光功率計(jì)的增益調(diào)節(jié)與輻射測(cè)量方法研究考核試卷
- 2024年企業(yè)合并協(xié)議書(shū)(含股權(quán)轉(zhuǎn)讓)
- 農(nóng)藥制造的生產(chǎn)流程與工藝規(guī)劃考核試卷
- 2024年農(nóng)村飲用水電氣化工程合同
- 供貨協(xié)議合同模板油漆
- 2024砍伐樹(shù)木合同書(shū)
- 2024年02月重慶市沙坪壩區(qū)事業(yè)單位2024年第一季度公開(kāi)招聘167名工作人員0筆試歷年典型考題及考點(diǎn)研判與答案解析
- 國(guó)開(kāi)作業(yè)《公共關(guān)系學(xué)》實(shí)訓(xùn)項(xiàng)目1:公關(guān)三要素分析(六選一)參考552
- 財(cái)政收支業(yè)務(wù)管理制度
- 第24屆世界奧林匹克數(shù)學(xué)競(jìng)賽WMO省級(jí)測(cè)評(píng)六年級(jí)試卷【含答案】
- 多圖中華民族共同體概論課件第十一講 中華一家與中華民族格局底定(清前中期)根據(jù)高等教育出版社教材制作
- 2017年天津?yàn)I海新區(qū)公務(wù)員考試《行測(cè)》真題
- 中國(guó)計(jì)算機(jī)系統(tǒng)集成行業(yè)深度分析及發(fā)展前景與發(fā)展戰(zhàn)略研究報(bào)告2024-2029版
- 現(xiàn)代物流管理 試卷及答案 C卷
- 注塑工藝損耗率
- 鋼結(jié)構(gòu)漏雨維修方案
評(píng)論
0/150
提交評(píng)論