S820E Microwave Site Master™ Programming Manual : Vector Network Analyzer Mode Commands
 
Vector Network Analyzer Mode Commands
 
:CALCulate#:FORMat LMAGnitude|SWR|PHASe|SMITh|GDELay|REAL|IMAGinary|RIMPedance|IIMPedance|LM/2|ISMith
:CALCulate#:LIMit:LOWer:SEGMent:ADD <StartX><StopX><StartY><StopY>
:CALCulate#:LIMit:LOWer:SEGMent:DELete
:CALCulate#:LIMit:LOWer:SEGMent:EDIT <StartX><StopX><StartY><StopY>
:CALCulate#:LIMit:LOWer:SEGMent:STARt:X <value>
:CALCulate#:LIMit:LOWer:SEGMent:STARt:Y <amplitude>
:CALCulate#:LIMit:LOWer:SEGMent:STOP:X <value>
:CALCulate#:LIMit:LOWer:SEGMent:STOP:Y <amplitude>
:CALCulate#:LIMit:LOWer:Y <amplitude>{dB,s|ms|ns|ps}
:CALCulate#:LIMit:LOWer[:STATe] OFF|ON|0|1
:CALCulate#:LIMit:UPPer:SEGMent:ADD <StartX><StopX><StartY><StopY>
:CALCulate#:LIMit:UPPer:SEGMent:DELete
:CALCulate#:LIMit:UPPer:SEGMent:EDIT <StartX><StopX><StartY><StopY>
:CALCulate#:LIMit:UPPer:SEGMent:STARt:X <value>
:CALCulate#:LIMit:UPPer:SEGMent:STARt:Y <amplitude>
:CALCulate#:LIMit:UPPer:SEGMent:STOP:X <value>
:CALCulate#:LIMit:UPPer:SEGMent:STOP:Y <amplitude>
:CALCulate#:LIMit:UPPer:Y <amplitude>{dB,s|ms|ns|ps}
:CALCulate#:LIMit:UPPer[:STATe] OFF|ON|0|1
:CALCulate#:REFPlane:AUTO
:CALCulate#:SMOothing:APERture <percentage>
:CALCulate:LIMit:ALARm OFF|ON|0|1
:CALCulate:LIMit:LOWer:SEGMent:ACTive <Index>
:CALCulate:LIMit:MESSage OFF|ON|0|1
:CALCulate:LIMit:MODe
:CALCulate:LIMit:PRESet
:CALCulate:LIMit:TYPE 0|1
:CALCulate:LIMit:UPPer:SEGMent:ACTive <Index>
:CALCulate:LIMit:VALue <amplitude>{dB}
:CALCulate:LIMit[:STATe] OFF|ON|0|1
:CALCulate:MARKer#:PEAK
:CALCulate:MARKer#:PEAK:BOUNded
:CALCulate:MARKer#:TRACking PEAK|VALLey|BNDPeak|BNDValley|OFF
:CALCulate:MARKer#:TYPE REFerence|DELTa
:CALCulate:MARKer#:VALLey
:CALCulate:MARKer#:VALLey:BOUNded
:CALCulate:MARKer#:X <value>{Hz|kHz|MHz|GHz,m|cm|mm,ft}
:CALCulate:MARKer#[:STATe] OFF|ON|0|1
:CALCulate:MARKer:DISPlay MKRTable|MKRonly|AOFF
:CALCulate:MARKer:PRESet
:CALCulate:MATH:FUNCtion NORMal|ADD|SUBtract|MULTiply|DIVide
:CALCulate:MATH:MEMorize
:CALCulate:REFPlane:PORT#:DISTance <distance>{ m|cm|mm,ft}
:CALCulate:REFPlane:PORT#:LOSS <loss>{dB}
:CALCulate:REFPlane:PORT#:TIME <time>{ s, ms, us, ns, ps}
:CALCulate:TRANsform:DISTance:CABLoss <cable-loss>{ dB/m,dB/ft}
:CALCulate:TRANsform:DISTance:PVELocity <propagation-velocity>
:CALCulate:TRANsform:DISTance:STARt <distance>{ m|cm|mm,ft}
:CALCulate:TRANsform:DISTance:STOP <distance>{ m|cm|mm,ft}
:CALCulate:TRANsform:DISTance:UNIT METers|FEET
:CALCulate:TRANsform:DISTance:WINDow RECTangular|MSLobe|NSLobe|LSLobe
:CAPTure:STARt
:CAPTure:STOP
:CAPTure:TRACe#:DATA? FDATa|SDATa|FMEM|SMEM
:DISPlay:UPDate ON|OFF|1|0
:DISPlay:WINDow:TRACe#:Y[:SCALe]:PDIVision <division-size>{dB,s|ms|ns|ps}
:DISPlay:WINDow:TRACe#:Y[:SCALe]:RLEVel <reference-level>{dB,s|ms|ns|ps}
:DISPlay:WINDow:TRACe#:Y[:SCALe]:RPOSition <reference-position>
:DISPlay:WINDow:TRACe:STATe TRACe|MEMory|BOTH
:DISPlay:WINDow:TRACe:Y[:SCALe]:AUToscale
:DISPlay:WINDow:TRACe:Y[:SCALe]:FULLscale
:DISPlay:WINDow:TRACe:Y[:SCALe]:GDAPerture <percentage>
:DISPlay[:WINDow]:TRACe:FORMat SINGle|DUAL|TRI|QUAD
:FORMat[:READings][:DATA] ASCii|INTeger,32|REAL,32
:FORMat[:READings][:DATA]:MULTiplier 1|1M
:INITiate#:DATA? FDATa|SDATa|FMEM|SMEM
:INITiate:CONTinuous OFF|ON|0|1
:INITiate:HOLD OFF|ON|0|1
:INITiate[:IMMediate]
:SENSe:TRACe#:DOMain FREQuency|DISTance
:SENSe:TRACe#:SPARams S11|S21|S12|S22
:SENSe:TRACe:TOTal 1|2|3|4
:SOURce:CORRection:RVELocity <propagation-velocity>
:SOURce:CORRection:RVELocity:CABLoss <cable-loss>{ dB/m,dB/ft}
:SOURce:CORRection:RVELocity:FCUToff <cutoff-frequency>{ Hz|kHz|MHz|GHz}
:SOURce:CORRection:RVELocity:MEDium COAX|WGUide
:SOURce:CORRection:RVELocity:WGLoss <wave-guide-loss>{ dB/m,dB/ft}
:SOURce:POWer LOW|HIGH
[:SENSe:]CORRection:COLLect:INTerpolation[:STATe] ON|OFF|1|0
[:SENSe]:AVERage:CLEar
[:SENSe]:AVERage:COUNt <integer>
[:SENSe]:CORRection:CKIT:SELect# <"calibration-kit name">
[:SENSe]:CORRection:CKIT:USER#:COAX:SOLT:THRU:OFFSet DISTance|TIME, <param-value>
[:SENSe]:CORRection:CKIT:USER#:WGUid:SOLT|SSLT:FCUToff <param-value>
[:SENSe]:CORRection:CKIT:USER#:WGUid|COAX:SOLT:OPEN C0|C1|C2|C3|OFFSet, <param-value>
[:SENSe]:CORRection:CKIT:USER#:WGUid|COAX:SOLT:SHORt L0|L1|L2|L3|OFFSet, <param-value>
[:SENSe]:CORRection:CKIT:USER#:WGUid|COAX:SOLT|SSLT:NAMe <"calibration-kit name">
[:SENSe]:CORRection:CKIT:USER#:WGUid|COAX:SSLT:SHORt[1]|2 L0|L1|L2|L3|OFFSet, <param-value>
[:SENSe]:CORRection:COLLect:ABORt
[:SENSe]:CORRection:COLLect:CONNector# NMALe|NFEMale|KMALe|KFEMale|716Male|716Female|TNCMale|TNCFemale|SMAMale|SMAFemale|WG11|WG12|WG13|WG14|WG15|WG16|WG17|WG18|WG20|WG22|USR1|USR2|USR3|USR4|USR5|USR6|USR7|USR8|USR9|USR10
[:SENSe]:CORRection:COLLect:EDELay:DISTance <distance>{ m|cm|mm}
[:SENSe]:CORRection:COLLect:EDELay:TIME <time>{ S|ms|us|ns|ps}
[:SENSe]:CORRection:COLLect:INITialize
[:SENSe]:CORRection:COLLect:LOAD
[:SENSe]:CORRection:COLLect:MEDium COAX|WGUide
[:SENSe]:CORRection:COLLect:METHod SOLT|SSLT
[:SENSe]:CORRection:COLLect:OPEN
[:SENSe]:CORRection:COLLect:SAVe
[:SENSe]:CORRection:COLLect:SHORt
[:SENSe]:CORRection:COLLect:TYPE RF2P|RFP1|RFP2|RFBP|TRFP|TRRP|TRBP|RRP1|RRP2|RRBP|2PFP|2PRP|2PES|TRES
[:SENSe]:CORRection:COLLect:UPDate
[:SENSe]:CORRection:COLLect[:ACQUire] OPEN|SHORT|SHORT1|SHORT2|LOAD|THRu|ISOLation|ZERo, 1|2|3
[:SENSe]:CORRection:IMPedance[:INPut][:MAGNitude]:SMCHart 50|75
[:SENSe]:CORRection[:STATe] ON|OFF|1|0
[:SENSe]:FREQuency:CABLe <cable-list-index>
[:SENSe]:FREQuency:CABLe:NAMe <"cable-name">
[:SENSe]:FREQuency:CENTer <frequency>{ Hz|kHz|MHz|GHz}
[:SENSe]:FREQuency:SPAN <frequency>{ Hz|kHz|MHz|GHz}
[:SENSe]:FREQuency:STARt <frequency>{ Hz|kHz|MHz|GHz}
[:SENSe]:FREQuency:STOP <frequency>{ Hz|kHz|MHz|GHz}
[:SENSe]:RFON[:STATe] ON|OFF|1|0
[:SENSe]:SWEep:IFBW <frequency>{ Hz|kHz|MHz|GHz}
[:SENSe]:SWEep:POINts <datapoints>
[:SENSe]:SWEep:RFIMmunity HIGH|LOW|1|0
[:SENSe]:SWEep:TYPE CONTinuous|SINGle|EXTernal
[:SENSe]:TRACe:SELect 1|2|3|4
The commands in this section apply to the Vector Network Analyzer (VNA) mode.
:CALCulate#:DATA? FDATa|SDATa|FMEM|SMEM
Query Description
Query returns formatted data block of the specified trace.
Param Range
FDATa|SDATa|FMEM|SMEM
Example
To query trace 1 S-data:
:CALC1:DATA? SDATA
Notes
Replace ’#’ with the required trace number. Check User Guide for the number of supported traces in each mode. FDATa: Formatted (or Final) data. The returned data are based on the Measurement Mode that is associated with the trace. For measurement types that use only one number per point (such as Return Loss, VSWR, Cable Loss, Transmission, Phase), the command returns one number per data point. For graph types that use two numbers per point (such as Smith Chart), the command returns two numbers per data point. SDATa: Complex measurement data. The returned numbers, which are independent of the Measurement Mode that is associated with the trace, are complex measurement data pairs (Real and Imaginary) for each point of the trace. A 517 point trace therefore has a total of 1034 values that get transferred. FMEM: Formatted (or Final) Memory data. Similar to FDATa, but for memory data. SMEM: Complex memory data. Similar to SDATa, but for memory data. Note that in order to get valid data when querying for memory data, you must first store a trace into memory. The format of the block data that is returned can be specified by the command :FORMat[:READings][:DATA]. The response begins with an ASCII header that specifies the number of data bytes. It appears in the format #AX, where A is the number of digits in X, and X is the number of bytes that follow the header. Each data point is separated by a comma delimiter.
:CALCulate#:FORMat LMAGnitude|SWR|PHASe|SMITh|GDELay|REAL|IMAGinary|RIMPedance|IIMPedance|LM/2|ISMith
:CALCulate#:FORMat?
Cmd Description
Command sets the format of the specified trace.
Query Description
Query returns the format of the specified trace.
Param Range
LMAGnitude|SWR|PHASe|SMITh|GDELay|REAL|IMAGinary|RIMPedance|IIMPedance|LM/2|ISMith
Default Value
LMAGnitude
Example
To set trace 3 to SWR:
:CALC3:FORM SWR
Notes
Replace ’#’ with the required trace number. Check User Guide for the number of supported traces in each mode.
:CALCulate#:LIMit:LOWer:SEGMent:ADD <StartX><StopX><StartY><StopY>
Cmd Description
Command adds a segment to the lower limit line.
Param Type
Float
Default Units
X units: Hz for Frequency domain, m or ft for Distance domain; Y units: same as current active trace y-axis units
Example
To add a lower limit segment from 1MHz to 1GHz with value 20 dB for trace 1:
:CALC1:LIM:LOW:SEGM:ADD 1e6,1e9,20,20
Notes
Replace ’#’ with the required trace number. Check User Guide for the number of supported traces in each mode.
:CALCulate#:LIMit:LOWer:SEGMent:DELete
Cmd Description
Command deletes the active lower segment.
Example
To delete the active lower segment for trace 1
:CALC1:LIM:LOW:SEGM:DEL
Notes
Replace ’#’ with the required trace number. Check User Guide for the number of supported traces in each mode.
:CALCulate#:LIMit:LOWer:SEGMent:EDIT <StartX><StopX><StartY><StopY>
Cmd Description
Command edits the lower limit active segment. The active segment index must be updated when adding/deleting a segment.
Param Type
Float
Default Units
X units: Hz for Frequency domain, m or ft for Distance domain; Y units: same as current active trace y-axis units
Example
To edit the active segment and set it to 1MHz to 1GHz with value 20 dB for trace 1:
:CALC1:LIM:LOW:SEGM:EDIT 1e6,1e9,20,20
Notes
Replace ’#’ with the required trace number. Check User Guide for the number of supported traces in each mode.
:CALCulate#:LIMit:LOWer:SEGMent:STARt:X <value>
:CALCulate#:LIMit:LOWer:SEGMent:STARt:X?
Cmd Description
Command sets the lower limit line X start value for current segment.
Query Description
Query returns the lower limit line X start value for active segment.
Param Type
Float
Default Units
Hz for Frequency domain, m or ft for Distance domain.
Example
To set limit X start value to 1 MHz for trace 1:
:CALC1:LIM:LOW:SEGM:STAR:X 1000000
Notes
Replace ’#’ with the required trace number. Check User Guide for the number of supported traces in each mode.
:CALCulate#:LIMit:LOWer:SEGMent:STARt:Y <amplitude>
:CALCulate#:LIMit:LOWer:SEGMent:STARt:Y?
Cmd Description
Command sets the lower limit line Y start value for active segment.
Query Description
Query returns the lower limit line Y start value for active segment.
Param Type
Float
Default Units
Current active trace y-axis units
Example
To set limit start amplitude to 20 dB for trace 1:
:CALC1:LIM:LOW:SEGM:STAR:Y 20
Notes
Replace ’#’ with the required trace number. Check User Guide for the number of supported traces in each mode.
:CALCulate#:LIMit:LOWer:SEGMent:STOP:X <value>
:CALCulate#:LIMit:LOWer:SEGMent:STOP:X?
Cmd Description
Command sets the lower limit line X stop value for active segment.
Query Description
Query returns the upper limit line X stop value for active segment.
Param Type
Float
Default Units
Hz for Frequency domain, m or ft for Distance domain.
Example
To set limit X stop value to 1 MHz for trace 1:
:CALC1:LIM:LOW:SEGM:STOP:X 1000000
Notes
Replace ’#’ with the required trace number. Check User Guide for the number of supported traces in each mode.
:CALCulate#:LIMit:LOWer:SEGMent:STOP:Y <amplitude>
:CALCulate#:LIMit:LOWer:SEGMent:STOP:Y?
Cmd Description
Command sets the lower limit line Y stop value for active segment.
Query Description
Query returns the lower limit line Y stop value for active segment.
Param Type
Float
Default Units
Current active trace y-axis units
Example
To set limit stop amplitude to 20 dB for trace 1:
:CALC1:LIM:LOW:SEGM:STOP:Y 20
Notes
Replace ’#’ with the required trace number. Check User Guide for the number of supported traces in each mode.

