VTI Instruments Corp.
236 EX10xxA/RX1032/EX1044 Function Calls
vtex10xxA_set_dio_limit_event_latch
FUNCTION PROTOTYPE
ViStatus vtex10xxA_set_dio_limit_event_latch(ViSession vi, ViInt16 dio_channel, ViBoolean latch);
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_channel = the channel of the digital I/O port to be affected. Valid input values: 0 through 7.
latch = a Boolean value indicating whether to operate in latch mode. If this parameter is set to “1”, the specified
DIO channel will operate in latch mode. If set to “0”, the specified DIO latch mode is not enabled.
DATA ITEM RESET VALUE
latch = 0 (for all DIO channels)
DESCRIPTION
This function enables or disables latch operation of a DIO channel linked as a limit event. The nominal operation of
a linked DIO channel is to reflect the latest limit evaluation. That is, it will be updated with every scan. In latch
mode, a transition out of the cleared state would remain, regardless of future limit evaluations, until it is cleared at
the beginning of a new acquisition.
EXAMPLE