www.vtiinstruments.com
EX1629 Command Set 291
vtex1629_set_trigger_source
FUNCTION PROTOTYPE
ViStatus vtex1629_set_trigger_source (ViSession vi, ViInt32 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 input value that indicates the desired source to be monitored for trigger events. Valid
input values: 0 to 17.
DATA ITEM RESET VALUE
triggerSource = 0 (immediate)
DESCRIPTION
This function sets the trigger source on the EX1629. Possible values for the trigger source include:
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 trigger source. After receiving the arm event, the trigger state machine will bypass the
trigger layer and will automatically begin to acquire data.
Pattern (1): this trigger source allows the EX1629 to accept trigger events from multiple sources. The EX1629 can
be configured to accept trigger events on LXI Trigger Bus channels, digital I/O channels, a timer, and software
triggers. The EX1629 can simultaneously accept any combination of these events. The specific pattern is set with the
vtex1629_set_pattern_trig_configuration command.
LXI n Positive Edge (2 – 9): these trigger sources refer to trigger 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 trigger 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;
…
status = vtex1629_set_trigger_source(instrumentHandle, VTEX1629_TRIG_SRC_LXI4_POS);