Chapter 3
Local Command Set
©
National Instruments Corporation
3-91
WaitForTrig
Purpose
Wait for the specified trigger line to be sensed for the specified time.
EnaTrigSense
must be
called to sensitize the hardware to the particular trigger protocol to be sensed.
Query Syntax
WaitForTrig <line>, <timeout>
where the value of
<line>
corresponds to the trigger line to wait for.
Response
Program response: 0
Console response:
Trigger received (line = <line text>), wait complete.
<CRLF>
where the meaning of
<line text>
corresponds to the value of
<line>
as follows.
Example
Wait for TTL line 4 to be encountered.
WaitForTrig 4, 10000
Value
Trigger Line
0 to 7
TTL trigger lines 0 to 7
8 to 9
ECL trigger lines 0 to 1
50
TIC counter
60
TIC TICK1 tick timer
Value of
<line>
Value of
<line text>
0 to 7
TTL <line>
8 to 9
ECL (<line> - 8)
50
TCNTR
60
TICK1