![background image](http://html.mh-extra.com/html/national-instruments/gpib-device-simulator-eprom/gpib-device-simulator-eprom_programming-manual_710200009.webp)
GPIB Device Simulator EPROM
6
© National Instruments Corp.
Other Commands
*IDN?
Returns
National Instruments
GPIB Device Simulator Rev
A.x <LF>
*RST
Resets the Simulator to its default state
*TRG
Triggers the Simulator and returns one
random reading (same as
MEAS:DC?
)
*TST?
Simulates testing the Simulator.
Returns
OK
*OPC
Sets the operation complete bit in the
Standard Event Status Register (ESR)
*OPC?
Returns the value of the OPC bit in the
ESR register
*ESR?
Returns value of Standard Event Status
register as specified by
FORM:SREG
Figure 2 illustrates the bits defined by the Simulator for the ESR register–
bit 7 (Power On), bit 5 (Command Error), and bit 0 (Operation Complete).
Bit 7 is set when the Simulator is powered on; bit 5 is set when the
Simulator receives an invalid command; and, bit 0 is set when the
Simulator receives the
*OPC
command. You can use the
*ESR?
command to query the value of the ESR register. The value returned is in
either ASCII or HEX, as specified by the
FORMat:SREGister
command. The ESR register is cleared after you read it.
1
2
3
4
5
6
7
0
Power On
Comma
Figure 2. Three ESR Bits Set by the Simulator