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
//
//
// Full one port = OSM
// Select cal procedure
:SENSe1:CORRection:COLLect:METHod:DEFine 'Test SFK OSM 1', FOPORT, 1
//
// Measure Standards
:SENSe1:CORRection:COLLect:ACQuire:SELected OPEN, 1
:SENSe1:CORRection:COLLect:ACQuire:SELected SHORT, 1
:SENSe1:CORRection:COLLect:ACQuire:SELected MATCH, 1
//
// Apply cal, activate enhanced wave calibration in addition
:SENSe1:CORRection:COLLect:SAVE:SELected
:SENSe1:CORRection:EWAVe:STATe ON
//
//
// 2 port TOSM
// Select cal procedure
:SENSe1:CORRection:COLLect:METHod:DEFine 'Test SFK TOSM 12', TOSM, 1, 2
//
// Measure Standards
:SENSe1:CORRection:COLLect:ACQuire:SELected THROUGH, 1, 2
:SENSe1:CORRection:COLLect:ACQuire:SELected OPEN, 1
:SENSe1:CORRection:COLLect:ACQuire:SELected SHORT, 1
:SENSe1:CORRection:COLLect:ACQuire:SELected MATCH, 1
:SENSe1:CORRection:COLLect:ACQuire:SELected OPEN, 2
:SENSe1:CORRection:COLLect:ACQuire:SELected SHORT, 2
:SENSe1:CORRection:COLLect:ACQuire:SELected MATCH, 2
//
// Apply calibration
:SENSe1:CORRection:COLLect:SAVE:SELected
//
// Save / load cal files
// Save calibration in calibration file pool in directory
// C:\Rohde&Schwarz\Nwa\Calibration\Data
// the file name in the commands must not contain the path !
:MMEMORY:STORE:CORRection 1, 'OSM1 TOSM12.cal'
//
// load cal file from calibration file pool
:MMEMORY:LOAD:CORRection 1, 'OSM1 TOSM12.cal'