R&S
®
ZVA / R&S
®
ZVB / R&S
®
ZVT Programming Examples
Condensed Programming Examples
Operating Manual 1145.1084.12 – 30 1099
// Create traces: trace names are not case sensitive
:CALCULATE4:PARAMETER:SELECT "Ch4Trc2"
:CALCULATE4:PARAMETER:SELECT?
:CALCULATE4:PARAMETER:SELECT "CH4TRC3"
:CALCULATE4:PARAMETER:SELECT?
:CALCULATE4:PARAMETER:SELECT "ch4trc2"
:CALCULATE4:PARAMETER:SELECT?
Exporting S-Parameters
The calibration defines which S-Parameters are allowed to be exported to a Touchstone file. In the
following example a default (TOSM) calibration is created to make all S-Parameters available.
// Reset the analyzer
*RST
:SYSTEM:DISPLAY:UPDATE ON
// Select current directory, create default calibration
:MMEMory:CDIRectory 'C:\Program Files\Rohde&Schwarz\Network Analyzer\Traces'
:SENSe1:CORRection:COLLect:METHod:DEFine 'Test', TOSM, 1, 2, 3, 4
:SENSe1:CORRection:COLLect:SAVE:SELected:DEFault
// Initiate a complete sweep
:INITiate1:CONTinuous OFF; :INITiate:IMMediate;*WAI
:MMEMory:STORe:TRACe:PORTs 1, 'ParserTouchstonePorts.s1p', COMPlex, 2
:MMEMory:STORe:TRACe:PORTs 1, 'ParserTouchstonePorts.s2p', COMPlex, 3, 2
:MMEMory:STORe:TRACe:PORTs 1, 'ParserTouchstonePorts.s4p', COMPlex, 1, 4, 3, 2
:MMEMory:CDIRectory DEFault
Path Independent RC Programs
The default directory for R&S ZVA user data is C:\Program Files\Rohde&Schwarz\Network Analyzer.
Other instruments may use different default directories. To make remote control programs compatible, it is
recommended to define all paths relative to the default directory, to be set via MMEMory:CDIRectory
DEFault.
// Select default directory, change to sub-directory (relative to default directory)
MMEMory:CDIRectory DEFault
MMEMory:CDIRectory 'Traces'
MMEMory:STORe:TRACe 'Trc1', 'S21.s1p'
MMEMory:LOAD:TRACe 'Trc1', 'S21.s1p'