Programming Examples
R&S
®
ZNC
710
User Manual 1173.9557.02 ─ 13
// Change the display format for the 'Z_trace'. The trace is the active trace
// in channel 3, so it is referenced by the channel suffix 3.
// Update the display
CALCulate3:FORMat PHASe
// Update the display
SYSTem:DISPlay:UPDate ONCE
7.1.2.3
Markers and Limit Lines...
Programming task:
Display two traces in a single diagram ares, use markers to read
results, and perform a limit check.
Important remote control features for this program example
The following command sequence illustrates the structure of the remote commands dis-
cussed in section Basic Remote Control Concepts. In particular it shows that:
1. Traces are referenced by trace names. The active trace of a channel is often refer-
enced by the channel suffix. This simplifies the program syntax, e.g. in the commands
for marker settings and for the limit check.
2. Diagrams are referenced by a window suffix
<Wnd>
. An additional suffix
<WndTr>
in
the
DISPlay:WINDow<Wnd>:TRACe<WndTr>...
commands numbers the differ-
ent traces in a diagram.
3. The analyzer provides several commands allowing a smooth transition between
remote and manual control.
// 1. Create one channel, two traces, one diagram
// Reset the instrument, creating the default trace Trc1 in channel 1.
// The default measured quantity is the forward transmission S-parameter S21.
// The default format is dB Mag.
*RST
// Create a second trace in channel 1, assign the format Phase,
// and display the new trace in the same diagram.
// the trace becomes the active trace but is not displayed
CALCulate1:PARameter:SDEFine 'Trc2', 'S21'
// the trace is referenced by the channel suffix 1
CALCulate1:FORMat PHASe
// display the second trace, numbering it the second trace in diagram no. 1
DISPlay:WINDow1:TRACe2:FEED 'Trc2'
// Check the result on the local screen
// Go to local
SYSTem:DISPlay:UPDate ONCE
Basic Tasks