Model 2700 Multimeter/Switch System User’s Manual Common Commands 12-5
Programming example – The following command sequence demonstrates how to use
*OPC? to signal the end of a measurement process:
NOTE The following example can be run from the KE2700 Instrument Driver using the
example named “SOPC” in
Table H-1 of Appendix H.
SYST:PRES ‘ Returns 2700 to default setup.
INIT:CONT OFF ‘ Disables continuous initiation.
ABORt ‘ Aborts operation. Places 2700 in idle.
TRIG:COUN 1 ‘ These two commands configure the 2700
SAMP:COUN 5 ‘ to perform five measurements.
INIT ‘ Starts measurement process.
*OPC? ‘ Sends OPC? command.
After all five measurements are performed and the instrument returns to the idle state, an
ASCII ‘1’ will be placed in the Output Queue. After addressing the Model 2700 to talk,
the ‘1’ from the Output Queue is sent to the computer.
SYST:PRES ‘ Returns 2700 to default setup.
NOTE The following commands take a long time to process and may benefit from
using *OPC or *OPC?:
• *RST and SYST:PRES
• *RCL and *SAV
• ROUT:MULT:CLOS and ROUT:MULT:OPEN – Only if the <clist> is long.
• CALC2:IMM and CALC2:IMM?– Only when performing the standard devi-
ation calculation on a large buffer. A 10,000 point buffer takes around 5.75
seconds.