There are two sets of commands used to automate a Cal All Channels Calibration: SYST:CAL:ALL <commands> and SENS<chan>:CORR:COLL:GUIDed <commands>.
The general sequence for setting up the Cal All session is as follows:
Select the channels to calibrate using the SYST:CAL:ALL:SEL command.
Select the ports to calibrate using the SYST:CAL:ALL:CHAN:PORTs command.
Set the properties that are available in Cal All that are relevant to the channels you are calibrating using the SYST:CAL:ALL:MCLass:PROP:VAL <name>,<val> command. For example, setting <name> to "Include Power Calibration" and <val> to "true" will include a source and receiver power calibration in the Cal All calibration.
Query the channel number to use for the remaining cal commands. This channel is used for the sole purpose of acquiring cal data and finds the highest available channel number.
Note: You
must query this number – do not assume that it will always be a particular
value. For example:
a.chan = SYST:CAL:ALL:GUIDed:CHAN?
These commands are identical to the command used for a single channel calibration. However, the number used for the SENSe header is determined by the SYST:CAL:ALL:GUIDed:CHAN? command. The general sequence is as follows:
Set up the power sensor using the SENS:CORR:COLL:GUID:PSENsor commands if you will be performing a power calibration (source and receiver power cal).
Set up the connector family and gender per port using the SENS:CORR:COLL:GUID:CONN:PORT command.
Set up the cal kit per port using the SENS:CORR:COLL:GUID:CKIT:PORT command.
Initialize the session using the SENS:CORR:COLL:GUID:INIT command.
Query the number of steps using the SENS:CORR:COLL:GUID:STEPs? command.
Acquire each step using the SENS:CORR:COLL:GUID:ACQ command.
Save the calset using the SENS:CORR:COLL:GUID:SAVE command.
1-Port, 1-Channel, no Power Cal, with ECal Module
2-Port, 1-Channel, no Power Cal, with ECal Module
2-Port, 1-Channel, with Power Cal, with ECal Module
2-Port, 2-Channel, with Power Cal, with ECal Module
Noise Figure Cal All
Noise Figure Cal All with USB noise source
SMC Cal All
Each VBScript (*.vbs) program can be run as a macro in the VNA. To do this, copy the code into a text editor file, such as Notepad, and save it on the VNA hard drive as *.vbs.
Learn how to setup and run the macro.
See Other SCPI Example Programs