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

Serial VIs and Functions

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Use the Serial VIs and functions to access the VISA VIs and functions that communicate with devices connected to a serial port. Additional functions are also available on the VISA palette.

Example

The VIs and functions on this palette can return serial error codes.

Palette ObjectDescription
VISA Bytes at Serial PortReturns the number of bytes in the input buffer of the specified serial port.
VISA CloseCloses a device session or event object specified by VISA resource name.
VISA Configure Serial PortInitializes the serial port specified by VISA resource name to the specified settings. The VISA class you wire to the VISA resource name input determines the polymorphic instance to use.
VISA Flush I/O BufferFlushes the I/O buffer specified by mask.
VISA ReadReads the specified number of bytes from the device or interface specified by VISA resource name and returns the data in read buffer.
VISA Serial BreakSends a break on the specified output port.
VISA Set I/O Buffer SizeSets the size of the I/O buffer. Run the VISA Configure Serial Port VI first if you are setting the size of a serial port buffer.
VISA WriteWrites the data from write buffer to the device or interface specified by VISA resource name.

Example

Refer to the labview\examples\instr\smplserl.llb for examples of using the Serial VIs and Functions.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit