VTI Instruments Corp.
194 EX1629 Command Set
vtex1629_get_trigger_source
FUNCTION PROTOTYPE
ViStatus vtex1629_get_trigger_source (ViSession vi, ViPInt32 triggerSource);
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.
triggerSource = an integer return value that indicates the current source the EX1629 monitors for TRIG events. See
the Description below for more information. Valid return values: 0 to 17.
DATA ITEM RESET VALUE
Not applicable to this function.
DESCRIPTION
This function queries and returns the current setting for the trigger source. Possible values for the triggerSource
parameter are:
VTEX1629_TRIG_SRC_IMMEDIATE
VTEX1629_TRIG_SRC_PATTERN
VTEX1629_TRIG_SRC_LXI0_POS
VTEX1629_TRIG_SRC_LXI1_POS
VTEX1629_TRIG_SRC_LXI2_POS
VTEX1629_TRIG_SRC_LXI3_POS
VTEX1629_TRIG_SRC_LXI4_POS
VTEX1629_TRIG_SRC_LXI5_POS
VTEX1629_TRIG_SRC_LXI6_POS
VTEX1629_TRIG_SRC_LXI7_POS
VTEX1629_TRIG_SRC_LXI0_NEG
VTEX1629_TRIG_SRC_LXI1_NEG
VTEX1629_TRIG_SRC_LXI2_NEG
VTEX1629_TRIG_SRC_LXI3_NEG
VTEX1629_TRIG_SRC_LXI4_NEG
VTEX1629_TRIG_SRC_LXI5_NEG
VTEX1629_TRIG_SRC_LXI6_NEG
VTEX1629_TRIG_SRC_LXI7_NEG
Immediate (0): an immediate TRIG source. After receiving the ARM event, the trigger state machine will bypass
the TRIG layer and will automatically begin to acquire data.
Pattern (1): this trigger source allows the EX1629 to “listen” for TRIG events on multiple sources. The EX1629 can
be configured to “listen” for TRIG events on LXI Trigger Bus channels, digital I/O channels, a timer, and software
triggers. The EX1629 can simultaneously “listen” for any combination of these events. The specific pattern is
queried with the vtex1629_get_pattern_trig_configuration call.
LXI n Positive Edge (2 – 9): these trigger sources refer to TRIG events coming from the LXI Trigger Bus and will
cause the EX1629 to trigger on the positive edge of signals coming into the LXI Trigger Bus.
LXI n Negative Edge (10 – 17): these trigger sources refer to TRIG events coming from the LXI Trigger Bus and
will cause the EX1629 to trigger on the negative edge of signals coming into the LXI Trigger Bus.
EXAMPLE
ViSession instrumentHandle;
ViStatus status;
ViInt32 trigsource;
…
status = vtex1629_get_trigger_source(instrumentHandle, &trigsource);