VTI Instruments Corp.
270
EX1629 Command Set
vtex1629_set_lxibus_output
F
UNCTION
P
ROTOTYPE
ViStatus vtex1629_set_lxibus_output (ViSession
vi
, ViInt32
output
);
F
UNCTION
P
ARAMETERS
vi
= contains a session handle to the instrument. This handle is obtained by the function and remains valid until the
session is closed.
output
= an integer input value that configures the output state of each LXI Trigger Bus channel. Valid input values:
0 to 255.
D
ATA
I
TEM
R
ESET
V
ALUE
output
= 0
D
ESCRIPTION
This function configures the output state of each of the LXI Trigger Bus channels. This function only sets what will
be output by the bus, but does not actually enable the outputs. See vtex1629_set_lxibus_configuration for
information on enabling the output.
The
output
parameter is an 8-bit integer where the least significant bit of the integer corresponds to LXI Trigger
Bus channel zero and the most significant bit corresponds to LXI Trigger Bus channel seven. For example, if a user
wants to configure the LXI Trigger Bus to output high signals on channels zero and seven and low on all the rest of
the LXI Trigger Bus channels, then this corresponds to the 8-bit number 10000001b → 0x81→ 129.
E
XAMPLE
ViSession instrumentHandle;
ViStatus status;
…
status = vtex1629_set_lxibus_output(instrumentHandle, 0x81);