:CALCulate#:LIMit:LOWer:SEGMent:TOTal?
Query Description
Query returns the total segments in the lower limit for the given trace.
Example
To query how many lower limit segments are currently available for trace 1:
:CALC:LIM:LOW:SEGM:TOT?
Notes
Replace ’#’ with the required trace number. Check User Guide for the number of supported traces in each mode.
:CALCulate#:LIMit:LOWer:Y <amplitude>{dB,s|ms|ns|ps}
:CALCulate#:LIMit:LOWer:Y?
Cmd Description
Command sets the lower limit line value. In group delay mode, the value is in units of time.
Query Description
Query returns the lower limit line value.
Param Range
x[,dB]
Default Units
Current active trace y-axis units
Example
To set limit amplitude to 20 dB for trace 1:
:CALC1:LIM:LOW:Y 20
Notes
Replace ’#’ with the required trace number. Check User Guide for the number of supported traces in each mode.
:CALCulate#:LIMit:LOWer[:STATe] OFF|ON|0|1
:CALCulate#:LIMit:LOWer[:STATe]?
Cmd Description
Command sets the low limit line state for the specified trace.
Query Description
Query returns the lower limit line state for the specified trace.
Param Range
OFF|ON|0|1
Default Value
OFF|0
Example
To set limit on for trace 1:
:CALC1:LIM:LOW ON
Notes
Replace ’#’ with the required trace number. Check User Guide for the number of supported traces in each mode.
:CALCulate#:LIMit:UPPer:SEGMent:ADD <StartX><StopX><StartY><StopY>
Cmd Description
Command adds a segment to the upper limit line.
Param Type
Float
Default Units
X units: Hz for Frequency domain, m or ft for Distance domain; Y units: same as current active trace y-axis units
Example
To add an upper limit segment from 1MHz to 1GHz with value 20 dB for trace 1:
:CALC1:LIM:UPP:SEGM:ADD 1e6,1e9,20,20
Notes
Replace ’#’ with the required trace number. Check User Guide for the number of supported traces in each mode.
:CALCulate#:LIMit:UPPer:SEGMent:DELete
Cmd Description
Command deletes the active upper segment.
Example
To delete the active upper segment for trace 1
:CALC1:LIM:UPP:SEGM:DEL
Notes
Replace ’#’ with the required trace number. Check User Guide for the number of supported traces in each mode.
:CALCulate#:LIMit:UPPer:SEGMent:EDIT <StartX><StopX><StartY><StopY>
Cmd Description
Command edits the upper limit active segment. The active segment index must be updated when adding/deleting a segment.
Param Type
Float
Default Units
X units: Hz for Frequency domain, m or ft for Distance domain; Y units: same as current active trace y-axis units
Example
To edit the active segment and set it to 1MHz to 1GHz with value 20 dB for trace 1:
:CALC1:LIM:UPP:SEGM:EDIT 1e6,1e9,20,20
Notes
Replace ’#’ with the required trace number. Check User Guide for the number of supported traces in each mode.
:CALCulate#:LIMit:UPPer:SEGMent:STARt:X <value>
:CALCulate#:LIMit:UPPer:SEGMent:STARt:X?
Cmd Description
Command sets the upper limit line X start value for active segment.
Query Description
Query returns the upper limit line X start value for active segment.
Param Type
Float
Default Units
Hz for Frequency domain, m or ft for Distance domain.
Example
To set limit X start value to 1 MHz for trace 1:
:CALC1:LIM:UPP:SEGM:STAR:X 1000000
Notes
Replace ’#’ with the required trace number. Check User Guide for the number of supported traces in each mode.
:CALCulate#:LIMit:UPPer:SEGMent:STARt:Y <amplitude>
:CALCulate#:LIMit:UPPer:SEGMent:STARt:Y?
Cmd Description
Command sets the upper limit line Y start value for active segment.
Query Description
Query returns the upper limit line Y start value for active segment.
Param Type
Float
Default Units
Current active trace y-axis units
Example
To set limit start amplitude to 20 dB for trace 1:
:CALC1:LIM:UPP:SEGM:STAR:Y 20
Notes
Replace ’#’ with the required trace number. Check User Guide for the number of supported traces in each mode.
:CALCulate#:LIMit:UPPer:SEGMent:STOP:X <value>
:CALCulate#:LIMit:UPPer:SEGMent:STOP:X?
Cmd Description
Command sets the upper limit line X stop value for active segment.
Query Description
Query returns the upper limit line X stop value for active segment.
Param Type
Float
Default Units
Hz for Frequency domain, m or ft for Distance domain.
Example
To set limit X stop value to 1 MHz for trace 1:
:CALC1:LIM:UPP:SEGM:STOP:X 1000000
Notes
Replace ’#’ with the required trace number. Check User Guide for the number of supported traces in each mode.
:CALCulate#:LIMit:UPPer:SEGMent:STOP:Y <amplitude>
:CALCulate#:LIMit:UPPer:SEGMent:STOP:Y?
Cmd Description
Command sets the upper limit line Y stop value for active segment.
Query Description
Query returns the upper limit line Y stop value for active segment.
Param Type
Float
Default Units
Current active trace y-axis units
Example
To set limit stop amplitude to 20 dB for trace 1:
:CALC1:LIM:UPP:SEGM:STOP:Y 20
Notes
Replace ’#’ with the required trace number. Check User Guide for the number of supported traces in each mode.

