Programming examples
R&S
®
ZNB/ZNBT
1515
User Manual 1173.9163.02 ─ 62
8.2.4.4
Exporting S-parameters
The calibration defines which S-Parameters are allowed to be exported to a Touch-
stone 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
: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
8.2.5
Calibration
The following programming examples are related to system error correction and power
calibration.
8.2.5.1
One and two-port calibration
The following example calibrates one or two analyzer ports.
// Reset the analyzer
*RST
:SYSTEM:DISPLAY:UPDATE ON
// Set cal kit as active kit for N50
:SENSE:CORRECTION:CKIT:N50:SELECT 'ZV-Z121'
// Select connectors for the ports
:SENSE1:CORRECTION:COLLECT:CONNECTION1 N50MALE
:SENSE1:CORRECTION:COLLECT:CONNECTION2 N50MALE
// Don't save the cal standard measurements with apply cal, i.e. with the commands
// :SENSE1:CORRECTION:COLLECT:SAVE or
// :SENSe1:CORRection:COLLect:SAVE:SELected
// Instead, use the global, channel-independent setting:
:SENSe:CORRection:COLLect:ACQuire:RSAVe:DEFault OFF
Condensed programming examples