Using the LabVIEW PDA Module (PocketPC) for Serial Communication
Downloads
Filename: pocketpcserial.zip
Requirements: View
In the examples, the serial port uses the following default settings:
buffer size = 2048
port number = 0 (COM1)
baud rate = 9600
data bits = 8
stop bits = 1
parity = none
You can change these settings using the Serial Settings input parameter cluster on the block diagram.
Palm_Serial.vi provides basic serial read and write functions.
Palm_Advanced_Serial.vi contains three tabs with different functionality. Use the "Main" tab to write general commands to a serial instrument using a PDA device. The "Test" and "Data" tabs require the NI Instrument Simulator or the NI Virtual Instrument Simulator, which are able to simulate serial instruments. A link to the NI Virtual Instrument Simulator has been included with this example. Contact an NI Sales Representative for information about the NI Instrument Simulator. Use the "Test" tab to send the "*TST?" command to the NI Instrument Simulator or Virtual Instrument Simulator to verify communication. Use the "Data" tab to retrieve a simulated DC voltage and sine wave data using the "MEAS:DC?" and "SENS:DATA?" commands, respectively.
Complete the following steps to run either VI.
1. Click the Open button initialize the serial port.
2. Write to and read from the serial port.
3. Click the Exit button to stop the VI and close the serial port.
| Related Links: |
| Product Manuals: Getting Started with the LabVIEW PDA Module |
| NI Virtual Instrument Simulator |
Requirements
Filename: pocketpcserial.zip
Software Requirements
Application Software: LabVIEW Full Development System 7.1
Toolkits and Add-Ons: LabVIEW PDA Module 7.1
Language(s): LabVIEW
Reader Comments | Submit a comment »
Can't run example
I am trying to find a simple example that
will allow me to close a running exe at the
end of an acquisition loop in labVIEW...the
exe communicates with a sample changer and is
needed...I cannot seem to get this vi to
load...keeps asking me to find files...I quit
at about a dozen or so...any assistance in
finding what I really need would be greatly
appreciated.
Mike
- Michael Schultz, NIST. michael.schultz@nist.gov - Jul 10, 2006
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/).