:CALCulate#:LIMit:UPPer:SEGMent:TOTal?
Query Description
Query returns the total segments in the upper limit for the given trace.
Example
To query how many upper limit segments are currently available for trace 1:
:CALC:LIM:UPP:SEGM:TOT?
Notes
Replace ’#’ with the required trace number. Check User Guide for the number of supported traces in each mode.
:CALCulate#:LIMit:UPPer:Y <amplitude>{dB,s|ms|ns|ps}
:CALCulate#:LIMit:UPPer:Y?
Cmd Description
Command sets the upper limit line value. In group delay mode, the value is in units of time.
Query Description
Query returns the upper limit line value.
Param Type
Float
Default Units
Current active trace y-axis units
Example
To set limit amplitude to 20 dB for trace 1:
:CALC1:LIM:UPP:Y 20
Notes
Replace ’#’ with the required trace number. Check User Guide for the number of supported traces in each mode.
:CALCulate#:LIMit:UPPer[:STATe] OFF|ON|0|1
:CALCulate#:LIMit:UPPer[:STATe]?
Cmd Description
Command sets the upper limit line state for the specified trace.
Query Description
Query returns the upper limit line state for the specified trace.
Param Range
OFF|ON|0|1
Default Value
OFF|0
Example
To set limit on for trace 1:
:CALC1:LIM:UPP ON
Notes
Replace ’#’ with the required trace number. Check User Guide for the number of supported traces in each mode.
:CALCulate#:REFPlane:AUTO
Cmd Description
Calculate and apply the Reference Plane extension delay for the indicated trace.
Example
To calculate and apply the reference plance extension for trace 1:
:CALCulate1:REFPlane:AUTO
Notes
Replace ’#’ with the required trace number. Check User Guide for the number of supported traces in each mode.
:CALCulate#:SMOothing:APERture <percentage>
:CALCulate#:SMOothing:APERture?
Cmd Description
Command sets the smoothing aperture of the specified trace.
Query Description
Query returns the smoothing aperture of the specified trace.
Param Range
0 to 20
Default Value
0
Example
To set trace 1 smoothing aperture to 10:
:CALC1:SMO:APER 10
Notes
Replace ’#’ with the required trace number. Check User Guide for the number of supported traces in each mode.

:CALCulate#:SMOothing:STATe?
Query Description
Query returns whether smoothing is enabled or disabled.
Default Value
0
Example
To query trace 1 smoothing state:
:CALC1:SMO:STAT?
Notes
Replace ’#’ with the required trace number. Check User Guide for the number of supported traces in each mode.
:CALCulate:LIMit:ALARm OFF|ON|0|1
:CALCulate:LIMit:ALARm?
Cmd Description
Command sets the limit alarm state. The device beeps if a trace point crosses the limit line.
Query Description
Query returns the limit alarm state.
Param Range
OFF|ON|0|1
Default Value
OFF|0
Example
To set limit alarm on:
:CALC:LIM:ALAR ON
:CALCulate:LIMit:LOWer:SEGMent:ACTive <Index>
Cmd Description
Command sets the given lower segment index active.
Param Type
int
Example
To set lower segment 1 active:
:CALC:LIM:LOW:SEGM:ACT 1
:CALCulate:LIMit:MESSage OFF|ON|0|1
:CALCulate:LIMit:MESSage?
Cmd Description
Command sets the limit message state. Displays a Pass/Fail message to indicate whether the trace crosses the limit line.
Query Description
Query returns the limit message state.
Param Range
OFF|ON|0|1
Default Value
OFF|0
Example
To set limit message on:
:CALC:LIM:MESS ON
:CALCulate:LIMit:MESSage:RESult?
Query Description
Query returns 0 if limit line says Fail. Otherwise, it returns 1 if limit line says Pass.
Example
To get limit line Pass/Fail result:
:CALC:LIM:MESS:RES?
:CALCulate:LIMit:MODe
Cmd Description
Command changes the limit line to either Line or Segmented mode.
Example
To change the limit line mode
:CALC:LIM:MOD SEGM
:CALCulate:LIMit:PRESet
Cmd Description
Command presets the limit line to its default state.
Example
To perform limit line preset:
:CALC:LIM:PRES
:CALCulate:LIMit:TYPE 0|1
:CALCulate:LIMit:TYPE?
Cmd Description
Command sets the active limit line type. 0 for upper limit and 1 for lower limit.
Query Description
Query returns the active limit line type.
Param Range
0|1
Default Value
0
Example
To set the active limit to lower limit:
:CALC:LIM:TYPE 1
:CALCulate:LIMit:UPPer:SEGMent:ACTive <Index>
Cmd Description
Command sets the given upper segment index active.
Param Type
int
Example
To set upper segment 1 active:
:CALC:LIM:UPP:SEGM:ACT 1
:CALCulate:LIMit:VALue <amplitude>{dB}
:CALCulate:LIMit:VALue?
Cmd Description
Command sets the limit line value.
Query Description
Query returns the limit line value.
Param Type
Float
Default Units
Current active trace y-axis units
Example
To set limit line to 20 dB:
:CALC:LIM:VAL 20
:CALCulate:LIMit[:STATe] OFF|ON|0|1
:CALCulate:LIMit[:STATe]?
Cmd Description
Command sets the limit line state.
Query Description
Query returns the limit line state.
Param Range
OFF|ON|0|1
Default Value
OFF|0
Example
To set limit on:
:CALC:LIM ON
:CALCulate:MARKer#:PEAK
Cmd Description
This command sets specified marker to the trace peak value.
Example
To set marker 5 to the peak of the trace:
:CALC:MARK5:PEAK
Notes
Replace ’#’ with the required marker number. Check User Guide for the number of supported markers in each mode.
:CALCulate:MARKer#:PEAK:BOUNded
Cmd Description
This command sets specified marker to the trace peak value between two markers. Markers 5 and 7 will search for the peak between markers 1 and 2. Markers 6 and 8 will search for the peak between markers 3 and 4.
Example
To set marker 5 to the peak between markers 1 and 2:
:CALC:MARK5:PEAK:BOUN
Notes
Replace ’#’ with the required marker number. Check User Guide for the number of supported markers in each mode. If any marker other than 5, 6, 7, or 8 is specified, the bounded marker will be set to 5 by default.
:CALCulate:MARKer#:TRACking PEAK|VALLey|BNDPeak|BNDValley|OFF
:CALCulate:MARKer#:TRACking?
Cmd Description
Command sets the tracking mode of the specified marker.
Query Description
Query returns the tracking mode of the specified marker. Query returns PEAK for peak tracking, or returns VALL for valley tracking, or returns BNDP for bounded peak tracking, or returns BNDV for bounded valley tracking.
Param Range
PEAK|VALLey|BNDPeak|BNDValley|OFF
Default Value
OFF
Example
To set marker 2 to peak tracking:
:CALC:MARK2:TRAC PEAK
Notes
Replace ’#’ with the required marker number. Check User Guide for the number of supported markers in each mode. If any marker other than 5, 6, 7, or 8 is specified, the bounded marker will be set to 5 by default.
:CALCulate:MARKer#:TYPE REFerence|DELTa
:CALCulate:MARKer#:TYPE?
Cmd Description
Command sets the type of the specified marker.
Query Description
Query returns the type of the specified marker. Query returns REF if the specified marker is a reference marker, or returns DELT if the specified marker is a delta marker.
Param Range
REFerence|DELTA
Default Value
REF
Example
To set marker 2 type to delta:
:CALC:MARK2:TYPE DELT
Notes
Replace ’#’ with the required marker number. Check User Guide for the number of supported markers in each mode.
:CALCulate:MARKer#:VALLey
Cmd Description
This command sets specified marker to the trace valley value.
Example
To set marker 5 to the valley of the trace:
:CALC:MARK5:VALL
Notes
Replace ’#’ with the required marker number. Check User Guide for the number of supported markers in each mode.
:CALCulate:MARKer#:VALLey:BOUNded
Cmd Description
This command sets specified marker to the trace valley value between two markers. Markers 5 and 7 will search for the valley between markers 1 and 2. Markers 6 and 8 will search for the valley between markers 3 and 4.
Example
To set marker 5 to the valley between markers 1 and 2:
:CALC:MARK5:VALL:BOUN
Notes
Replace ’#’ with the required marker number. Check User Guide for the number of supported markers in each mode. If any marker other than 5, 6, 7, or 8 is specified, the bounded marker will be set to 5 by default.
:CALCulate:MARKer#:X <value>{Hz|kHz|MHz|GHz,m|cm|mm,ft}
:CALCulate:MARKer#:X?
Cmd Description
Command sets the position for the specified marker in the current sweep domain. For delta marker, it sets the relative position to the reference marker. Verify that the appropriate unit is used.
Query Description
Query returns the marker position for the specified marker. For a delta marker, query returns the position relative to the reference marker.
Param Type
Float
Param Description
Frequency, or distance.
Default Value
Model-dependent
Default Units
Hz
Example
To set marker 2 frequency to 1 GHz:
:CALC:MARK2:X 1 GHZ
Notes
Replace ’#’ with the required marker number. Check User Guide for the number of supported markers in each mode.

