
R&S ZVL
Programming Examples
Basic Tasks
Operating Manual 1303.6580.32-05
558
8 Programming Examples
This chapter contains detailed program examples.
The syntax and use of all SCPI commands is described in the
SCPI Reference
chapter. For a general
introduction to remote control of the analyzer refer to chapter
Remote Control
. For an overview of special
remote control features of the network analyzers refer to section
NWA Remote Control Features
in
Chapter 5
.
Basic Tasks
Typical Stages of a Remote Control Program
A typical remote control program comprises the following stages:
Very often, steps 3 and 4 (or steps 2 to 4) must be repeated several times.
All example programs in this section have been developed and tested by means of the GPIB
Explorer provided with the network analyzer. No extra programming environment is needed.
Basic Instrument Settings
Programming task:
Adjust the basic network analyzer settings to your measurement tasks, optimizing
the instrument for fast measurements.
Considerations for high measurement speed
The measurement speed depends on the sweep time but also on an efficient preparation of the instrument
and on proper command synchronization. The following items should be kept in mind:
For maximum speed the basic channel settings should be set while the sweep is stopped and with
a minimum of sweep points. It is advisable to increase the number of points after all instrument
settings have been performed, and to initiate the sweep after the test setup has been completed.
Execution of the
INITiate[:IMMediate]
command is fastest in synchronized mode. Insertion
of fixed waiting periods into the command sequence is possible but generally less efficient.
The sweep time depends on several parameters discussed in section
Optimizing the
Measurement Speed.
In particular it is recommended to select the best set of sweep points, e.g.
using the segmented sweep.
// Reset the instrument, switch off the measurement (after one sweep),
// reduce the number of sweep points.
*RST
INITiate1:CONTinuous OFF
SENSe1:SWEep:POINts 2
//