Programming Examples
R&S
®
ZNA
1372
User Manual 1178.6462.02 ─ 12
*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>
9.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.
9.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.
9.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