Programming Examples
R&S
®
ZNB/ZNBT
1233
User Manual 1173.9163.02 ─ 38
if (CALCULATE1:DATA:NSWEEP:COUNT? > 2)
:CALCULATE1:DATA:NSWEEP:FIRST? SDATA, 1 // first trace data
:CALCULATE1:DATA:NSWEEP:FIRST? SDATA, 3 // third trace data
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
Condensed Programming Examples