
12-10
Common Commands
*OPC? – Operation Complete Query
Place a “1” in the output queue after all
pending operations are completed
Description
When this common command is sent, an ASCII “1” will be placed in the Output Queue after
the last pending operation is completed. When the Model 2182 is then addressed to talk, the “1”
in the Output Queue will be sent to the computer.
The “1” in the Output Queue will set the MAV (Message Available) bit (B4) of the Status
Byte Register. If the corresponding bit (B4) in the Service Request Enable Register is set, the
RQS/MSS (Request for Service/Master Summary Status) bit in the Status Byte Register will set.
When used with the Initiate Immediately command (:INITiate), a “1” will not be placed into
the Output Queue until the Model 2182 goes back into the idle state. The :INIT command
operation is not considered finished until the Model 2182 goes back into the idle state. See the
description for *WAI for more information on command execution.
The execution of OPC? is not completed until it has placed the “1” in the Output Queue.
To use *OPC? exclusively with the *TRG command, first force the completion of the initiate
command so that only the *TRG command is pending. To do this, send the :ABORt command
to place the instrument in idle, which (by definition) completes the initiate command. Since
continuous initiation is on, operation continues on into the Trigger Model. After sending the
*TRG command, an ASCII “1” is placed in the Output Queue and the MAV bit sets when the
*TRG command is finished.
After *OPC? is executed, additional commands cannot be sent to the Model 2182 until the
pending overlapped commands are finished. For example, :INITiate:CONTinuous ON followed
by *OPC? locks up the instrument and requires a device clear (DCL or SDC) before it will
accept any more commands.
NOTE
See *OPC, *TRG, and *WAI for more information.
Programming example –
The following command sequence demonstrates how to use
*OPC? to signal the end of a measurement process:
SYST : PRES
‘ Returns 2182 to default setup.
INIT : CONT OFF
‘ Disables continuous initiation.
ABORt
‘ Aborts operation. Places 2182 in idle.
TRIG : COUN 1
‘ These two commands configure the 2182
SAMP : COUN 5
‘ to perform five measurements.
INIT
‘ Starts measurement process.
*OPC?
‘ Sends the OPC? command
After all five measurements are performed and the instrument returns to idle state, an ASCII
‘1’ will be placed in the Output Queue. After addressing the Model 2182 to talk, the ‘1’ from the
Output Queue is sent to the computer.
SYST : PRES
‘ Returns 2182 to default setup.
Summary of Contents for 2182
Page 1: ...www tek com keithley Model 2182 2182A Nanovoltmeter User s Manual 2182A 900 01 Rev B May 2017...
Page 18: ......
Page 22: ......
Page 23: ...1 Getting Started Getting Started...
Page 41: ...2 VoltageandTemperature Measurements Voltageand Temperature Measurements...
Page 68: ...2 28 Voltage and Temperature Measurements...
Page 69: ...3 Range Digits Rate andFilter Range Digits Rate andFilter...
Page 82: ...3 14 Range Digits Rate and Filter...
Page 83: ...4 Relative mX b and Percent Relative mX b andPercent...
Page 91: ...5 RatioandDelta Ratioand Delta...
Page 117: ...6 Buffer Buffer...
Page 123: ...7 Triggering Triggering...
Page 140: ...7 18 Triggering...
Page 141: ...8 Limits Limits...
Page 149: ...9 SteppingandScanning Steppingand Scanning...
Page 168: ...9 20 Stepping and Scanning...
Page 169: ...10 AnalogOutput Analog Output...
Page 175: ...11 RemoteOperation Remote Operation...
Page 205: ...12 CommonCommands Common Commands...
Page 221: ...13 SCPISignalOriented Measurement Commands SCPISignalOri entedMeasure ment Commands...
Page 225: ...14 SCPIReferenceTables SCPIRefer enceTables...
Page 239: ...15 AdditionalSCPI Commands Additional SCPICom mands...
Page 260: ...15 22 Additional SCPI Commands...
Page 261: ...A Specifications Specifications...
Page 263: ...B Statusand ErrorMessages StatusandError Messages...
Page 268: ...B 6 Status and Error Messages...
Page 269: ...C Measurement Considerations Measurement Consider ations...
Page 278: ...C 10 Measurement Considerations...
Page 279: ...D Model182Emulation Commands Model182 EmulationCom mands...
Page 284: ...D 6 Model 182 Emulation Commands...
Page 285: ...E Example Programs ExamplePro grams...
Page 293: ...F IEEE 488 BusOverview IEEE 488Bus Overview...
Page 307: ...G IEEE 488andSCPI ConformanceInformation IEEE 488and SCPIConform anceInforma tion...
Page 310: ...G 4 IEEE 488 and SCPI Conformance Information...
Page 311: ...H Measurement Queries Measurement Queries...
Page 316: ...H 6 Measurement Queries...
Page 317: ...I Delta PulseDelta and DifferentialConductance Delta Pulse Deltaand Dif ferentialCon ductance...