
Command Reference
R&S
®
ZNL/ZNLE
960
User Manual 1178.5966.02 ─ 07
// 2nd Alternative: Forward reading (no command synchronization necessary)
Select single sweep mode and measure a single sweep group for channels no. 1
:INITIATE1:CONTinuous OFF
:INITIATE1:IMMEDIATE
Read the first and the following trace data in channel 1
if (CALCULATE1:DATA:NSWEEP:COUNT? > 2)
:CALCULATE1:DATA:NSWEEP:FIRST? SDATA, 1 // first trace data
:CALCULATE1:DATA:NSWEEP:FIRST? SDATA, 3 // third trace data
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
: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
10.6.2.5
Calibration
The following programming examples are related to system error correction and power
calibration.
One and Two-Port Calibration
The following example calibrates one or two analyzer ports.
// Reset the analyzer
*RST
// 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
VNA Programming Examples
www.allice.de
Allice Messtechnik GmbH