Programming Examples
R&S
®
ZNC
714
User Manual 1173.9557.02 ─ 13
// 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?
7.2.2.2
Memory Traces
The following example shows how to save data to memory and work with memory traces.
Condensed Programming Examples