Programming examples
R&S
®
ZNB/ZNBT
1494
User Manual 1173.9163.02 ─ 62
Important remote control features for this program example
The following command sequence illustrates the structure of the remote commands
discussed in section Basic Remote Control Concepts. In particular it shows that:
●
A trace can be created and handled without being displayed.
●
Traces are referenced by trace names. The active trace of a channel is often refer-
enced by the channel suffix.
●
Diagrams are referenced by a window suffix
<Wnd>
. An additional suffix
<WndTr>
in the
DISPlay:WINDow<Wnd>:TRACe<WndTr>...
commands numbers the dif-
ferent traces in a diagram.
●
In remote control, it is possible to display the same trace in several diagrams.
●
The analyzer provides several commands allowing a smooth transition between
remote and manual control.
// 1. 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
// 2. One channel, two traces, two diagrams
// Create a second diagram, assign Trc2 to the new area, and remove it
// from the first area.
DISPlay:WINDow2:STATe ON
DISPlay:WINDow2:TRACe2:FEED 'Trc2'
// Trc2 is now displayed in both diagrams
DISPlay:WINDow1:TRACe2:DELete
// Check the result on the local screen
// Go to local
SYSTem:DISPlay:UPDate ONCE
Basic tasks