Perform a Cal All Channels Calibration


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>.

SYST:CAL:ALL <commands>

The general sequence for setting up the Cal All session is as follows:

  1. Select the channels to calibrate using the SYST:CAL:ALL:SEL command.

  2. Select the ports to calibrate using the SYST:CAL:ALL:CHAN:PORTs command.

  3. 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.

  4. 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?

SENS<chan>:CORR:COLL:GUIDed <commands>

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:

  1. 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).

  2. Set up the connector family and gender per port using the SENS:CORR:COLL:GUID:CONN:PORT command.

  3. Set up the cal kit per port using the SENS:CORR:COLL:GUID:CKIT:PORT command.

  4. Initialize the session using the SENS:CORR:COLL:GUID:INIT command.

  5. Query the number of steps using the SENS:CORR:COLL:GUID:STEPs? command.

  6. Acquire each step using the SENS:CORR:COLL:GUID:ACQ command.

  7. Save the calset using the SENS:CORR:COLL:GUID:SAVE command.

Cal All Examples

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

SMC Cal All

IMD 2nd Order Cal All

Cal All for Mixer Channel

Independent Power Calibration

 

Each VBScript (*.vbs) program can be run as a macro in the PNA. To do this, copy the code into a text editor file, such as Notepad, and save it on the PNA hard drive as *.vbs.

Learn how to setup and run the macro.

See CalAll SCPI commands

Learn about Cal All

See Other SCPI Example Programs