www.vtiinstruments.com
EX10xxA Function Calls 237
vtex10xxA_set_dio_output
FUNCTION PROTOTYPE
ViStatus vtex10xxA_set_dio_output(ViSession vi, ViInt32 dio_out);
FUNCTION PARAMETERS
vi = contains a session handle to the instrument. This handle is obtained by the function and remains valid until the
session is closed.
dio_out = the value that represents the desired state of the 8-bit port. Within the 8-bit field, the MSB corresponds to
DIO channel 7 and the LSB corresponds to DIO channel 0. Valid input values: 0 through 255 (decimal), 0x00
through 0xFF (hexadecimal).
DATA ITEM RESET VALUE
dio_out = 0
DESCRIPTION
This function sets the static level that each channel of the digital I/O port will assume if enabled. Enabling is done
with the vtex10xxA_set_dio_output_enable function.
EXAMPLE
// set DIO bit 7 (high) and DIO bit 6 (low)
vtex10xxA_set_dio_output(vi, 0x80);
// enable them as outputs
vtex10xxA_set_dio_output_enable(vi, 0xC0);