:CALCulate:MARKer#:Y?
Query Description
Query returns the amplitude value for the specified marker.
Example
To query marker 3 amplitude value:
:CALC:MARK3:Y?
Notes
Replace ’#’ with the required marker number. Check User Guide for the number of supported markers in each mode.
:CALCulate:MARKer#[:STATe] OFF|ON|0|1
:CALCulate:MARKer#[:STATe]?
Cmd Description
Command sets the state of the specified marker.
Query Description
Query returns the state of the specified marker. Query returns 1 if the specified marker is on, or returns 0 if the specified marker is off.
Param Range
OFF|ON|0|1
Default Value
OFF|0
Example
To set marker 1 state ON:
:CALC:MARK1 ON
Notes
Replace ’#’ with the required marker number. Check User Guide for the number of supported markers in each mode.

:CALCulate:MARKer:ACTive?
Query Description
Query returns active marker number. Returns NONE if no markers are active.
Example
To get active marker
:CALC:MARK:ACT?
:CALCulate:MARKer:DISPlay MKRTable|MKRonly|AOFF
:CALCulate:MARKer:DISPlay?
Cmd Description
Command sets the marker display mode.
Query Description
Query returns the marker display mode. Query returns MKRT if the markers and marker table are displayed, returns MKR if only the markers are displayed, or returns AOFF if markers and marker table are not displayed.
Param Range
MKRTable|MKRonly|AOFF
Default Value
MKRTable
Example
To set marker display to marker only:
:CALC:MARK:DISP MKR
:CALCulate:MARKer:PRESet
Cmd Description
Presets markers.
Example
To preset markers:
:CALC:MARK:PRES
:CALCulate:MATH:FUNCtion NORMal|ADD|SUBtract|MULTiply|DIVide
:CALCulate:MATH:FUNCtion?
Cmd Description
Command sets the trace math function. NORMal - no trace math applied; ADD - memory trace added to active trace; SUB - memory trace subtracted from active trace; MULT - active trace multiplied with memory trace; DIV - active trace divided by memory trace.
Query Description
Query returns the trace math function.
Param Range
NORMal|ADD|SUBtract|MULTiply|DIVide
Default Value
NONE
Example
To set trace math function to addition:
:CALC:MATH:FUNC ADD
:CALCulate:MATH:MEMorize
Cmd Description
Copies active trace into the memory buffer.
Example
To copy active trace into the memory buffer:
:CALC:MATH:MEM
:CALCulate:REFPlane:PORT#:DISTance <distance>{ m|cm|mm,ft}
:CALCulate:REFPlane:PORT#:DISTance?
Cmd Description
Command sets the reference plane extension distance for the indicated port. Make sure that the appropriate unit is used.
Query Description
Query returns the reference plane extension distance in the current units for the indicated port.
Param Type
Float
Param Range
-100000 to 100000
Default Units
m (meter)
Example
To set reference plane extension distance for Port 1 to 2 m :
:CALC:REFP:PORT1:DIST 2m
Notes
Replace ’#’ with the required port number. Advanced/Classic Cable & Antenna Analyzer and Vector Volt Meter modes support only one port. Vector Network Analyzer mode supports two ports.
:CALCulate:REFPlane:PORT#:LOSS <loss>{dB}
:CALCulate:REFPlane:PORT#:LOSS?
Cmd Description
Command sets the reference plane extension loss for the indicated port.
Query Description
Query returns the reference plane extension loss.
Param Type
Float
Param Range
0 to 100
Default Value
0
Default Units
dB
Example
To set reference plane extension loss to 2 dB:
:CALC:REFP:PORT1:LOSS 2
Notes
Replace ’#’ with the required port number. Advanced/Classic Cable & Antenna Analyzer and Vector Volt Meter modes support only one port. Vector Network Analyzer mode supports two ports.
:CALCulate:REFPlane:PORT#:TIME <time>{ s, ms, us, ns, ps}
:CALCulate:REFPlane:PORT#:TIME?
Cmd Description
Command sets the reference plane extension time for the indicated port. Make sure that the appropriate unit is used. Time range depends on the propagation velocity setting. To set to the maximum time range, propagation velocity needs to be at its minimum value.
Query Description
Query returns the reference plane extension time in the current units for the indicated port.
Param Type
Float
Param Description
Time
Param Range
-33 ms to 33 ms
Default Units
s (second)
Example
To set reference plane extension time for Port 1 to 1 us :
:CALC:REFP:PORT1:TIME 1 us
Notes
Replace ’#’ with the required port number. Advanced/Classic Cable & Antenna Analyzer and Vector Volt Meter modes support only one port. Vector Network Analyzer mode supports two ports.

