Programming Examples
R&S
®
ZNB/ZNBT
1228
User Manual 1173.9163.02 ─ 38
:CALCULATE1:MARKER2 ON
:CALCULATE1:MARKER2:X 2GHZ
:CALCULATE1:MARKER3 ON
:CALCULATE1:MARKER3:X 3GHZ
:CALCULATE1:MARKER4:DELTA:STATE ON
: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?
8.2.3.1
Marker Search Functions
The following example shows how to search for particular measurement points using
markers.
// Reset the analyzer
*RST
:DISPlay:WINDow1:TITLe:DATA 'Max Hold Function Emulation'
// 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
Condensed Programming Examples