Programming examples
R&S
®
ZNA
1601
User Manual 1178.6462.02 ─ 20
// Channel 4 does not exist, a new channel and trace is created
:CALCULATE4:PARAMETER:SDEFINE "Ch4Trc2","S22"
:CALCULATE4:PARAMETER:SDEFINE "Ch4Trc3","S33"
:CALCULATE4:PARAMETER:CATALOG?
// Select active traces for channel 4
:CALCULATE4:PARAMETER:SELECT "Ch4Trc2"
:CALCULATE4:PARAMETER:SELECT?
//:CALCULATE4:FORMAT POLAR
:CALCULATE4:PARAMETER:SELECT "Ch4Trc3"
//:CALCULATE4:FORMAT DB_LIN
:CALCULATE4:PARAMETER:SELECT?
:CALCULATE4:PARAMETER:SELECT "Ch4Trc2"
:CALCULATE4:FORMAT?
:CALCULATE4:PARAMETER:SELECT "Ch4Trc3"
:CALCULATE4:FORMAT?
// Create trace
:CALCULATE1:PARAMETER:SDEFINE "Trc2","S21"
:CALCULATE1:PARAMETER:SDEFINE "Trc3","S31"
:CALCULATE1:PARAMETER:CATALOG?
// Delete trace
:CALCULATE1:PARAMETER:DELETE "Trc2"
:CALCULATE1:PARAMETER:CATALOG?
// Assign a trace to a window = diagram, diagram 1 always exists
:DISPLAY:WINDOW1:TRACE2:FEED 'TrcDisp'
// Create diagram 2
:DISPLAY:WINDOW2:STATE?
:DISPLAY:WINDOW2:STATE ON
:DISPLAY:WINDOW2:STATE?
:DISPLAY:WINDOW2:TRACE6:FEED 'Ch4Trc2'
:DISPLAY:WINDOW2:TRACE2:FEED 'Trc1'
:DISPLAY:WINDOW2:TRACE3:FEED 'Ch4Trc3'
// Create traces: trace names are not case-sensitive
:CALCULATE4:PARAMETER:SELECT "Ch4Trc2"
:CALCULATE4:PARAMETER:SELECT?
:CALCULATE4:PARAMETER:SELECT "CH4TRC3"
:CALCULATE4:PARAMETER:SELECT?
:CALCULATE4:PARAMETER:SELECT "ch4trc2"
:CALCULATE4:PARAMETER:SELECT?
Condensed programming examples