
Remote Control Commands
R&S
®
SGU100A
139
User Manual 1176.7726.02 ─ 09
The programming examples have been tested with a software tool which provides an
environment for the development and execution of remote tests. To keep the examples
as simple as possible, only the "clean" SCPI syntax elements are reported. Non-exe-
cutable command lines (e.g. comments) start with two // characters.
At the beginning of most remote control programs, an instrument (p)reset is recom-
mended to set the R&S
SGU to a defined state. The commands
*RST
and
SYSTem:PRESet
are equivalent for this purpose.
*CLS
also resets the status registers
and clears the output buffer.
It is also recommended to lock the instrument for remote control from the selected con-
troller prior to further configuration. Use the
LOCK
command for this purpose.
11.1.1
Performing General Tasks for Instrument Setup
In the following example we assume that a remote PC is connected to the instrument,
the remote PC and the instrument are switched on and a connection between them is
established.
// ******************************************************************
// Reset the instrument first
// ******************************************************************
*RST; *CLS
// :SYSTem:PRESet
// :RESTart
// :SYSTem:FPReset
// ******************************************************************
// Lock the instrument to the controller
// ******************************************************************
:LOCK? 12345
// Lock the instrument to avoid interference by other controllers
// Use an arbitrary number
// Response: 1
// Request granted, i.e. the instrument is locked
// Abort program if request is refused
// ******************************************************************
// Launch diagnostic
// ******************************************************************
:DIAGnostic:POINt:CATalog?
// Response: : D_TEMP_UP20,D_TEMP_CPU
:DIAGNostic:MEASure:POINt? 'D_TEMP_UP20'
// ******************************************************************
// Query the entries in the error queue
// ******************************************************************
Programming Examples