:CALCulate:TRANsform:CLAVerage?
Query Description
Query returns cable loss average when the measurement mode is ’Cable Loss’.
Default Units
dB
Example
To query cable loss average:
:CALC:TRAN:CLAV?
:CALCulate:TRANsform:DISTance:CABLoss <cable-loss>{ dB/m,dB/ft}
:CALCulate:TRANsform:DISTance:CABLoss?
Cmd Description
Command sets the cable loss. Verify that the appropriate unit is used.
Query Description
Query returns the cable loss based on the current units.
Param Type
Float
Default Value
0
Default Units
dB/m
Example
To set cable loss to 2:
:CALC:TRAN:DIST:CABL 2
:CALCulate:TRANsform:DISTance:DMAX?
Query Description
Query returns max distance in the current units.
Example
To query max distance:
:CALC:TRAN:DIST:DMAX?
:CALCulate:TRANsform:DISTance:PVELocity <propagation-velocity>
:CALCulate:TRANsform:DISTance:PVELocity?
Cmd Description
Command sets the propagation velocity.
Query Description
Query returns the propagation velocity.
Param Type
Float
Default Value
1
Example
To set propagation velocity to 0.05:
:CALC:TRAN:DIST:PVEL 0.05
:CALCulate:TRANsform:DISTance:RESolution?
Query Description
Query returns distance resolution in the current units for reflection.
Example
To query distance resolution:
:CALC:TRAN:DIST:RESolution?
:CALCulate:TRANsform:DISTance:STARt <distance>{ m|cm|mm,ft}
:CALCulate:TRANsform:DISTance:STARt?
Cmd Description
Command sets the start distance. Verify the appropriate unit is used.
Query Description
Query returns the start distance in the current units.
Param Type
Float
Param Description
Distance
Default Units
m(meter)
Example
To set start distance to 1 m:
:CALC:TRAN:DIST:STAR 1
:CALCulate:TRANsform:DISTance:STOP <distance>{ m|cm|mm,ft}
:CALCulate:TRANsform:DISTance:STOP?
Cmd Description
Command sets the stop distance. Verify the appropriate unit is used.
Query Description
Query returns the stop distance in the current units.
Param Type
Float
Param Description
Distance
Default Units
m(meter)
Example
To set stop distance to 2 m:
:CALC:TRAN:DIST:STOP 2 M
:CALCulate:TRANsform:DISTance:UNIT METers|FEET
:CALCulate:TRANsform:DISTance:UNIT?
Cmd Description
Command sets the distance unit.
Query Description
Query returns the current distance units.
Param Range
METers|FEET
Default Value
METers
Example
To set distance unit to feet:
:CALC:TRAN:DIST:UNIT FEET
:CALCulate:TRANsform:DISTance:WINDow RECTangular|MSLobe|NSLobe|LSLobe
:CALCulate:TRANsform:DISTance:WINDow?
Cmd Description
Command sets the window type for distance domain.
Query Description
Query returns the window type for distance domain.
Param Type
Character
Param Range
RECTangular|MSLobe|NSLobe|LSLobe
Default Value
NSLobe
Example
To set distance domain window type to rectangular:
:CALC:TRAN:DIST:WIND RECT
:CAPTure:STARt
Cmd Description
Command starts the data capture for continuous sweeps. It does not work in single sweep and hold mode.
Example
To start data capture
:CAPT:STAR
:CAPTure:STOP
Cmd Description
Command stops the data capture for continuous sweeps. It does not work in single sweep and hold mode.
Example
To stop capture:
:CAPT:STOP
:CAPTure:TRACe#:DATA? FDATa|SDATa|FMEM|SMEM
Cmd Description
Command is used to return the data block of the specified trace at the end of a sweep, while the instrument is in continuous sweep mode. This command must follow the :CAPTure:STARt command. A :CAPTure:STOP command is used to end the capture session. If the system is in single sweep and hold mode, then this command is ignored.
Example
To trigger a sweep:
:CAPT:TRAC1:DATA? FDAT
:DISPlay:UPDate ON|OFF|1|0
:DISPlay:UPDate?
Cmd Description
Command sets the display update on/off.
Query Description
Query returns display update status. Query returns 1 if display update is on. Otherwise, it returns 0.
Param Range
ON|OFF|1|0
Default Value
OFF|0
Example
To turn display update off:
:DISP:UPD OFF
:DISPlay:WINDow:TRACe#:Y[:SCALe]:PDIVision <division-size>{dB,s|ms|ns|ps}
:DISPlay:WINDow:TRACe#:Y[:SCALe]:PDIVision?
Cmd Description
Command sets the scale per division. In group delay mode, the value is in units of time.
Query Description
Query returns the scale per division. In group delay mode, the query returns the value in nanoseconds.
Param Type
Float
Default Units
dB
Example
To set the scale per division on trace two to 15:
:DISP:WIND:TRAC2:Y:PDIV 15
Notes
Replace ’#’ with the required trace number. Check User Guide for the number of supported traces in each mode.
:DISPlay:WINDow:TRACe#:Y[:SCALe]:RLEVel <reference-level>{dB,s|ms|ns|ps}
:DISPlay:WINDow:TRACe#:Y[:SCALe]:RLEVel?
Cmd Description
Command sets the trace reference level. In group delay mode, the value is in units of time.
Query Description
Query returns the trace reference level. In group delay mode, the query returns the value in nanoseconds.
Param Type
Float
Default Units
dB
Example
To set the reference level on trace two to 20 dB:
:DISP:WIND:TRAC2:Y:RLEV 20
Notes
Replace ’#’ with the required trace number. Check User Guide for the number of supported traces in each mode.
:DISPlay:WINDow:TRACe#:Y[:SCALe]:RPOSition <reference-position>
:DISPlay:WINDow:TRACe#:Y[:SCALe]:RPOSition?
Cmd Description
Command sets the display reference position.
Query Description
Query returns the display reference position.
Param Type
Integer
Param Range
0 to 10
Example
To set the reference position on trace two to 3:
:DISP:WIND:TRAC2:Y:RPOS 3
Notes
Replace ’#’ with the required trace number. Check User Guide for the number of supported traces in each mode.
:DISPlay:WINDow:TRACe:STATe TRACe|MEMory|BOTH
:DISPlay:WINDow:TRACe:STATe?
Cmd Description
Command sets the trace display type for the active trace. TRAC - only active trace is shown; MEM - only memory trace is shown; BOTH - both active and memory traces are shown. Use :CALCulate:MATH:MEMorize before changing the display type.
Query Description
Query returns the trace display type.
Param Range
TRACe|MEMory|BOTH
Default Value
TRACe
Example
To show both active and memory trace on the display:
:DISP:WIND:TRAC:STAT BOTH
:DISPlay:WINDow:TRACe:Y[:SCALe]:AUToscale
Cmd Description
This command sets the top and bottom values such that the trace occupies a significant portion of the grid.
Example
To perform auto-scale:
:DISP:WIND:TRAC:Y:AUT
:DISPlay:WINDow:TRACe:Y[:SCALe]:FULLscale
Cmd Description
Sets the top and bottom to their maximum values.
Example
To perform full-scale:
:DISP:WIND:TRAC:Y:FULL
:DISPlay:WINDow:TRACe:Y[:SCALe]:GDAPerture <percentage>
:DISPlay:WINDow:TRACe:Y[:SCALe]:GDAPerture?
Cmd Description
Command sets the group delay aperture.
Query Description
Query returns the group delay aperture in percentage.
Param Type
Float
Default Units
%
Example
To set group delay aperture to 10%:
:DISP:WIND:TRAC:Y:GDAP 10
:DISPlay[:WINDow]:TRACe:FORMat SINGle|DUAL|TRI|QUAD
:DISPlay[:WINDow]:TRACe:FORMat?
Cmd Description
Command sets the display format.
Query Description
Query returns the display format.
Param Range
SINGle|DUAL|TRI|QUAD
Example
To set traces to dual display:
:DISP:WIND:TRAC:FORM DUAL
:FORMat[:READings][:DATA] ASCii|INTeger,32|REAL,32
:FORMat[:READings][:DATA]?
Cmd Description
Command sets the data format type. ASCii and REAL returns data in current unit. INTeger returns data with mdBm unit. This command applies to :TRACe[:DATA]? and :CALCulate:DATA?.
Query Description
Query returns the data format type as ASC or INT, 32 or REAL, 32.
Param Range
ASCii|INTeger,32|REAL,32
Example
To set data format type to integer:
:FORM INT,32
Notes
INTeger,32 values are signed 32-bit integers in little-endian byte order. This format returns the data in 4-byte blocks. REAL,32 values are 32-bit floating point numbers conforming to the IEEE 754 standard in little-endian byte order. This format returns the data in 4-byte binary format. The units are the current instrument units. Both INTeger and REAL formats return a definite block length. Each transfer begins with an ASCII header, such as #42204 for INTeger,32 and REAL,32. The first digit represents the number of following digits in the header.
:FORMat[:READings][:DATA]:MULTiplier 1|1M
:FORMat[:READings][:DATA]:MULTiplier?
Cmd Description
Command sets the data format multiplier factor.
Query Description
Query returns the data format multiplier factor. If ’1M’ is passed as argument, then query results for :TRACe[:DATA]? and :CALCulate:DATA? will specify readings multiplied by 10^6. If ’1’ is passed, then query results for :TRACe[:DATA]? and :CALCulate:DATA? will specify read.
Param Range
1|1M
Default Value
1
Example
To set data format multiplier to 1:
:FORM:MULT 1
:INITiate#:DATA? FDATa|SDATa|FMEM|SMEM
Cmd Description
Command triggers a sweep and returns the data block of the specified trace at the end of sweep. If the system is in continuous mode, then this command is ignored.
Example
To trigger a sweep and wait for Formatted data to be returned:
:INIT1:DATA? FDAT
:INITiate:CONTinuous OFF|ON|0|1
:INITiate:CONTinuous?
Cmd Description
Command sets the sweep type between single sweep and continuous sweep.
Query Description
Query returns the sweep type, single or continuous. Query returns 1 for continuous sweep, and returns 0 for single sweep.
Param Range
OFF|ON|0|1
Default Value
ON|1
Example
To set the sweep type to single sweep:
:INIT:CONT OFF
:INITiate:HOLD OFF|ON|0|1
:INITiate:HOLD?
Cmd Description
Command sets the sweep state between run and hold. This command is ignored in external trigger mode.
Query Description
Query returns the sweep state, run or hold. Query returns 1 for hold mode, and returns 0 for run mode.
Param Range
OFF|ON|0|1
Default Value
OFF|0
Example
To set the sweep state to hold:
:INIT:HOLD ON
:INITiate[:IMMediate]
Cmd Description
Command triggers a single sweep if in single sweep mode. If the system is in continuous mode, then this command is ignored.
Example
To trigger a sweep:
:INIT
:SENSe:TRACe#:DOMain FREQuency|DISTance
:SENSe:TRACe#:DOMain?
Cmd Description
Command sets the domain for the selected trace.
Query Description
Query returns the domain for the selected trace.
Param Range
FREQuency|DISTance
Default Value
FREQuency
Example
To set trace 2 to distance domain:
:SENS:TRAC2:DOM DIST
Notes
Replace ’#’ with the required trace number. Check User Guide for the number of supported traces in each mode.
:SENSe:TRACe#:SPARams S11|S21|S12|S22
:SENSe:TRACe#:SPARams?
Cmd Description
Command sets the S-parameter for the trace specified.
Query Description
Query returns the S-parameter for the trace specified.
Param Range
S11|S21|S12|S22
Default Value
For trace 1, S11; for trace 2, S12; for trace 3, S21; for trace 4, S22
Example
To set trace 2 to S22:
:SENS:TRAC2:SPAR S22
Notes
Replace ’#’ with the required trace number. Check User Guide for the number of supported traces in each mode.
:SENSe:TRACe:TOTal 1|2|3|4
:SENSe:TRACe:TOTal?
Cmd Description
Command sets the total number of traces displayed.
Query Description
Query returns the total number of traces displayed.
Param Range
1|2|3|4
Default Value
4
Example
To display two traces:
:SENS:TRAC:TOT 2
:SOURce:CORRection:RVELocity <propagation-velocity>
:SOURce:CORRection:RVELocity?
Cmd Description
Command sets the propagation velocity.
Query Description
Query returns the propagation velocity.
Param Type
Float
Default Value
1
Example
To set propagation velocity to 0.05:
:SOUR:CORR:RVEL 0.05
:SOURce:CORRection:RVELocity:CABLoss <cable-loss>{ dB/m,dB/ft}
:SOURce:CORRection:RVELocity:CABLoss?
Cmd Description
Command sets the cable loss. Verify that the appropriate unit is used.
Query Description
Query returns the cable loss based on the current units.
Param Type
Float
Default Value
0
Default Units
dB/m
Example
To set cable loss to 2:
:SOUR:CORR:RVEL:CABL 2
:SOURce:CORRection:RVELocity:FCUToff <cutoff-frequency>{ Hz|kHz|MHz|GHz}
:SOURce:CORRection:RVELocity:FCUToff?
Cmd Description
Command sets the cutoff frequency.
Query Description
Query returns the cutoff frequency in Hertz.
Param Type
Float
Default Value
5000
Default Units
Hz
Example
To set cuttoff frequency to 1 GHz:
:SOUR:CORR:RVEL:FCUT 1 GHZ
:SOURce:CORRection:RVELocity:MEDium COAX|WGUide
:SOURce:CORRection:RVELocity:MEDium?
Cmd Description
Command sets the DUT Line Type.
Query Description
Query returns the DUT Line Type.
Param Range
COAX|WGUide
Default Value
COAX
Example
To set the DUT Line Type to COAX:
:SOUR:CORR:RVEL:MED COAX
:SOURce:CORRection:RVELocity:WGLoss <wave-guide-loss>{ dB/m,dB/ft}
:SOURce:CORRection:RVELocity:WGLoss?
Cmd Description
Command sets the wave-guide loss. Verify that the appropriate unit is used.
Query Description
Query returns the wave-guide loss based on the current units.
Param Type
Float
Default Value
0
Default Units
dB/m
Example
To set wave-guide loss to 2:
:SOUR:CORR:RVEL:WGL 2
:SOURce:POWer LOW|HIGH
:SOURce:POWer?
Cmd Description
Command sets the source power level. Default is high.
Query Description
Query returns the source power level, LOW or HIGH.
Example
To set source power to low:
SOUR:POW LOW
:STATus:OPERation?
Query Description
Queries sweep status. This is used in combination with :INITiate[:IMMediate]. Sweep complete bit is the bit 8. Query returns 256 if sweep has completed. Otherwise, it returns 0.
Example
To query sweep status:
:STAT:OPER?
:TRACe[:DATA]? {1|2}
Query Description
Query returns raw trace data in real and imaginary format.
Param Type
Integer
Param Description
Optional Param: Trace number, default is 1.
Param Range
1|2
Example
To get trace 1 data:
:TRAC?
Notes
The format of the block data that is returned can be specified by the command :FORMat[:READings][:DATA]. The response begins with an ASCII header that specifies the number of data bytes. It appears in the format #AX, where A is the number of digits in X, and X is the number of bytes that follow the header. Each data point is separated by a comma-delimiter. The returned numbers, which are independent of the Measurement Mode that is associated with the trace, are complex measurement data pairs (Real and Imaginary) for each point of the trace. A 517 point trace therefore has a total of 1034 values that get transferred.
[:SENSe:]CORRection:COLLect:INTerpolation[:STATe] ON|OFF|1|0
[:SENSe:]CORRection:COLLect:INTerpolation[:STATe]?
Cmd Description
Command sets interpolation state.
Query Description
Query returns interpolation state. Query returns 1 if interpolation is on. Otherwise, it returns 0.
Param Range
ON|OFF|1|0
Default Value
OFF|0
Example
To set interpolation state to on:
:CORR:COLL:INT ON
[:SENSe]:APPLication:TST:RESult?
Query Description
Query returns self-test details. The self-test command (See [:SENSe]:APPLication:TST? [NORMal]) must be sent before getting the self-test details.
Example
To retrieve application self-test result:
:APPL:TST:RES?
Notes
The response begins with an ASCII header. The header specifies the number of following bytes. It appears in the format #AX, where A is the number of digits in X, and X is the number of bytes that follow the header. The first information of the result contains the overall self test string ("PASSED" or "FAILED") followed by a comma, and each self-test result separated by a comma. Each subset of the result is included in angled brackets.

