
R&S ZVL
Programming Examples
Basic Tasks
Operating Manual 1303.6580.32-05
559
// Avoid a delay time between different partial measurements and before the start of the sweeps (is default
setting).
SENSe1:SWEep:TIME:AUTO ON
TRIGger1:SEQuence:SOURce IMMediate
//
// Select the widest bandwidth compatible with your measurement.
SENSe1:BANDwidth:RESolution 10
//
// Adjust your sweep points to your measurement task, e.g. using a segmented sweep.
SENSe1:SEGMent...
Adjusting the Test Setup
In general the preparatives described above can be used for a series of measurements. In-between the
measurements it is often necessary to change the test setup, e.g. in order to replace the DUT, change the
connected ports, connect external devices etc.
Start of the Measurement and Command Synchronization
Programming task:
Start a measurement in single sweep mode. Wait until all single sweep data has
been acquired before you proceed to the next stage of the measurement.
INITiate<Ch>[:IMMediate]
is used to start a single sweep or a group of single sweeps. This
command has been implemented for overlapped execution. The advantage of an overlapped
command is that they allow the program to do other tasks while being executed.
In the present example the sweep must be completed before measurement results can be
retrieved. To prevent wrong results (e.g. a mix-up of results from consecutive sweeps) the
controller must synchronize its operation to the execution of
INITiate<Ch>[:IMMediate]
.
IEEE 488.2 defines three common commands (
*WAI, *OPC?, *OPC
) for synchronization.
//
// 1. Start single sweep, use *WAI
// *WAI is the easiest method of synchronization. It has no effect when sent after sequential commands.
// If *WAI follows
INITiate<Ch>[:IMMediate]
(overlapped command),
// the analyzer executes no further commands or queries until the sweep is terminated.
// *WAI does prevent the controller from sending other commands to the analyzer or other devices
// on the GPIB bus
INITiate1:SCOPe SINGle //
Single sweep will be started in the referenced channel only
INITiate1:IMMediate; *WAI //
Start single sweep in channel no. 1, wait until the end of the
sweep
<Continue program sequence>
//