![Rohde & Schwarz SMC100A Скачать руководство пользователя страница 210](http://html.mh-extra.com/html/rohde-and-schwarz/smc100a/smc100a_operating-manual_1477935210.webp)
Remote Control Basics
R&S
®
SMC100A
193
Operating Manual 1411.4060.32 ─ 04
Example: Commands and queries in one message
The response to a query combined in a program message with commands that affect the
queried value is not predictable.
The following commands always return the specified result:
:FREQ:STAR 1GHZ;SPAN 100 :FREQ:STAR?
Result:
1000000000
(1 GHz)
Whereas the result for the following commands is not specified by SCPI:
:FREQ:STAR 1GHz;STAR?;SPAN 1000000
The result could be the value of
STARt
before the command was sent since the instru-
ment might defer executing the individual commands until a program message terminator
is received. The result could also be 1 GHz if the instrument executes commands as they
are received.
As a general rule, send commands and queries in different program messages.
Example: Overlapping command with *OPC
The instrument implements
INITiate[:IMMediate]
as an overlapped command.
Assuming that
INITiate[:IMMediate]
takes longer to execute than
*OPC
, sending
the following command sequence results in initiating a sweep and, after some time, set-
ting the
OPC
bit in the
ESR
:
INIT; *OPC.
Sending the following commands still initiates a sweep:
INIT; *OPC; *CLS
However, since the operation is still pending when the instrument executes
*CLS
, forcing
it into the "Operation Complete Command Idle" State (OCIS),
*OPC
is effectively skipped.
The
OPC
bit is not set until the instrument executes another
*OPC
command.
6.4.1 Preventing Overlapping Execution
To prevent an overlapping execution of commands, one of the commands *OPC, *OPC?
or *WAI can be used. All three commands cause a certain action only to be carried out
after the hardware has been set. By suitable programming, the controller can be forced
to wait for the corresponding action to occur.
Command Sequence and Synchronization
Содержание SMC100A
Страница 1: ...R S SMC100A Signal Generator Operating Manual Operating Manual XÊP 1411 4060 32 04 Test Measurement ...
Страница 67: ......
Страница 339: ......
Страница 341: ......