[:SENSe]:APPLication:TST? {NORMal}
Query Description
Query returns 0 if self-test succeeds with no error. Otherwise, it returns 255.
Param Description
Optional Param: Self-test type, default is NORMal.
Param Range
NORMal
Example
To run an application self-test:
:APPL:TST?
[:SENSe]:AVERage:CLEar
Cmd Description
Clears and restarts averaging of the measurement data.
Example
To clear and restart averaging of the measurement data:
AVER:CLE
[:SENSe]:AVERage:COUNt <integer>
[:SENSe]:AVERage:COUNt?
Cmd Description
Command sets number of sweeps to be averaged. When number of sweep averaging is set to be greater than 1, averaging is turned on.
Query Description
Query returns the number of sweeps to be averaged.
Param Range
1 to 100
Default Value
1
Example
To set the number of sweep averaging to 10:
:AVER:COUN 10
[:SENSe]:BASe:REFerence:LOCKed?
Query Description
Queries the reference lock mode. It returns 1 if external reference, and 0 if internal reference.
Example
To query reference mode:
:BAS:REF:LOCK?
[:SENSe]:CALibration:STATe?
Query Description
Query returns a value which represents the calibrated S-parameters. 0 = no calibration, 1 = S11 calibrated, 2 = S12 calibrated, 4 = S21 calibrated, 8 = S22 calibrated. A return value of 15(=1+2+4+8) indicates that all parameters were calibrated.
Example
To query calibrated S-parameters:
:CAL:STAT?
[:SENSe]:CORRection:CKIT:CATalog:FULL? {1|2}
Query Description
Query returns the available calibration kits for the selected port. The available ports depend on the calibration collection type.
Param Type
Integer
Param Description
Optional Param: Port number
Param Range
1|2
Example
To get the available cal-kits for port 1:
:CORR:CKIT:CAT:FULL? 1
Notes
In Cable & Antenna Analyzer and Vector Volt Meter modes, only port 1 is available for calibration. In Vector Network Analyzer mode, port 1 and port 2 are available for calibration.

