F
P
UNCTION
ROTOTYPE
ViStatus vtex10xxA_get_vtb_input(ViSession vi, ViPInt32 vtb_in);
F
P
UNCTION
ARAMETERS
vi = contains a session handle to the instrument. This handle is obtained by the function and remains valid until the
session is closed.
vtb_in = an integer output value in decimal representing the 8-bit value of the port. Within the 8-bit field, the MSB
corresponds to LXI Trigger Bus (VTB) channel 7 and the LSB corresponds to LXI Trigger Bus (VTB) channel 0.
Valid return values: 0 through 255.
D
I
R
V
ATA
TEM
ESET
ALUE
Not applicable to this function.
D
ESCRIPTION
This function returns the current input state of the trigger bus.
E
XAMPLE
// check state of VTB bits 7, 4, and 0
ViInt32 vtb_in;
vtex10xxA_get_vtb_input(vi, &vtb_in);
if (vtb_in & 0x80)
printf("Bit 7 is high");
else printf("Bit 7 is low");
if (vtb_in & 0x10)
printf("Bit 4 is high");
else printf("Bit 4 is low");
if (vtb_in & 0x01)
printf("Bit 0 is high");
else printf("Bit 0 is low");
EX10xxA Function Calls
vtex10xxA_get_vtb_input
www.vtiinstruments.com
197
Need help?
Do you have a question about the EX1000A and is the answer not in the manual?