www.vtiinstruments.com
EX1629 Command Set 235
vtex1629_set_arm_source
FUNCTION PROTOTYPE
ViStatus vtex1629_set_arm_source (ViSession vi, ViInt32 armSource);
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.
armSource = an integer input value that indicates the desired source to be monitored for ARM events. See the
Description section below for more information. Valid input values: 0 to 17.
DATA ITEM RESET VALUE
armSource = 0 (immediate)
DESCRIPTION
This function sets the arm source on the EX1629. Possible values for the armSource 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 ARM source. After initialization of the trigger system, the trigger state machine will
bypass the ARM layer and will automatically transition into the TRIG layer.
Pattern (1): this arm source allows the EX1629 to accept ARM events on multiple sources. Specifically, the
EX1629 can be configured to accept ARM events on any LXI Trigger Bus channel, any digital I/O channel, on a
timer, or for software arms. The instrument can be configured to accept any combination of these events
simultaneously. The specific pattern is set with the vtex1629_set_pattern_arm_configuration command.
LXI n Positive Edge (2 – 9): these arm sources refer to ARM events coming from the LXI Trigger Bus. More
specifically, these arm sources will cause the EX1629 to arm on the positive edge of signals coming into the LXI
Trigger Bus.
LXI n Negative Edge (10 – 17): these arm sources are referring to ARM events coming from the LXI Trigger Bus.
More specifically, these arm sources will cause the EX1629 to arm on the negative edge of signals coming into the
LXI Trigger Bus.
EXAMPLE
ViSession instrumentHandle;
ViStatus status;
…
status = vtex1629_set_arm_source(instrumentHandle, VTEX1629_TRIG_SRC_PATTERN);