EasyManua.ls Logo

Rohde & Schwarz SGS100A - Performing General Task for Instrument Setup; Programming Examples

Rohde & Schwarz SGS100A
324 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Remote Control Commands
R&S
®
SGS100A
191User Manual 1173.9105.02 ─ 12
11.1 Programming Examples
This chapter provides simple programming examples for the R&S SGS. The purpose
of the examples is to present all commands for a given task. In real applications, one
would rather reduce the examples to an appropriate subset of commands.
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 program, an instrument (p)reset is recommen-
ded to set the R&S SGS 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 that you lock the instrument for remote control from the
selected controller prior to further configuration. Use the LOCK command for this pur-
pose.
We assume that the R&S SGS is fully equipped with all available options.
11.1.1 Performing General Task 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 instrument first
// ******************************************************************
*RST; *CLS
// :SYSTem:PRESet
// :RESTart
// :SYSTem:FPReset
// ******************************************************************
// Lock the instrument to the controller
// ******************************************************************
:LOCK? 72349234
// Lock 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 selftest, diagnostic and internal adjustments and retrieve results
// ******************************************************************
Programming Examples

Table of Contents

Related product manuals