Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Sep 6, 2006


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Using the LabVIEW PDA Module (Palm OS) for Serial Communication

3 ratings | 2.67 out of 5
Print

Downloads

Filename: palmserial.zip
Requirements: View

This example includes a simple and advanced VI example that shows how to communicate with a Palm OS serial device using the LabVIEW 7.1 PDA Module. The compiled Palm OS executable applications (.prc files) for both examples also are included.

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: palmserial.zip

Software Requirements


Application Software: LabVIEW Full Development System 7.1
Toolkits and Add-Ons: LabVIEW PDA Module 7.1
Language(s): LabVIEW

 
3 ratings | 2.67 out of 5
Print

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/).