www.vtiinstruments.com
EX1629 Command Set 231
vtex1629_send_dio_pulse
FUNCTION PROTOTYPE
ViStatus vtex1629_send_dio_pulse (ViSession vi, ViInt32 dioPulse);
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.
dioPulse = a bit mask which instructs the instrument to send a pulse on the specified DIO channels. The low 16 bits
map to the 16 DIO channels. The upper 16 bits are ignored.
DATA ITEM RESET VALUE
Not applicable to this function.
DESCRIPTION
This function sends a pulse out on the selected DIO channels.
bank one
channel #
bank zero
dioOut
15
0
14
0
13
0
12
0
11
0
10
0
9
0
8
0
7
0
6
0
5
0
4
0
3
0
2
0
1
0
0
0
The upper 16-bits will always be zero.
For example, to issue pulses on DIO lines 0 and 8 (assuming both backs are configured for output:
dioPulse = 49164 → 0x00000101 → 00000001 00000001b
Pulse widths are 1 microsecond (µs).
EXAMPLE
ViSession instrumentHandle;
ViStatus status;
ViInt32 pulse_mask = 0x00000101; // pulse output bits 0 and 8
…
status = vtex1629_send_dio_pulse(instrumentHandle, pulse_mask);