R&S
®
ZVA / R&S
®
ZVB / R&S
®
ZVT Programming Examples
Condensed Programming Examples
Operating Manual 1145.1084.12 – 30 1106
// 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
Trace Mathematics
The following script contains examples for trace mathematics.
// Reset the analyzer
*RST
:SYSTEM:DISPLAY:UPDATE ON
// Create memory trace on active trace of channel 1,
// assign the memory trace to a diagram
:CALCULATE1:MATH:MEMORIZE
:DISPLAY:WINDOW1:TRACE2:FEED 'Mem2[Trc1]'
// Define simple trace mathematics
:CALCULATE1:MATH:FUNCTION ADD
:CALCULATE1:MATH:FUNCTION?
// Trace mathematics off
:CALCULATE1:MATH:FUNCTION NORMAL
:CALCULATE1:MATH:FUNCTION?
*RST
// Create Trc2 in channel 1 and display it in diagram 1