9 Programming the Instrument
9.2 IEEE 488.2 Common Commands
Example
*IDN?
Returns instrument identification information, such as:
Keysight Technologies,N9040B,US01020004,A.15.02
Backwards Compatibility Command
Example
:ID?
Returns model number, such as:
N9040B
Notes Provided for backwards compatibility:
In Remote Language Compatibility Mode, ID? returns the model number of the emulated instrument
In any other Mode, the returned model number is that of the actual instrument
Backwards
Compatibility
SCPI
:ID?
9.2.6 *OPC? - Operation Complete
Sets bit 0 in the "Standard Event Status Register" on page 2463 (SESR) to “1” when
pending operations have finished, that is when all overlapped commands are
complete. It does not hold off subsequent operations. You can determine when the
overlapped commands have completed either by polling the OPC bit in SESR, or by
setting up the status system so that a service request (SRQ) is asserted when the
OPC bit is set.
*OPC? returns “1” after all the current overlapped commands are complete, so it
holds off subsequent commands until the "1” is returned, then the program
continues. This query can be used to synchronize events of other instruments on the
external bus.
Remote
Command
*OPC
*OPC?
Example Select single sweeping:
:INIT:CONT 0
Initiate a sweep:
:INIT:IMM
Hold off any further commands until the sweep is complete:
*OPC?
Notes Not global to all remote ports or front panel. *OPC only affects operations that were initiated on the
same port that the *OPC command was issued from
*OPC is an overlapped command, but *OPC? is sequential
*OPC? does not holdoff the completion of GUI update commands , such as :MMEM:LOAD:SCON
"myScreenConfig.screen"
2425 Short Range Comms & IoT Mode User's &Programmer's Reference