Programming examples
R&S
®
ZNA
1595
User Manual 1178.6462.02 ─ 20
// 3. One channel, four traces, four diagrams
// Reset the instrument, add diagrams no. 2, 3, 4.
*RST; :DISPlay:WINDow2:STATe ON
DISPlay:WINDow3:STATe ON
DISPlay:WINDow4:STATe ON
// Assign the reflection parameter S11 to the default trace.
:CALCulate1:PARameter:MEASure 'Trc1', 'S11'
// Assign the remaining S-parameters to new traces Trc2, Trc3, Tr4;
// select the Smith chart format for the reflection parameters.
CALCulate1:FORMat SMITh // Smith chart for the active trace Trc1
CALCulate1:PARameter:SDEFine 'Trc2', 'S21'
CALCulate1:PARameter:SDEFine 'Trc3', 'S12'
CALCulate1:PARameter:SDEFine 'Trc4', 'S22'
// Smith chart for the active trace Trc4, referenced by the channel number
CALCulate1:FORMat SMITh
// Display the new traces in diagrams no. 2 to 4.
DISPlay:WINDow2:TRACe2:FEED 'Trc2'
DISPlay:WINDow3:TRACe3:FEED 'Trc3'
DISPlay:WINDow4:TRACe4:FEED 'Trc4'
// Check the result on the local screen
// Go to local
SYSTem:DISPlay:UPDate ONCE
8.1.2.2
Several traces with different channel settings...
Programming task:
Create three channels with 3, 1 and 2 traces, respectively, and
display the traces in two diagrams.
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:
1. Channels are always referenced by a channel suffix.
2. Traces are referenced by trace names. The active trace of a channel is often refer-
enced by the channel suffix.
3. 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.
4. The analyzer provides several commands allowing a smooth transition between
remote and manual control.
Basic tasks