Programming Examples
R&S
®
ZNA
1377
User Manual 1178.6462.02 ─ 12
// 2. Marker settings
// Adjust the sweep range to consider an interesting segment of the trace and
// re-scale the diagram.
SENSe1:FREQuency:STARt 4.5 GHz; STOP 5.5 GHz
// in the autoscale command the trace is referenced by its number in the diagram
DISPlay:WINDow1:TRACe1:Y:SCALe:AUTO ONCE
// Select trace Trc1 as the active trace of the channel, define a reference
// marker and a delta marker.
// In the marker commands the active trace is referenced by the channel suffix.
CALCulate1:PARameter:SELect 'Trc1'
// the marker is set to the center of the sweep range
CALCulate1:MARKer1:STATe ON
// this command also creates the reference marker
CALCulate1:MARKer1:DELTa:STATe ON
// set the reference marker to the beginning of the sweep range
CALCulate1:MARKer1:REFerence:X 4.5 GHz
// Use the delta marker to search for the minimum of the trace and query the result.
// the query returns the stimulus and the response value at the marker position
CALCulate1:MARKer1:FUNCtion:EXECute MIN; RES?
// Check the result on the local screen
// Go to local
SYSTem:DISPlay:UPDate ONCE
Use the
CALCulate<Chn>:DATA...
commands to retrieve the complete trace; see
Retrieving Measurement Results.
// 3. Limit lines and limit check
// Remove all markers and define a limit line for the active trace.
CALCulate1:MARKer1:AOFF
// define an upper limit line across the entire sweep range
CALCulate1:LIMit:DATA 1, 4500000000, 5500000000, -5, -5
CALCulate1:LIMit:DATA 2, 4500000000, 5000000000, -10, -15
// define two segments for the lower limit line
CALCulate1:LIMit:DATA 2, 5000000000, 5500000000, -15, -10
// Display the limit line and perform the limit check.
CALCulate1:LIMit:DISPlay:STATe ON
CALCulate1:LIMit:STATe ON; FAIL?
// if the trace failed the limit check; the response is 1
Basic Tasks