IEEE-488 Reference
3-39
*TRG — trigger
Send a GPIB trigger to the Model 2002.
The *TRG command is used to issue a GPIB trigger to the Model 2002. It has the same effect
as a group execute trigger (GET).
The *TRG command is used as an arm, scan and/or measure event to control operation. The
Model 2002 reacts to this trigger if GPIB is the programmed control source. The control source
is programmed from the :TRIGger subsystem (see paragraph 3.22).
*TRG can also be used as the pre-trigger for buffer operation.
PRINT #1, "output 16; *trg" ' Trigger 2002
*TST? — self-test query
Run the self-test and acquire the result.
This query command is used to perform a checksum test on ROM and places the coded result
(0 or 1) in the Output Queue. When the Model 2002 is addressed to talk, the coded result is sent
from the Output Queue to the computer.
A returned value of zero (0) indicates that the test passed, and a value of one (1) indicates that
the test has failed.
PRINT #1, "output 16; *tst?" ' Run test and query result
PRINT #1, "enter 16" ' Send response message to 2002
Figure 3-17
Status Byte Register
B7 B6 B5 B4 B3 B2 B1 B0
(2 ) (2 )
6
(2 )
5
(2 )
4
(2 )
3
(2 )
2
(2 )
0
32
0/1
Bit Position
Event
Decimal Weighting
Value
Value : 1 = Event Bit Set
0 = Event Bit Cleared
Events : OSB = Operation Summary Bit
MSS = Master Summary Status
RQS = Request Service
ESB = Event Summary Bit
MAV = Message Available
QSB = Questionable Summary Bit
EAV = Error Available
MSB = Measurement Summary Bit
OSB ESB MAV QSB EAV
0/1 0/1 0/1 0/1
128 16 8 4
MSS,
RQS
64
0/1
MSB
1
0/1
7
3.10.13
Description
Program fragment
3.10.14
Description
Program fragment