![background image](http://html1.mh-extra.com/html/rands/znb/znb_user-manual_32867571399.webp)
Programming Examples
R&S
®
ZNB/ZNBT
1399
User Manual 1173.9163.02 ─ 55
:CALCULATE1:MARKER:REFERENCE ON
:CALCULATE1:MARKER:REFERENCE:X 5GHZ
:CALCULATE1:MARKER1:TYPE FIXED
// Query marker response values
:CALCULATE1:FORMAT MLINEAR
:CALCULATE1:MARKER1 ON
:CALCULATE1:MARKER1:X DEF
:CALCULATE1:MARKER1:FORMAT MLINEAR
// DataBase EMarkerFormat::LIN_MAG
:CALCULATE1:MARKER1:Y?
:CALCULATE1:MARKER1:FORMAT MLOGARITHMIC
// ..... DB_MAG
:CALCULATE1:MARKER1:Y?
9.2.3.1
Marker Search Functions
The following example shows how to search for particular measurement points using
markers.
// Reset the analyzer
*RST
:SYSTEM:DISPLAY:UPDATE ON
// Define marker and stimulus range
:CALCULATE1:MARKER1 ON
:SENSE1:FREQUENCY:START 1GHZ
:SENSE1:FREQUENCY:STOP 2GHZ
// Do the marker search in the format DB Magnitude
:CALCULATE1:FORMAT MLOGARITHMIC
// Define marker search ranges (stimulus range of the marker search)
// Range 0 is always the stimulus range of the trace (can't be changed)
:CALCULATE1:MARKER1:FUNCTION:DOMAIN:USER 0
:CALCulate1:MARKer1:FUNCtion:DOMain:USER:START?
:CALCulate1:MARKer1:FUNCtion:DOMain:USER:STOP?
// Range 1 (within the stimulus range)
:CALCULATE1:MARKER1:FUNCTION:DOMAIN:USER 1
:CALCulate1:MARKer1:FUNCtion:DOMain:USER:START 1.2GHZ
:CALCulate1:MARKer1:FUNCtion:DOMain:USER:STOP 1.8GHZ
// 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
Condensed Programming Examples