Programming Examples
R&S
®
ZNB/ZNBT
1229
User Manual 1173.9163.02 ─ 38
// Range 2 (includes the stimulus range)
:CALCULATE1:MARKER1:FUNCTION:DOMAIN:USER 2
:CALCulate1:MARKer1:FUNCtion:DOMain:USER:START 0.8GHZ
:CALCulate1:MARKer1:FUNCtion:DOMain:USER:STOP 2.2GHZ
// Use range 0 (stimulus range of the trace)
:CALCULATE1:MARKER1:FUNCTION:DOMAIN:USER 0
// Select linear magnitude scale for diagram
:CALCULATE1:FORMAT MLINEAR
// Search for global minimum and maximum (MIN, MAX)
// (initial marker value may be inside or outside the marker search range)
:CALCULATE1:MARKER1:X 1.5GHZ
:CALCULATE1:MARKER:MIN
:CALCULATE1:MARKER1:X?
:CALCULATE1:MARKER1:X 1.5GHZ
:CALCULATE1:MARKER:MAX
:CALCULATE1:MARKER1:X?
// Minimum peak search functions
:CALCULATE1:MARKER1:FUNCTION:SELECT MINIMUM
:CALCULATE1:MARKER1:FUNCTION:SELECT?
// NEXT PEAK
:CALCULATE1:MARKER1:X 1.5GHZ
:CALCULATE1:MARKER:SEARCH:NEXT
:CALCULATE1:MARKER1:X?
// PEAK RIGHT
:CALCULATE1:MARKER1:X 1.5GHZ
:CALCULATE1:MARKER:SEARCH:RIGHT
:CALCULATE1:MARKER1:X?
// PEAK LEFT
:CALCULATE1:MARKER1:X 1.5GHZ
:CALCULATE1:MARKER:SEARCH:LEFT
:CALCULATE1:MARKER1:X?
// Maximum peak search functions
:CALCULATE1:MARKER1:FUNCTION:SELECT MAXIMUM
// Proceed as for minimum search
8.2.4 Data Handling
The following sections provide examples for efficient sweep definition and data han-
dling. Part of the functionality is not available in manual control.
Condensed Programming Examples