The following example shows how to calibrate and perform a noise figure measurement.
// Reset the analyzer
*RST
:SYSTEM:DISPLAY:UPDATE ON
// Reduce number of sweep points for slow measurement
:SENSe1:SWEep:POINts 11
// Configure measurement (dialog "Define Noise Figure Measurement")
:SENSe1:SWEep:DETector:TIME 40 ms
:SENSe1:NFIGure:SEQuential OFF // simultaneous
// Configure meas. and noise figure calibration (dialog "Noise Figure Calibration")
:SENSe1:BANDwidth:RESolution 5 MHz
:SENSe1:BANDwidth:RESolution:SELect HIGH
:SENSe1:POWer:IFGain2:MEASure LNOise
//:SENSe1:POWer:IFGain1:REFerence LDIStortion
// Perform noise figure measurement (uncalibrated)
:SENSe1:CORRection:NFIGure? %0
:CALCulate1:PARameter:MEASure 'Trc1', 'NF21'
:CALCulate1:PARameter:MEASure? 'Trc1' %'NF21'
// Noise figure calibration without external attenuator
:SENSe1:CORRection:COLLect:NFIGure:STARt 2, 1, OFF, 10, 20
:SENSe1:CORRection:COLLect:NFIGure:ACQuire RECeiver
:SENSe1:CORRection:COLLect:NFIGure SOURce
:SENSe1:CORRection:COLLect:NFIGure ATTenuator
:SENSe1:CORRection:COLLect:NFIGure:SAVE
// Note: The previous SAVE command switches the correction ON !
:SENSe1:CORRection:NFIGure? %1
:SENSe1:CORRection:NFIGure OFF
:SENSe1:CORRection:NFIGure ON
// Noise figure calibration with external attenuator
:SENSe1:CORRection:COLLect:NFIGure:STARt 1, 2, ON, 30, 30
:SENSe1:CORRection:COLLect:NFIGure:ACQuire RECeiver
:SENSe1:CORRection:COLLect:NFIGure SOURce
:SENSe1:CORRection:COLLect:NFIGure ATTenuator
:SENSe1:CORRection:COLLect:NFIGure:SAVE
// Noise figure without ext. attenuator --> The third (unnecessary) cal. step fails
:SENSe1:CORRection:COLLect:NFIGure:STARt 1, 2, OFF, 30, 30
:SENSe1:CORRection:COLLect:NFIGure:ACQuire RECeiver
:SENSe1:CORRection:COLLect:NFIGure SOURce
:SENSe1:CORRection:COLLect:NFIGure ATTenuator |-200
:SENSe1:CORRection:COLLect:NFIGure:SAVE
// If a ...:STARt command sequence is not terminated by a ...:SAVE,
// an ...:END command has to be used (to enable measurement sweeps)
:SENSe1:CORRection:COLLect:NFIGure:STARt 1, 2, OFF, 0, 0
:SENSe1:CORRection:COLLect:NFIGure:ACQuire RECeiver
// calibration has not been finished !!!
:SENSe:CORRection:COLLect:NFIGure:END
// Adjust channel settings to previous noise figure calibration
:CALCulate1:PARameter:NFIGure:CSETtings 'Trc1'
:CALCulate1:PARameter:MEASure 'Trc1', 'NF21'