Programming examples
R&S
®
ZNA
1593
User Manual 1178.6462.02 ─ 20
*ESE 1
// Start single sweep in channel no. 1, set the OPC bit in the ESR
// after the sweep is terminated.
// The controller may still send messages, the analyzer continues to parse
// and execute commands.
INITiate1:IMMediate; *OPC
// Controller waits for service request from the analyzer
// (program syntax depends on your programming environment).
<Wait for service request>
<Continue program sequence>
8.1.1.4
Retrieving measurement results
Programming task:
Read the results acquired in a single sweep.
// 1. Read single values (-> Markers)
// Markers are the most convenient tool for determining and retrieving single
// values on traces.
// The analyzer provides up to ten markers; see Markers and Limit Lines.
// 2. Read complete trace
// Select a trace format and read formatted trace data.
CALCulate1:FORMat MLINear / Calculate the linear magnitude of z
CALCulate1:DATA? FDATa / Read the formatted trace data
Use
CALCulate<Chn>:DATA:NSWeep:FIRSt?
to retrieve a particular trace within a
group of sweeps.
8.1.2
Channel, trace and diagram handling
The following examples show you how to perform basic tasks related to channel and
trace definition and to the display of traces in diagrams.
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.
8.1.2.1
Several traces with equal channel settings
Programming task:
Create up to four different traces with equal channel settings,
assign the four 2-port standard S-parameters to the traces and display them in up to
four diagrams.
Basic tasks