[:SENSe]:CORRection:CKIT:DATA? {1|2}
Query Description
Query returns the calibration kit data as a comma-delimited string with description-value pairs for the selected port. The available ports depend on the calibration collection type.
Param Type
Integer
Param Description
Optional Param: Port number, default is 1.
Param Range
1|2
Example
To get the cal-kit data for port 1:
:CORR:CKIT:DATA? 1
Notes
In Cable & Antenna Analyzer and Vector Volt Meter modes, only port 1 is available for calibration. In Vector Network Analyzer mode, port 1 and port 2 are available for calibration.
[:SENSe]:CORRection:CKIT:SELect# <"calibration-kit name">
[:SENSe]:CORRection:CKIT:SELect#?
Cmd Description
Command sets the calibration kit for the selected port. The available ports depend on the calibration collection type. Before setting the calibration kit, make sure the device is set to the appropriate connector type (refer [:SENSe]:CORRection:COLLect:CONNector#). A mismatch between the connector type and the given calibration kit will result in a command error.
Query Description
Query returns the calibration kit for the selected port.
Param Type
String
Param Description
Calibration kit name
Example
To set the cal-kit for the connector at port 1:
:CORR:CKIT:SEL1 "OSLN50A-18"
Notes
Replace ’#’ with the required port number. Advanced/Classic Cable & Antenna Analyzer and Vector Volt Meter modes support only one port. Vector Network Analyzer mode supports two ports.
[:SENSe]:CORRection:CKIT:USER#:COAX:SOLT:THRU:OFFSet DISTance|TIME, <param-value>
[:SENSe]:CORRection:CKIT:USER#:COAX:SOLT:THRU:OFFSet? DISTance|TIME
Cmd Description
Command sets the user calibration kit thru offset value in Distance or Time.
Query Description
Query returns the user calibration kit thru offset value.
Param Range
Param1: DISTance|TIME, Param2: value (DISTance:mm, TIME:s)
Example
To set the thru offset in distance for the second user cal-kit:
:CORR:CKIT:USER2:COAX:SOLT:THRU:OFFS DIST, 20
Notes
Replace ’#’ with the required kit number. Ten user calibration kits are supported.
[:SENSe]:CORRection:CKIT:USER#:WGUid:SOLT|SSLT:FCUToff <param-value>
[:SENSe]:CORRection:CKIT:USER#:WGUid:SOLT|SSLT:FCUToff?
Cmd Description
Command sets the waveguide user calibration kit frequency cutoff value.
Query Description
Query returns the waveguide user calibration kit Cutoff Frequency.
Param Range
Param1: FCUToff: GHz
Default Units
GHz
Example
To set the Cutoff Frequency of SSLT Waveguide kit to 5GHz:
:CORR:CKIT:USER2:WGU:SSLT:FCUT 5
Notes
Replace ’#’ with the required kit number. Ten user calibration kits are supported.
[:SENSe]:CORRection:CKIT:USER#:WGUid|COAX:SOLT:OPEN C0|C1|C2|C3|OFFSet, <param-value>
[:SENSe]:CORRection:CKIT:USER#:WGUid:SOLT:OPEN? C0|C1|C2|C3|OFFSet
Cmd Description
Command sets the user calibration kit capacitance or offset value for OPEN.
Query Description
Query returns the user calibration kit capacitance or offset value for OPEN.
Param Range
Param1: C0|C1|C2|C3|OFFSet, Param2: value (C0:e-15F, C1:e-27F, C2:e-36F, C3:e-45F, OFFSet:mm)
Example
To set the capacitance 1 for the second user cal-kit of WGUid line type and SOLT cal method:
:CORR:CKIT:USER2:WGUid:SOLT:OPEN C1, 20
Notes
Replace ’#’ with the required kit number. Ten user calibration kits are supported.
[:SENSe]:CORRection:CKIT:USER#:WGUid|COAX:SOLT:SHORt L0|L1|L2|L3|OFFSet, <param-value>
[:SENSe]:CORRection:CKIT:USER#:WGUid|COAX:SOLT:SHORt? L0|L1|L2|L3|OFFSet
Cmd Description
Command sets the user calibration kit Inductance or offset value for SHORT.
Query Description
Query returns the user calibration kit inductance or offset value for SHORt.
Param Range
Param1: L0|L1|L2|L3|OFFSet, Param2: value (L0:e-12H, L1:e-24H, L2:e-33H, L3:e-42H, OFFSet:mm)
Example
To set the inductance 1 for the second user cal-kit of Coax line type and SOLT cal method:
:CORR:CKIT:USER2:COAX:SOLT:SHORt L1, 20
Notes
Replace ’#’ with the required kit number. Ten user calibration kits are supported.
[:SENSe]:CORRection:CKIT:USER#:WGUid|COAX:SOLT|SSLT:NAMe <"calibration-kit name">
[:SENSe]:CORRection:CKIT:USER#:WGUid|COAX:SOLT|SSLT:NAMe?
Cmd Description
Command sets the user calibration kit name.
Query Description
Query returns the user calibration kit name.
Param Type
String
Param Description
Calibration kit name
Example
To set the name for the second user cal-kit:
:CORR:CKIT:USER2:COAX:SOLT:NAM "My_Cal_Kit"
Notes
Replace ’#’ with the required kit number. Ten user calibration kits are supported.
[:SENSe]:CORRection:CKIT:USER#:WGUid|COAX:SSLT:SHORt[1]|2 L0|L1|L2|L3|OFFSet, <param-value>
[:SENSe]:CORRection:CKIT:USER#:WGUid|COAX:SSLT:SHORt[1]|2? L0|L1|L2|L3|OFFSet
Cmd Description
Command sets the user calibration kit inductance or offset value for SHORT1 or SHORT2.
Query Description
Query returns the user calibration kit inductance or offset value for SHORT.
Param Range
Param1: L0|L1|L2|L3|OFFSet, Param2: value (L0:e-12H, L1:e-24H, L2:e-33H, L3:e-42H, OFFSet:mm)
Example
To set the inductance 1 for the second user cal-kit of Coax line type and SOLT cal method:
:CORR:CKIT:USER2:COAX:SSLT:SHORt1 L1, 20
Notes
Replace ’#’ with the required kit number. Ten user calibration kits are supported.
[:SENSe]:CORRection:COLLect:ABORt
Cmd Description
Aborts all steps of the RF calibration.
Example
To abort RF calibration:
:CORR:COLL:ABOR
[:SENSe]:CORRection:COLLect:ACQUire:STATus? OPEN|SHORT|SHORT1|SHORT2|LOAD|THRu|ISOLation|ZERo, 1|2|3
Query Description
Query returns 1 if a specified cal step is completed. Otherwise, query returns 0. If no query parameters are provided, then the last cal step status is returned. If no cal was performed, then the query returns 0. For cal step OPEN|SHORT|SHORT1|SHORT2|LOAD|ZERo, use port numbers 1 and 2. For cal step THRu|ISOLation, use 1 for forward path, 2 for reverse path, and 3 for both forward and reverse paths.
Param Type
Character, Integer
Param Description
Param1: Cal step to perform, Param2: Port number or forward/reverse path
Param Range
OPEN|SHORT|SHORT1|SHORT2|LOAD|THRu|ISOLation|ZERo, 1|2|3
Example
To query calibration step ’Open’ status at port 1:
:CORR:COLL:ACQU:STAT? OPEN, 1
[:SENSe]:CORRection:COLLect:CONNector# NMALe|NFEMale|KMALe|KFEMale|716Male|716Female|TNCMale|TNCFemale|SMAMale|SMAFemale|WG11|WG12|WG13|WG14|WG15|WG16|WG17|WG18|WG20|WG22|USR1|USR2|USR3|USR4|USR5|USR6|USR7|USR8|USR9|USR10
[:SENSe]:CORRection:COLLect:CONNector#?
Cmd Description
Command sets connector type.
Query Description
Query returns connector type.
Param Range
NMALe|NFEMale|KMALe|KFEMale|716Male|716Female|TNCMale|TNCFemale|SMAMale|SMAFemale|USR1|USR2|USR3|USR4|USR5|USR6|USR7|USR8|USR9|USR10 for Coax; WG11|WG12|WG13|WG14|WG15|WG16|WG17|WG18|WG20|WG22|USR1|USR2|USR3|USR4|USR5|USR6|USR7|USR8|USR9|USR10 for Waveguide
Default Value
NMAL for S820E with option 708 or 714. KFEM for S820E with option 720, 730 or 740.
Example
To set connector type for port 1 to 716 female:
:CORR:COLL:CONN1 716F
Notes
Replace ’#’ with the required port number. Advanced/Classic Cable & Antenna Analyzer and Vector Volt Meter modes support only one port. Vector Network Analyzer mode supports two ports.
[:SENSe]:CORRection:COLLect:EDELay:DISTance <distance>{ m|cm|mm}
[:SENSe]:CORRection:COLLect:EDELay:DISTance?
Cmd Description
Command sets the calibration Thru Offset in distance.
Query Description
Query returns the Thru Offset distance in the current units.
Param Type
Float
Param Description
Distance
Default Units
m (meter)
Example
To set Thru Offset distance to 1 m:
SENS:CORR:COLL:EDEL:DIST 1
[:SENSe]:CORRection:COLLect:EDELay:TIME <time>{ S|ms|us|ns|ps}
[:SENSe]:CORRection:COLLect:EDELay:TIME?
Cmd Description
Command sets the calibration Thru Offset in time.
Query Description
Query returns the Thru Offset time in the current units.
Param Type
Float
Param Description
Time
Default Units
s (seconds)
Example
To set Thru Offset time to 1 s:
SENS:CORR:COLL:EDEL:TIME 1
[:SENSe]:CORRection:COLLect:INFO:STATus?
Query Description
Query returns 0 if calibration is not in progress, 1 if calibration is in progress, 2 if calibration was aborted, 3 if cal-coefficients are being calculated, or 4 if calibration has completed.
Example
To query calibration progress status:
:CORR:COLL:INFO:STAT?
[:SENSe]:CORRection:COLLect:INITialize
Cmd Description
Command to initialize an RF calibration with the current calibration type.
Example
To initialize RF calibration:
:CORR:COLL:INIT
[:SENSe]:CORRection:COLLect:LOAD
Cmd Description
Perform ’Load’ step of calibration.
Example
To measure load:
:CORR:COLL:LOAD
[:SENSe]:CORRection:COLLect:MEDium COAX|WGUide
[:SENSe]:CORRection:COLLect:MEDium?
Cmd Description
Command sets calibration medium type.
Query Description
Query returns calibration medium type.
Param Range
COAX|WGUide
Default Value
COAX
Example
To set medium type to WGUide:
:CORR:COLL:MED WGU
[:SENSe]:CORRection:COLLect:METHod SOLT|SSLT
[:SENSe]:CORRection:COLLect:METHod?
Cmd Description
Command sets method type.
Query Description
Query returns method type.
Param Range
SOLT|SSLT
Default Value
SOLT
Example
To set method type to SSLT:
:CORR:COLL:METH SSLT
[:SENSe]:CORRection:COLLect:OPEN
Cmd Description
Perform ’Open’ step of calibration.
Example
To measure open:
:CORR:COLL:OPEN
[:SENSe]:CORRection:COLLect:SAVe
Cmd Description
Complete an RF Cal and perform coefficient calculation.
Example
To complete a RF calibration and perform coefficient calculation:
:CORR:COLL:SAV
[:SENSe]:CORRection:COLLect:SHORt
Cmd Description
Perform ’Short’ step of calibration.
Example
To measure short:
:CORR:COLL:SHOR
[:SENSe]:CORRection:COLLect:TYPE RF2P|RFP1|RFP2|RFBP|TRFP|TRRP|TRBP|RRP1|RRP2|RRBP|2PFP|2PRP|2PES|TRES
[:SENSe]:CORRection:COLLect:TYPE?
Cmd Description
Command sets calibration collection type.
Query Description
Query returns calibration collection type.
Param Range
RF2P|RFP1|RFP2|RFBP|TRFP|TRRP|TRBP|RRP1|RRP2|RRBP|2PFP|2PRP|2PES|TRES
Default Value
RF2P
Example
To set collection type to RF2P:
:CORR:COLL:TYPE RF2P
[:SENSe]:CORRection:COLLect:UPDate
Cmd Description
Perform a Thru Update to an existing calibration that includes a Thru step. This command must follow by :CORRection:COLLect:SAVe to complete the update
Example
To update the Thru measurement in a cal:
:CORR:COLL:UPD
[:SENSe]:CORRection:COLLect:UPDate:STATus?
Query Description
Query returns 1 if Thru Update is completed. Otherwise, query returns 0.
Example
To query Thru Update status:
:CORR:COLL:UPD:STAT?
[:SENSe]:CORRection:COLLect[:ACQUire] OPEN|SHORT|SHORT1|SHORT2|LOAD|THRu|ISOLation|ZERo, 1|2|3
[:SENSe]:CORRection:COLLect[:ACQUire]?
Cmd Description
Command performs a calibration step with the given two parameters. For cal step OPEN|SHORT|SHORT1|SHORT2|LOAD|ZERo, use port numbers 1 and 2. For cal step THRu|ISOLation, use 1 for forward path, 2 for reverse path, and 3 for both forward and reverse paths.
Query Description
Query returns the last measurement performed, which includes cal step and port number. If no cal step was done, query returns "NONE, 0".
Param Type
Character, Integer
Param Description
Param1: Cal step to perform, Param2: Port number or forward/reverse path
Param Range
OPEN|SHORT|SHORT1|SHORT2|LOAD|THRu|ISOLation|ZERo, 1|2|3
Example
To measure short on port 1:
:CORR:COLL SHORT, 1
[:SENSe]:CORRection:DATA? ERF|EDF|ESF|ETF|ELF|EXF|ERR|EDR|ESR|ETR|ELR|EXR
Query Description
Query returns the system error correction data. Note that certain error terms may not be available (and will return no data) for the current calibration.
Param Range
ERF|EDF|ESF|ETF|ELF|EXF|ERR|EDR|ESR|ETR|ELR|EXR
Example
To get ELF error correction data:
:CORR:DATA? ELF
[:SENSe]:CORRection:IMPedance[:INPut][:MAGNitude]:SMCHart 50|75
[:SENSe]:CORRection:IMPedance[:INPut][:MAGNitude]:SMCHart?
Cmd Description
Command sets the reference impedance for Smith Chart.
Query Description
Query returns the reference impedance for Smith Chart.
Param Range
50|75
Example
To set the Smith Chart reference impedance to 75 Ohms
:CORR:IMP:SMCH 75
[:SENSe]:CORRection[:STATe] ON|OFF|1|0
[:SENSe]:CORRection[:STATe]?
Cmd Description
Command sets correction status.
Query Description
Query returns correction status. Query returns 1 if RF cal is on. Otherwise, it returns 0.
Param Range
ON|OFF|1|0
Default Value
OFF|0
Example
To turn calibration correction on:
:CORR:STAT ON
[:SENSe]:FREQuency:CABLe <cable-list-index>
[:SENSe]:FREQuency:CABLe?
Cmd Description
Command selects a cable with the index number from the sorted cable list.
Query Description
Query returns the index number of the selected cable based on the sorted cable list.
Param Type
Integer
Param Description
Index number from cable list
Default Value
0
Example
To set the cable index to 10:
:FREQ:CABL 10
[:SENSe]:FREQuency:CABLe:CATalog:FULL?
Query Description
Query returns the entire cable list that is stored in memory.
Example
To get the cable list:
:FREQ:CABL:CAT:FULL?
[:SENSe]:FREQuency:CABLe:NAMe <"cable-name">
[:SENSe]:FREQuency:CABLe:NAMe?
Cmd Description
Command sets the cable name.
Query Description
Query returns the cable name.
Param Type
String
Param Description
Cable name
Default Value
NONE
Example
To set the cable to "AVA5-50 7/8":
:FREQ:CABL:NAM "AVA5-50 7/8"
[:SENSe]:FREQuency:CENTer <frequency>{ Hz|kHz|MHz|GHz}
[:SENSe]:FREQuency:CENTer?
Cmd Description
Command sets the center frequency.
Query Description
Query returns the center frequency in Hertz.
Param Type
Float
Param Description
Center frequency
Default Value
Model-dependent
Default Units
Hz
Example
To set the center frequency to 3 GHz:
:FREQ:CENT 3 GHZ
[:SENSe]:FREQuency:SPAN <frequency>{ Hz|kHz|MHz|GHz}
[:SENSe]:FREQuency:SPAN?
Cmd Description
Command sets the span frequency.
Query Description
Query returns the span frequency in Hertz.
Param Type
Float
Param Description
Span frequency
Default Value
Model-dependent
Default Units
Hz
Example
To set the span frequency to 2 MHz:
:FREQ:SPAN 2 MHZ
[:SENSe]:FREQuency:STARt <frequency>{ Hz|kHz|MHz|GHz}
[:SENSe]:FREQuency:STARt?
Cmd Description
Command sets the start frequency.
Query Description
Query returns the start frequency in Hertz.
Param Type
Float
Param Description
Start frequency
Default Value
Model-dependent
Default Units
Hz
Example
To set the start frequency to 2 GHz:
:FREQ:STAR 2 GHZ
[:SENSe]:FREQuency:STOP <frequency>{ Hz|kHz|MHz|GHz}
[:SENSe]:FREQuency:STOP?
Cmd Description
Command sets the stop frequency.
Query Description
Query returns the stop frequency in Hertz.
Param Type
Float
Param Description
Stop frequency
Default Value
Model-dependent
Default Units
Hz
Example
To set the stop frequency to 2 GHz:
:FREQ:STOP 2 GHZ
[:SENSe]:RFON[:STATe] ON|OFF|1|0
[:SENSe]:RFON[:STATe]?
Cmd Description
Command sets the RF power output state when the sweep is in Hold mode.
Query Description
Query returns the RF power output state when the sweep is in Hold mode.
Param Range
ON|OFF|1|0
Default Value
ON|1
Example
To set RF power output state off:
:RFON OFF
[:SENSe]:ROSCillator[:SOURce]?
Query Description
Query returns reference oscillator setting. Query returns INT for internal or EXT for external.
Example
To query reference oscillator:
:ROSC?
[:SENSe]:SWEep:IFBW <frequency>{ Hz|kHz|MHz|GHz}
[:SENSe]:SWEep:IFBW?
Cmd Description
Command sets the IF bandwidth. The permissible values are 10Hz, 20Hz, 50Hz, 100Hz, 200Hz, 500Hz, 1kHz, 2kHz, 5kHz, 10kHz, 20kHz, 50kHz, and 100kHz.
Query Description
Query returns the IF bandwidth.
Param Type
Float
Param Description
Bandwidth frequency
Default Units
Hz
Example
To set IFBW to 1000Hz:
:SWE:IFBW 1 kHz
[:SENSe]:SWEep:POINts <datapoints>
[:SENSe]:SWEep:POINts?
Cmd Description
Command sets the number of points for the current sweep.
Query Description
Query returns the number of points.
Default Value
201
Example
To set the number of points to 650:
:SWE:POIN 650
[:SENSe]:SWEep:RFIMmunity HIGH|LOW|1|0
[:SENSe]:SWEep:RFIMmunity?
Cmd Description
Command sets the RF immunity state.
Query Description
Query returns the RF immunity state, 1 for low immunity and 0 for high immunity.
Param Range
HIGH|LOW|1|0
Default Value
LOW|1
Example
To set RF immunity to low:
:SWE:RFIM LOW
[:SENSe]:SWEep:TYPE CONTinuous|SINGle|EXTernal
Cmd Description
Command sets the sweep trigger type to be Internal (Continuous or Single) or External.
Param Range
CONTinuous|SINGle|EXTernal
Default Value
CONTinuous
Example
To set the sweep trigger type to internal single sweep:
:SWE:TYPE SING
Notes
External Trigger setting is not available on all models.
[:SENSe]:TRACe:SELect 1|2|3|4
[:SENSe]:TRACe:SELect?
Cmd Description
Command sets the active trace.
Query Description
Query returns the active trace.
Param Range
1|2|3|4
Default Value
1
Example
To set active trace to trace 2:
:TRAC:SEL 2