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.
The VIs and functions on this palette can return serial error codes.
| Palette Object | Description |
|---|---|
| VISA Bytes at Serial Port | Returns the number of bytes in the input buffer of the specified serial port. |
| VISA Close | Closes a device session or event object specified by VISA resource name. |
| VISA Configure Serial Port | Initializes 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 Buffer | Flushes the I/O buffer specified by mask. |
| VISA Read | Reads the specified number of bytes from the device or interface specified by VISA resource name and returns the data in read buffer. |
| VISA Serial Break | Sends a break on the specified output port. |
| VISA Set I/O Buffer Size | Sets 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 Write | Writes the data from write buffer to the device or interface specified by VISA resource name. |
Refer to the labview\examples\instr\smplserl.llb for examples of using the Serial VIs and Functions.