Serial VIs and Functions

Owning Palette: Bus/Interface Specific Functions, Instrument I/O VIs and Functions, Protocols VIs and Functions

Requires: Base Development System. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.

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. Wire data to the VISA resource name input to determine the polymorphic instance to use or manually select the instance.
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. Wire data to the VISA resource name input to determine the polymorphic instance to use or manually select the instance.
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 Serial.lvproj in the labview\examples\Instrument IO\Serial directory for an example of using the Serial VIs and Functions.

 Open example  Find related examples