R&S
®
ZVA/ZVB/ZVT Program Examples
1145.1084.12 7.1 E-1
7 Program Examples
This chapter contains detailed program examples on the following subjects:
• Traces, Channels and Diagram Areas
• Calibration
The syntax and use of all SCPI commands is described in the SCPI Reference chapter. For a general
introduction to remote control of the analyzer refer to chapter Remote Control.
Traces
The following example shows you how to create and name channels, and assign traces to channels
and diagram areas.
// Reset the analyzer
*RST
//
// Delete channel 1
:CONFigure:CHANnel1 OFF
//
// Create channels 1 - 4 and traces on this channels
:CALCulate1:PARameter:SDEFine 'Trc1', 'S11'
:CALCulate2:PARameter:SDEFine 'Trc2', 'S12'
:CALCulate3:PARameter:SDEFine 'Trc3', 'S21'
:CALCulate4:PARameter:SDEFine 'Trc4', 'S22'
//
// Assign names to the channels
:CONFigure:CHANnel1:NAME 'Channel 1'
:CONFigure:CHANnel2:NAME 'Channel 2'
:CONFigure:CHANnel3:NAME 'Channel 3'
:CONFigure:CHANnel4:NAME 'Channel 4'
//
// Query channel names
:CONFigure:CHANnel1:NAME?
:CONFigure:CHANnel2:NAME?
:CONFigure:CHANnel3:NAME?
:CONFigure:CHANnel4:NAME?
//
// Get list of channel numbers and names (2 entries per channel)
:CONFigure:CHANnel:CATalog?