Programming examples
R&S
®
ZNA
1609
User Manual 1178.6462.02 ─ 20
// 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]))
8.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 Continuous / 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