VTI Instruments Corp.
248 EX1629 Command Set
vtex1629_set_dio_bank1_direction
FUNCTION PROTOTYPE
ViStatus vtex1629_set_dio_bank1_direction (ViSession vi, ViInt32 direction);
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.
direction = an integer input value indicating the desired direction of bank one of the digital I/O. Valid input values:
0 or 1.
DATA ITEM RESET VALUE
direction = 0 (input)
DESCRIPTION
This function sets the direction of bank one of the digital I/O as input or output. The direction parameter is defined
as follows:
VTEX1629_DIO_DIRECTION_IN (0) = input VTEX1629_DIO_DIRECTION_OUT (1) = output
EXAMPLE
ViSession instrumentHandle;
ViStatus status;
…
status = vtex1629_set_dio_bank1_direction(instrumentHandle,
VTEX1629_DIO_DIRECTION_OUT);