Vtex10Xxa_Set_Arm_Sourceex - VTI Instruments EX1000A User Manual

Hide thumbs Also See for EX1000A:
Table of Contents

Advertisement

VTI Instruments Corp.
F
P
UNCTION
ROTOTYPE
ViStatus VI_FUNC vtex10xxA_set_arm_sourceEx(ViSession vi, ViInt16 vtb_masks[], ViInt16 dio_masks[],
ViInt16 lan_masks[], ViBoolean timer_enable, ViBoolean immediate, ViBoolean alarm);
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_masks = a return array of four 8-bit integer values representing the enabled state of trigger events from the eight
channels of the trigger bus. Within the 8-bit field, the MSB corresponds to VTB channel 7 and the LSB corresponds
to VTB channel 0. Valid input values: 0 through 255.
dio_masks = a return array of four 8-bit integer values representing the enabled state of trigger events from the eight
channels of the digital I/O port. Within the 8-bit field, the MSB corresponds to DIO channel 7 and the LSB
corresponds to DIO channel 0. Valid input values: 0 through 255.
lan_masks = an array of four 8-bit integer values representing the enabling of LAN events from any of the eight
LAN events. Within the 8-bit field, the MSB corresponds to LAN 7 and the LSB corresponds to LAN 0. Valid input
values: 0 through 255 (decimal), 0x00 through 0xFF (hexadecimal).
timer = a Boolean value indicating whether the timer is enabled as an arm event. If this parameter is set to "1", the
timer will act as an arm event. If set to "0", the timer is not a valid arm event.
immediate = a Boolean value indicating whether immediate is enabled as an arm event. If this parameter is set to
"1", arm is set to immediate. If a "0" is returned, immediate arm is disabled.
alarm = a Boolean value indicating whether the LXI alarm is used as an ARM event. If a "1" is set for this
parameter, the LXI alarm can act as an arm event. If a "0" is set, the LXI alarm is not a valid arm event.
D
I
R
V
ATA
TEM
ESET
ALUE
Not applicable to this function.
D
ESCRIPTION
This function sets the arm source events. Regardless of this setting, software arms are always enabled. For the
vtb_masks, dio_masks, and lan_masks parameters, the data items in these arrays are ordered as follows: positive
edge, negative edge, positive level, negative level. Note that any and all of the parameters above can be enabled
simultaneously, with the exception of immediate.
NOTE
It is necessary to explicitly call vtex10xxA_set_alarm_enable to enable alarm events even when the
alarm parameter is set to TRUE.
E
XAMPLE
// enable timer arm only
ViUInt16 vtb_masks[4] = {0,0,0,0};
ViUInt16 dio_masks[4] = {0,0,0,0};
ViUInt16 lan_masks[4] = {0,0,0,0};
vtex10xxA_set_arm_sourceEx(vi, vtb_masks, dio_masks, lan_masks, 1, 0, 0);
// enable arm on a positive level on DIO channels 0-3 and a negative edge on VTB channel 6
ViUInt16 vtb_masks[4] = {0,64,0,0};
ViUInt16 dio_masks[4] = {0,0,0x0F,0};
ViUInt16 lan_masks[4] = {0,0,0,0};
vtex10xxA_set_arm_sourceEx(vi, vtb_masks, dio_masks,lan_masks,0, 0, 0);
// enable software arm only
ViUInt16 vtb_masks[4] = {0,0,0,0};
ViUInt16 dio_masks[4] = {0,0,0,0};
ViUInt16 lan_masks[4] = {0,0,0,0};
vtex10xxA_set_arm_sourceEx(vi, vtb_masks, dio_masks, lan_masks, 0, 0, 0);
230

vtex10xxA_set_arm_sourceEx

EX10xxA/RX1032/EX1044 Function Calls

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the EX1000A and is the answer not in the manual?

Questions and answers

Table of Contents