Programming Examples
R&S
®
ZNC
728
User Manual 1173.9557.02 ─ 13
if (CALCULATE1:DATA:NSWEEP:COUNT? > 2)
:CALCULATE1:DATA:NSWEEP:FIRST? SDATA, 1 // first trace data
:CALCULATE1:DATA:NSWEEP:FIRST? SDATA, 3 // third trace data
7.2.4.4
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
: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
7.2.5 Calibration
The following programming examples are related to system error correction and power
calibration.
7.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
Condensed Programming Examples