
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.
Содержание 2182
Страница 1: ...www tek com keithley Model 2182 2182A Nanovoltmeter User s Manual 2182A 900 01 Rev B May 2017...
Страница 18: ......
Страница 22: ......
Страница 23: ...1 Getting Started Getting Started...
Страница 41: ...2 VoltageandTemperature Measurements Voltageand Temperature Measurements...
Страница 68: ...2 28 Voltage and Temperature Measurements...
Страница 69: ...3 Range Digits Rate andFilter Range Digits Rate andFilter...
Страница 82: ...3 14 Range Digits Rate and Filter...
Страница 83: ...4 Relative mX b and Percent Relative mX b andPercent...
Страница 91: ...5 RatioandDelta Ratioand Delta...
Страница 117: ...6 Buffer Buffer...
Страница 123: ...7 Triggering Triggering...
Страница 140: ...7 18 Triggering...
Страница 141: ...8 Limits Limits...
Страница 149: ...9 SteppingandScanning Steppingand Scanning...
Страница 168: ...9 20 Stepping and Scanning...
Страница 169: ...10 AnalogOutput Analog Output...
Страница 175: ...11 RemoteOperation Remote Operation...
Страница 205: ...12 CommonCommands Common Commands...
Страница 221: ...13 SCPISignalOriented Measurement Commands SCPISignalOri entedMeasure ment Commands...
Страница 225: ...14 SCPIReferenceTables SCPIRefer enceTables...
Страница 239: ...15 AdditionalSCPI Commands Additional SCPICom mands...
Страница 260: ...15 22 Additional SCPI Commands...
Страница 261: ...A Specifications Specifications...
Страница 263: ...B Statusand ErrorMessages StatusandError Messages...
Страница 268: ...B 6 Status and Error Messages...
Страница 269: ...C Measurement Considerations Measurement Consider ations...
Страница 278: ...C 10 Measurement Considerations...
Страница 279: ...D Model182Emulation Commands Model182 EmulationCom mands...
Страница 284: ...D 6 Model 182 Emulation Commands...
Страница 285: ...E Example Programs ExamplePro grams...
Страница 293: ...F IEEE 488 BusOverview IEEE 488Bus Overview...
Страница 307: ...G IEEE 488andSCPI ConformanceInformation IEEE 488and SCPIConform anceInforma tion...
Страница 310: ...G 4 IEEE 488 and SCPI Conformance Information...
Страница 311: ...H Measurement Queries Measurement Queries...
Страница 316: ...H 6 Measurement Queries...
Страница 317: ...I Delta PulseDelta and DifferentialConductance Delta Pulse Deltaand Dif ferentialCon ductance...