![Rohde & Schwarz 1311.6010.22 User Manual Download Page 1362](http://html.mh-extra.com/html/rohde-and-schwarz/1311-6010-22/1311-6010-22_user-manual_14777681362.webp)
Programming Examples
R&S
®
ZNB/ZNBT
1362
User Manual 1173.9163.02 ─ 53
// Connect to the cal unit
:SYSTem:COMMunicate:RDEVice:AKAL:ADDRess 'ZN-Z51::999002'
////////////////////////////////////////////////////////////////////////////////
// Prepare the multi cal
// create the first calibration:
// with full multi port and factory calkit
:SENSe1:CORRection:COLLect:AUTO:CONFigure FNPort, ''
// the first cal addresses test ports 2,3 and 4 and explicitly
// assigns them to cal unit ports 2,3 and 4, respectively
:SENSE1:CORRECTION:COLLECT:AUTO:ASSignment1:DEFine 2,2,3,3,4,4
// get the number of port assignments of the current calibration
// expected result: 1
:SENSE1:CORRECTION:COLLECT:AUTO:ASSignment:COUNt?
// explore port assignment 1
// expected result: 2,2,3,3,4,4
:SENSE1:CORRECTION:COLLECT:AUTO:ASSignment1:DEFine?
// create the second calibration:
// full one port and factory calkit
:SENSe1:CORRection:COLLect:AUTO:CONFigure FOPort, ''
// the second cal addresses test port 1
// and explicitly assigns it to cal unit port 1
:SENSE1:CORRECTION:COLLECT:AUTO:ASSignment2:DEFine 1,1
// get the number of port assignments of the current calibration
// expected result: 1
:SENSE1:CORRECTION:COLLECT:AUTO:ASSignment:COUNt?
// get the number of port assignments of all calibrations
// expected result: 2
:SENSE1:CORRECTION:COLLECT:AUTO:ASSignment:ALL:COUNt?
// explore port assignment 2
// expected result: 1,1
:SENSE1:CORRECTION:COLLECT:AUTO:ASSignment2:DEFine?
////////////////////////////////////////////////////////////////////////////////
// Acquire error correction data
:SENSE1:CORRECTION:COLLECT:AUTO:ASSignment1:ACQUire
:SENSE1:CORRECTION:COLLECT:AUTO:ASSignment2:ACQUire
////////////////////////////////////////////////////////////////////////////////
// Save the complete Multi-Cal
:SENSe1:CORRection:COLLect:AUTO:SAVE
////////////////////////////////////////////////////////////////////////////////
Condensed Programming Examples