SC5506A Operating & Programming Manual
Rev 2.1.1
34
Using the LabVIEW Functions and NI-VISA
Functions for RS-232 control are provided in LabVIEW and use NI-VISA. The low level port control functions
are unique to RS-232 and are contained in the subdirectory
UsartPort
. These functions are listed in Table
12 below for convenience. All provided LabVIEW VI functions are not protected, so the user may open
them to understand how the register calls are made.
Table 12. LabVIEW RS-232 port access functions.
Function
Description
Opens the VISA session to the serial port
associated with the device. Option to select
between 2 Baud rates.
Closes the VISA session associated with the serial
port.
Writes the data bytes in the buffer to the opened
port. The data buffer is a byte array. Most
significant data is sent first.
Writes the query register data and reads back the
data associated with the register. The buffers are
byte arrays. Most significant data is sent and
received first. The number of bytes to be read back
from the queried register needs to be specified.