12-8
Common Commands
Model 2701 User’s Manual
I
*WAI — Wait-to-Continue
Prevent execution of commands until
previous commands are completed
Description
Two types of device commands exist:
•
Sequential commands – A command whose operations are allowed to finish before
the next command is executed.
•
Overlapped commands – A command that allows the execution of subsequent
commands while device operations of the Overlapped command are still in
progress.
Use the *WAI command to suspend the execution of subsequent commands until the
device operations of all previous Overlapped commands are finished. The *WAI com-
mand is not needed for Sequential commands.
The Model 2701 has three overlapped commands:
•
:
INITiate
•
:INITiate:CONTinuous ON
•
*TRG
NOTE
See *OPC, *OPC?, and *TRG for more information.
The INITiate commands remove the Model 2701 from the idle state. The device
operations of :INITiate are not considered complete until the Model 2701 returns to idle.
By sending the *WAI command after the INITiate command, all subsequent commands
will not execute until the Model 2701 goes back into idle.
The *TRG command issues a bus trigger that could be used to provide the arm, scan, and
measure events for the Trigger Model. By sending the *WAI command after the *TRG
command, subsequent commands will not executed until the pointer for the Trigger Model
has finished moving in response to *TRG and has settled at its next state.
Programming example – The following command sequence shows how to use the *WAI
command to allow the 2701 to wait for the programmed measurements to be completed
before requesting a reading.
SYST:PRES
' Returns 2701 to default setup.
INIT:CONT OFF
' Disables continuous initiation.
ABORt
' Aborts operation. Places 2701 in idle.
TRIG:COUN 1
' These two commands configure the 2701
SAMP:COUN 30
' to perform 30 measurements.
INIT
' Starts measurement process.
*WAI
' Sends the WAI command. Program waits for
' 2701 to go into idle before executing next command.
DATA?
' Requests one reading.
2701-900-01.book Page 8 Wednesday, August 3, 2011 9:43 AM
Содержание 2701
Страница 344: ...12 CommonCommands 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Страница 352: ...13 SCPISignalOriented MeasurementCommands 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Страница 366: ...15 SCPIReferenceTables 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Страница 393: ...A Specifications 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Страница 399: ...B Model7700ConnectionGuide 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Страница 410: ...C StatusandErrorMessages 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Страница 417: ...D SignalProcessing SequenceandDataFlow 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Страница 430: ...E MeasurementConsiderations 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Страница 450: ...G KE2700InstrumentDriver Examples 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...