Programming Examples
R&S
®
ZNC
722
User Manual 1173.9557.02 ─ 13
// Set the layout format directly (horizontal, joined layout)
:DISPlay:LAYout:EXECute
'(1,1,0.00,0.00,(1,2,1.00,1.00,[0.30,1.00],
(1,1,0.70,1.00,(2,1,1.00,1.00,[1.00,0.50],[1.00,0.50]))))'
// Alternative direct definition of the joined layout as a vertical layout
:DISPlay:LAYout:DEFine 3, VERT, '0.3,1.0;0.7,0.5,0.5'
:DISPlay:LAYout:APPLy 3
:DISPlay:LAYout:EXECute?
%(1,2,0.00,0.00,(1,1,0.3,1.00,[1.00,1.0]),(2,1,0.7,1.00,[1.00,0.5],[1.00,0.5]))
7.2.3 Using Markers
The following example shows you how to define markers and use them to read trace
values.
// Reset the analyzer
*RST
:SYSTEM:DISPLAY:UPDATE ON
// Initiate a single sweep
:INITiate1:CONTinuous OFF
:INITiate1:IMMediate;*WAI
// The following marker commands have the channel no. as a numeric suffix.
// The parameter belongs to a trace, the assignment channel -> trace
// is done via a "active" trace for each channel
:CALCULATE1:PARAMETER:SELECT 'Trc1'
// Marker ON / OFF
:CALCULATE1:MARKER1 ON
:CALCULATE1:MARKER1:STATE?
// Coupled Markers
// All markers belonging to channels with the same sweep type
// (FREQUENCY, TIME, POWER, CW FREQUENCY) are coupled/decoupled
:CALCULATE1:MARKER:COUPLED ON
// Marker Continous / Discrete
:CALCULATE1:MARKER1:MODE CONTINUOUS
// Normal / Delta / Reference / Fixed Marker
:CALCULATE1:MARKER:AOFF // all markers off
:CALCULATE1:MARKER1 ON
:CALCULATE1:MARKER1:X 1GHZ
Condensed Programming Examples