![Rohde & Schwarz 1332.4500.22 User Manual Download Page 1390](http://html1.mh-extra.com/html/rohde-and-schwarz/1332-4500-22/1332-4500-22_user-manual_14777821390.webp)
Programming Examples
R&S
®
ZNA
1390
User Manual 1178.6462.02 ─ 12
// 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
9.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