Calling External Code in LabVIEW PDA for Pocket PC - Battery Information Example
This example is intended to illustrate how to call external code using the LabVIEW PDA for Pocket PC module. This example in particular shows how to call to the Pocket PC OS and retrieve information regarding the battery of the device. The same procedure would be used for other calls to external code. A stub dll must be created in order for LabVIEW to be able correctly us the Call Library Function Node. This stub dll only has to have to proper function declaration as the code actually used when built for the Pocket PC device is taken from the .c or .lib file attached in the Build PDA Application dialog box. The stub dll is built as a normal Windows dll. The PPCBatt.dll must also be copied to the Windows directory on the device. The Visual Studio 6.0 project for the stub dll and the Embedded Visual C++ project for the Pocket PC dll is included. Embedded Visual C++ should already be installed if the LabVIEW PDA for Pocket PC module is installed.
Note: LabVIEW PDA 7.0 uses Embedded Visual Tools 3.0, while LabVIEW PDA 7.1 uses Embedded Visual C++ 4.0. That attached examples include projects for their respective versions.
Requirements
Filename: ppcbatt7_1.zip
Software Requirements
Application Software: LabVIEW Full Development System 7.1
Toolkits and Add-Ons: LabVIEW PDA Module 7.1
Language(s): LabVIEW
Software Requirements
Application Software: LabVIEW Full Development System 7.0
Toolkits and Add-Ons: LabVIEW PDA Module 7.0
Language(s): LabVIEW
Reader Comments | Submit a comment »
Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).
