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