/

Rigol

/

Rigol RSA6265

SCPI COMMAND REFERENCE

Rigol RSA6265

Rigol RSA6265

The Rigol RSA6265 is Rigol's spectrum analyzer in the RSA6000 Series family. Its SCPI remote-control interface exposes 272 commands across 22 subsystems - 221 settable and 51 queries - and every command is documented here with its parameters, accepted values, return format, and a copy-paste PyVISA example for automating test and measurement.

272

Commands

221

Settable

51

Queries

22

Subsystems

SCPI

Verified

2026-07-16

All commands

:ABORtset / query

Aborts the current measurement.

Sets the N value used in N dB bandwidth measurement, and the query returns that N value in scientific notation.

NameTypeValuesDescription
rel_amplreal-140 dB - -0.01 dBRelative amplitude level N used for the N dB bandwidth measurement.
string - The N value in scientific notation.
:CALCulate:BANDwidth:NDB -4
:CALCulate:BWIDth:NDB -4
:CALCulate:BANDwidth:NDB?
:CALCulate:BWIDth:NDB?

Queries the measurement results of the N dB band. The query returns the bandwidth value in scientific notation; if the two points on either side of the current marker at N dB are not found, it returns -1.000000000e+02.

real - Bandwidth value in scientific notation. Returns -1.000000000e+02 if the boundary points are not found.
:CALCulate:BANDwidth:NDB?
:CALCulate:BWIDth:NDB?

Queries the measurement value located at the left side of the current marker at the N dB fall or rise point. The query returns the value in scientific notation; if the frequency point is not found, it returns -1.000000000e+02.

real - The measurement value in scientific notation; if the left-side frequency point is not found, returns -1.000000000e+02.
:CALCulate:BANDwidth:RLEFt?

Queries the measurement value located at the right side of the current marker with N dB fall or rise in its peak amplitude. The query returns the measurement value in scientific notation.

real - Measurement value in scientific notation.

Enables or disables the N dB bandwidth measurement function. Queries the on/off status of the N dB bandwidth measurement function.

NameTypeValuesDescription
booloptenumOFF | ON | 0 | 1Turns the N dB bandwidth measurement function on or off.

Enables or disables the limit line test. Queries the on/off state of the limit line test.

NameTypeValuesDescription
booloptenumOFF | ON | 0 | 1Enables or disables the limit line test.
enum - Returns the on/off state of the limit line test as 0 or 1.

Enables or disables the display of the specified limit line. The query returns the display state of the limit line.

NameTypeValuesDescription
ninteger1 - 6Limit line number to apply the command to.
stateoptenumOFF | ON | 0 | 1Turns the limit line display off or on.
enum - Returns 0 or 1 indicating the display state of the limit line.
:CALCulate:LLINe1:DISPlay:STATe ON or :CALCulate:LLINe1:DISPlay:STATe 1
:CALCulate:LLINe1:DISPlay:STATe?

Sets or queries the trace to be tested against the current limit line. Limit Line 1 and 2 default to Trace 1; Limit Line 3 and 4 default to Trace 2.

NameTypeValuesDescription
ndiscrete1 - 6Limit line number.
traceinteger1 - 6Trace number to be tested against the current limit line.
integer - The query returns the trace number to be tested against the current limit line.

Deletes the current limit line.

NameTypeValuesDescription
ndiscrete1 - 6Limit line number to delete.
:CALCulate:LLINe2:DELete

Sets or queries the description of the specified limit line.

NameTypeValuesDescription
<n>integer1 - 6Specifies the limit line number.
<string>string-ASCII string describing the limit line.
string - Returns the description of the specified limit line.
:CALCulate:LLINe1:DESCription RIGOL1998
:CALCulate:LLINe1:DESCription?

Sets or queries the comment for the specified limit line.

NameTypeValuesDescription
<n>integer1 - 6Limit line number to select.
<string>string-Comment text for the specified limit line.
string - Returns the comment for the specified limit line.

Sets the margin for the selected limit line. Queries the margin for the selected limit line.

NameTypeValuesDescription
ndiscrete1 - 6Selects the limit line number.
rel_amplreal-40 - 0Sets the margin value.
numeric - The query returns the margin for the limit line in scientific notation.
:CALCulate:LLINe2:MARGin 1 dB
:CALCulate:LLINe2:MARGin?

Enables or disables the margin for the selected limit line. Queries the setting state of the margin for the selected limit line.

NameTypeValuesDescription
ndiscrete1 - 6Selected limit line number.
boolboolean-Turns the margin state off or on.
integer - Returns 0 or 1.

Set the Y offset of the specified limit line. Queries the Y offset of the specified limit line.

NameTypeValuesDescription
ndiscrete1 - 6Limit line number.
real_amplreal0 dB - 40 dBY offset value.
integer (dB) - The query returns the offset Y in integer.
:CALCulate:LLINe2:OFFSet:Y 10
:CALCulate:LLINe2:OFFSet:Y?

Sets the X offset of the specified limit line. The query returns the X offset in Hz.

NameTypeValuesDescription
ndiscrete1 - 6Limit line number.
real_amplreal-50 Hz - 50 HzX offset value.
integer (Hz) - The query returns the X offset in integer. The unit is Hz.
:CALCulate:LLINe2:OFFSet:Y 10
The following query returns 10.

Applies the offset to the specified limit line.

NameTypeValuesDescription
ndiscrete1 - 6Limit line number to update.
:CALCulate:LLINe1:OFFSet:UPDate

Enables or disables the coupling between the selected limit line data points and the center frequency. The query returns the current state as 0 or 1.

NameTypeValuesDescription
ninteger1 - 6Limit line number.
boolbooleanOFF | ON | 0 | 1Enables or disables the coupling function.
integer - Returns 0 when coupling is disabled and 1 when enabled.
:CALCulate:LLINe2:FREQuency:CMODe:RELative OFF
:CALCulate:LLINe2:FREQuency:CMODe:RELative 0
:CALCulate:LLINe2:FREQuency:CMODe:RELative?

Enables or disables the coupling function between the selected limit line data points and the reference level. The query returns the current coupling state.

NameTypeValuesDescription
ninteger1 - 6Selects the limit line data point set to modify.
boolbooleanOFF | ON | 0 | 1Enables or disables the coupling function.
enum - Returns the coupling function state as 0 or 1.
:CALCulate:LLINe2:AMPLitude:CMODe:RELative OFF or :CALCulate:LLINe2:AMPLitude:CMODe:RELative 0
:CALCulate:LLINe2:AMPLitude:CMODe:RELative?

Sets the amplitude interpolation type of the specified limit line. Queries the amplitude interpolation type of the specified limit line.

NameTypeValuesDescription
ninteger1 - 6Specifies the limit line index.
typeenumLINear | LOGSelects the amplitude interpolation type.
enum - Returns the current amplitude interpolation type.
:CALCulate:LLINe2:AMPLitude:INTerpolate:TYPE LINear
:CALCulate:LLINe2:AMPLitude:INTerpolate:TYPE?

Sets the frequency interpolation type of the specified limit line. Queries the frequency interpolation type of the specified limit line.

NameTypeValuesDescription
ninteger1 - 6
typeenumLINear | LOGSelects the interpolation type.
enum - Returns the interpolation type as LIN or LOG.
:CALCulate:LLINe2:CONTrol:INTerpolate:TYPE LINear
:CALCulate:LLINe2:CONTrol:INTerpolate:TYPE?

Sets the type of the specified limit line. Queries the type of the specified limit line.

NameTypeValuesDescription
ninteger1 - 6Limit line number.
enumenumUPPer | LOWerSelects upper or lower limit line type.

Builds the limit line from the selected trace.

NameTypeValuesDescription
traceenumTRACe1 | TRACe2 | TRACe3 | TRACe4 | TRACe5 | TRACe6
:CALCulate:LLINe2:BUILd TRACe2

Copies the selected limit line to the current limit line.

NameTypeValuesDescription
ndiscrete1 - 6
copyenumLLINe1 | LLINe2 | LLINe3 | LLINe4 | LLINe5 | LLINe6
:CALCulate:LLINe2:COPY LLINe1

Sets the marker coupling state. Queries the on/off state of the marker coupling.

NameTypeValuesDescription
boolenumOFF | ON | 0 | 1Marker coupling state.

Sets the excursion of the peak. Its unit is dB. Queries the excursion of the peak.

NameTypeValuesDescription
amplreal0 dB - 100 dBExcursion of the peak.

Enables or disables the peak excursion state. The query returns the on/off state as 0 or 1.

NameTypeValuesDescription
<bool>booleanOFF | ON | 0 | 1Enables or disables peak excursion.
integer - Returns the on/off state of the peak excursion.
:CALCulate:MARKer:PEAK:EXCursion:STATe ON or :CALCulate:MARKer:PEAK:EXCursion:STATe 1
:CALCulate:MARKer:PEAK:EXCursion:STATe?

Sets the peak search mode and queries the current peak search mode. The command is only valid for peak search executed by the :CALCulate:MARKer<n>:MAXimum command.

NameTypeValuesDescription
modeenumPARameter | MAXimumSelects whether peak search uses the specified parameter or the maximum value on the trace.
enum - Returns the current peak search mode as PAR or MAX.

Sets the sorting order of the data displayed in the peak table. Queries the sorting order of the data displayed in the peak table.

NameTypeValuesDescription
typeenumFREQuency | AMPLitudeSorting order for the peak table.
enum - Returns the current peak table sorting order.
:CALCulate:MARKer:PEAK:SORT AMPLitude
:CALCulate:MARKer:PEAK:SORT?

Sets the peak table readout. Queries the peak table readout.

NameTypeValuesDescription
typeenumALL | GTDLine | LTDLineSelects which peaks are listed in the peak table readout.
returns

Enables or disables the peak table. Queries the on/off status of the peak table.

NameTypeValuesDescription
boolenumOFF | ON | 0 | 1Enables or disables the peak table.
enum - Returns the on/off status of the peak table as 0 or 1.
::CALCulate:MARKer:PEAK:TABLe:STATe ON or :CALCulate:MARKer:PEAK:TABLe:STATe 1
::CALCulate:MARKer:PEAK:TABLe:STATe?

Sets the peak threshold. The default unit is dBm, and the query reads back the peak threshold in scientific notation.

NameTypeValuesDescription
amplreal-200 dBm - 0 dBmPeak threshold amplitude.
The following command sets the peak threshold to -100 dB. :CALCulate:MARKer:PEAK:THReshold -100

Sets the peak threshold state. Queries the peak threshold state.

NameTypeValuesDescription
boolbooleanOFF | ON | 0 | 1Enables or disables the peak threshold function.
integer - The query returns 0 or 1.
:CALCulate:MARKer:PEAK:THReshold:STATe ON or :CALCulate:MARKer:PEAK:THReshold:STATe 1
:CALCulate:MARKer:PEAK:THReshold:STATe?

Sets the marker table state. Queries the on/off state of the marker table.

NameTypeValuesDescription
boolboolean-On/off state of the marker table.
enum - The query returns 0 or 1.
:CALCulate:MARKer:TABLe:STATe OFF or :CALCulate:MARKer:TABLe:STATe 0
:CALCulate:MARKer:TABLe:STATe?

Sets the status of the signal track. Queries the on/off status of the signal track.

NameTypeValuesDescription
boolenumOFF | ON | 0 | 1On/off state for signal track.

Sets or queries the type of the specified marker. The command is valid only in GPSA mode; PvT only supports setting the marker on Trace 1.

NameTypeValuesDescription
ndiscrete1 - 8Marker number.
modeenumPOSition | DELTa | FIXed | OFFMarker type to set.
enum - Returns the current marker type.
:CALCulate:MARKer1:MODE POSition
:CALCulate:MARKer1:MODE?

Performs the Pk-Pk search.

NameTypeValuesDescription
ndiscrete1 - 8Marker number to which the command applies.

Sets the reference marker for the specified marker. Queries the reference marker for the specified marker.

NameTypeValuesDescription
ninteger1 - 8Specifies which marker is being configured.
integerinteger1 - 8The marker number to use as the reference marker.
integer - Returns the reference marker number for the specified marker.
:CALCulate:MARKer1:REFerence 2
:CALCulate:MARKer1:REFerence?

Enables or disables the marker line of the specified marker. Queries the setting state for the marker line of the specified marker.

NameTypeValuesDescription
ndiscrete1 | 2 | 3 | 4 | 5 | 6 | 7 | 8
stateboolean-
boolean - Returns the setting state of the marker line for the specified marker.

Enables or disables continuous peak search for the specified marker. The query returns the on/off status of continuous peak search as 0 or 1.

NameTypeValuesDescription
ninteger1 - 8Marker number.
boolenumOFF | ON | 0 | 1Turns continuous peak search off or on.
enum - Returns 0 or 1 indicating the on/off status of continuous peak search.
:CALCulate:MARKer1:CPSearch:STATe ON or :CALCulate:MARKer1:CPSearch:STATe 1
:CALCulate:MARKer1:CPSearch:STATe?

Sets the on/off status of continuous Min search. Queries the on/off status of continuous Min search.

NameTypeValuesDescription
ninteger1 - 8
boolbooleanOFF | ON | 0 | 1
integer - The query returns 0 or 1.

Sets the gate time for the specified marker. Queries the gate time for the specified marker.

NameTypeValuesDescription
ndiscrete1 | 2 | 3 | 4 | 5 | 6 | 7 | 8Specifies the marker number.
timereal1 us - 500 msGate time for the specified marker.
string - The query returns the gate time for the specified marker in scientific notation.
:CALCulate:MARKer2:FCOunt:GATetime 0.01
:CALCulate:MARKer2:FCOunt:GATetime?

Turns on or off the auto gate time for the specified marker. Queries the on/off status of the auto gate time for the specified marker.

NameTypeValuesDescription
ndiscrete1 | 2 | 3 | 4 | 5 | 6 | 7 | 8Marker number to select.
boolenumOFF | ON | 0 | 1Turns auto gate time off or on.
enum - Returns 0 or 1.

Enables or disables the marker counter, and queries its on/off status. This command is only available in GPSA mode.

NameTypeValuesDescription
ndiscrete1 - 8Marker number.
boolbooleanOFF | ON | 0 | 1Turns the marker counter off or on.
enum - Returns the on/off status of the marker counter as 0 or 1.
:CALCulate:MARKer2:FCOunt:STATe ON or :CALCulate:MARKer2:FCOunt:STATe 1
:CALCulate:MARKer2:FCOunt:STATe?

Queries the frequency count X of the specified marker counter.

NameTypeValuesDescription
ndiscrete1 | 2 | 3 | 4 | 5 | 6 | 7 | 8

Sets the band function type. Queries the band function type.

NameTypeValuesDescription
<n>integer1 | 2 | 3 | 4 | 5 | 6 | 7 | 8
<func>enumNOISe | BPOWer | BDENsity | OFFSelects the band function type.
enum - The query returns NOIS, BPOW, BDEN, or OFF.
The following command sets the measurement type of Marker 1 to noise measurement.
The following query returns NOIS.

Sets the left edge frequency or time for the band of the selected marker. Queries the left edge frequency or time for the band of the selected marker.

NameTypeValuesDescription
ninteger1 - 8Marker index.
freq--Left edge frequency or time for the selected marker band.

Sets or queries the right edge frequency or time for the band of the selected marker. The command is valid only when the corresponding bandwidth function is enabled, and it applies in zero span mode in GPSA mode or in PvT view in RTSA mode.

NameTypeValuesDescription
nenum1 | 2 | 3 | 4 | 5 | 6 | 7 | 8Selected marker number.
freqrealband left - +∞Right edge frequency or time for the band of the selected marker.
real - Returns the right edge frequency or time for the band of the selected marker in scientific notation.
:CALCulate:MARKer1:FUNCtion:BAND:RIGHt 4000000000
:CALCulate:MARKer1:FUNCtion:BAND:RIGHt?

Sets the band span of the specified marker. Queries the band span of the specified marker.

NameTypeValuesDescription
ndiscrete1 - 8Specified marker number.
freqreal0 - +∞Band span value to set.
real - Returns the band span involved in the calculation for the band function in scientific notation.
:CALCulate:MARKer1:FUNCtion:BAND:SPAN 500000000
:CALCulate:MARKer1:FUNCtion:BAND:SPAN?

Sets the band span auto state of the specified marker. Queries the band span auto state of the specified marker.

NameTypeValuesDescription
ndiscrete1 | 2 | 3 | 4 | 5 | 6 | 7 | 8Marker number.
boolbooleanOFF | ON | 0 | 1Turns band span auto on or off.
integer - The query returns 1 or 0.
:CALCulate:MARKer1:FUNCtion:BAND:SPAN:AUTO ON

Performs one peak search based on the peak search mode set by :CALCulate:MARKer:PEAK:SEARch:MODE, and marks the result with the specified marker. If no peak is found, a "No peak found" message is displayed.

NameTypeValuesDescription
ndiscrete1 - 8Marker number to use.
:CALCulate:MARKer2:MAXimum

Searches for and marks the nearest peak located to the left of the current peak that meets the peak search condition.

NameTypeValuesDescription
ndiscrete1 | 2 | 3 | 4 | 5 | 6 | 7 | 8Marker number.
:CALCulate:MARKer2:MAXimum:LEFT

Searches for and marks the peak whose amplitude on the trace is next to that of the current peak and which meets the peak search condition.

NameTypeValuesDescription
ninteger1 - 8Marker number to use.

Searches for and marks the nearest peak located to the right of the current peak, meeting the peak search condition.

NameTypeValuesDescription
ndiscrete1 - 8Marker number to use.
:CALCulate:MARKer2:MAXimum:RIGHt

Searches for and marks the peak with the minimum amplitude on the trace.

NameTypeValuesDescription
ninteger1 - 8
:CALCulate:MARKer2:MINimum

Sets the frequency of the specified marker to the center frequency of the analyzer.

NameTypeValuesDescription
ndiscrete1 | 2 | 3 | 4 | 5 | 6 | 7 | 8Specifies which marker is affected.
:CALCulate:MARKer1:SET:CENTer

Sets the frequency difference of the specified Delta marker to the center frequency of the analyzer.

NameTypeValuesDescription
<n>enum1 | 2 | 3 | 4 | 5 | 6 | 7 | 8Specifies which marker is affected.
:CALCulate:MARKer1:SET:DELTa:CENTer

Sets the frequency difference of the specified Delta marker to the span of the analyzer.

NameTypeValuesDescription
ndiscrete1 | 2 | 3 | 4 | 5 | 6 | 7 | 8

Sets the amplitude of the specified marker to the reference level of the analyzer.

NameTypeValuesDescription
ndiscrete1 | 2 | 3 | 4 | 5 | 6 | 7 | 8Specifies which marker is affected.

Sets the frequency of the specified marker to the start frequency of the analyzer.

NameTypeValuesDescription
ndiscrete1 | 2 | 3 | 4 | 5 | 6 | 7 | 8Specifies which marker is affected.

Sets the frequency of the specified marker to the center frequency step of the analyzer.

NameTypeValuesDescription
ndiscrete1 - 8Marker number.
:CALCulate:MARKer4:SET:STEP

Sets the frequency of the specified marker to the stop frequency of the analyzer.

NameTypeValuesDescription
ndiscrete1 - 8Marker number.
:CALCulate:MARKer2:SET:STOP

Sets the marker trace for the specified marker. Queries the marker trace for the specified marker.

NameTypeValuesDescription
ninteger1 - 8
integerinteger1 - 7Selects the marker trace; the range is Trace 1 to Trace 6, and 7 is used for PvT view of RTSA mode.
integer - Returns the marker trace number, ranging from 1 to 6. If the marker trace is set to Auto, returns the trace number on which the marker is placed.
:CALCulate:MARKer1:TRACe 2
:CALCulate:MARKer1:TRACe?

Enables or disables automatic trace marking for the specified marker. The query returns the auto-trace status as 0 or 1.

NameTypeValuesDescription
ninteger1 - 8Marker number to select.
boolenumOFF | ON | 0 | 1Enables or disables auto trace marking.
integer - Returns 0 or 1 indicating whether auto trace marking is disabled or enabled.
:CALCulate:MARKer1:TRACe:AUTO 1
:CALCulate:MARKer1:TRACe:AUTO?

Sets the X-axis value of the specified marker. Queries the X-axis value of the specified marker.

NameTypeValuesDescription
ndiscrete1 | 2 | 3 | 4 | 5 | 6 | 7 | 8
paramrealHzX-axis value to assign to the specified marker.
real - Returns the X-axis value of the marker in scientific notation.
:CALCulate:MARKer1:X 150000000
:CALCulate:MARKer1:X?

Sets the readout mode of the X axis of the specified marker. Queries the readout mode of the X axis of the specified marker.

NameTypeValuesDescription
type--
returns - Returns the readout mode of the X axis of the specified marker.

Enables or disables the auto readout mode of the specified marker. When enabled, the readout mode is re-determined based on the destination trace if the marker trace changes.

NameTypeValuesDescription
ninteger1 - 8Marker number.
boolbooleanOFF | ON | 0 | 1Turns auto readout mode off or on.
integer - Returns the auto readout mode state as 0 or 1.
:CALCulate:MARKer1:X:READout:AUTO ON or :CALCulate:MARKer1:X:READout:AUTO 1
:CALCulate:MARKer1:X:READout:AUTO?

Sets the X-axis position of the trace at the specified marker. Queries the X-axis position of the trace at the specified marker.

NameTypeValuesDescription
<n>discrete1 | 2 | 3 | 4 | 5 | 6 | 7 | 8Marker number.
<index>integer-X-axis position index for the specified marker.
integer - The X-axis position of the trace at the specified marker.
:CALCulate:MARKer1:X 100
:CALCulate:MARKer1:X?

Sets the Y-axis value of the specified marker. Queries the Y-axis value of the specified marker; if the marker mode is Delta, the query returns the Y-axis difference between the reference marker and the Delta marker.

NameTypeValuesDescription
ndiscrete1 | 2 | 3 | 4 | 5 | 6 | 7 | 8Marker number.
ampreal-170 dBm - +30 dBmY-axis value to set for the specified marker.
real - Returns the Y-axis value in scientific notation. In Delta marker mode, returns the Y-axis difference between the reference marker and the Delta marker.
The following command sets Y-axis value at Fixed Marker 1 to -59.6 dBm. :CALCulate:MARKer1:Y -59.6
The following query returns -5.960000000e+01. :CALCulate:MARKer1:Y?

Queries the Z-axis value of the specified marker.

NameTypeValuesDescription
ndiscrete1 | 2 | 3 | 4 | 5 | 6 | 7 | 8Specifies the marker number.
returns
:CALCulate:MARKer1:Z?

Sets the trace number of the specified marker in the Spectrogram view. Queries the trace number of the specified marker in the Spectrogram view.

NameTypeValuesDescription
ndiscrete1 | 2 | 3 | 4 | 5 | 6 | 7 | 8
integerinteger1 - 8192
integer - The query returns the trace number in integer.
:CALCulate:MARKer1:Z:POSition 100
:CALCulate:MARKer1:Z:POSition?
:CALCulate:MATHset / query

Sets up a math calculation using a destination trace, math function, trace operations, and relative offset/reference. The slice also shows a query form with TRACE1|TRACE2|TRACE3|TRACE4|TRACE5|TRACE6, but it does not document what the query returns.

NameTypeValuesDescription
trace_destinationdiscrete-Destination trace for the math calculation.
function_mathdiscrete-Math function to apply.
trace1_operationdiscrete-Operation applied to trace 1.
trace2_operationdiscrete-Operation applied to trace 2.
rel_offsetdiscrete-Relative offset used in the calculation.
rel_referencediscrete-Relative reference used in the calculation.
:CALCulate:MATH? TRACE1|TRACE2|TRACE3|TRACE4|TRACE5|TRACE6

Enables or disables the normalize function. The query returns the normalization status.

NameTypeValuesDescription
boolbooleanOFF | ON | 0 | 1Turns normalization off or on.
integer - Returns 0 or 1 indicating the status of normalization.

Sets the limit value in OBW measurement. Queries the limit value in OBW measurement.

NameTypeValuesDescription
freqreal1 kHz - FmaxLimit frequency value for the OBW measurement.
integer - The query returns the limit value in integer.
:CALCulate:OBWidth:LIMit:FBLimit 1
:CALCulate:OBWidth:LIMit:FBLimit?

Sets or queries the OBW measurement limit state. This command is only valid for the OBW measurement in GPSA mode.

NameTypeValuesDescription
boolbooleanOFF | ON | 0 | 1Limit state to set for the OBW measurement.
integer - Returns 0 or 1 indicating the OBW measurement limit state.
:CALCulate:OBWidth:LIMit[:TEST] <bool>
:CALCulate:OBWidth:LIMit[:TEST]?

Queries the result of the limit line test.

NameTypeValuesDescription
nenum1 | 2 | 3 | 4 | 5 | 6Selects which limit line test result to query.

Queries the result of the trace line test.

NameTypeValuesDescription
ndiscrete1 | 2 | 3 | 4 | 5 | 6Trace line index.
enum - Returns the result of the trace line test.

Enables or disables auto calibration. The query reports the current auto-calibration setting.

NameTypeValuesDescription
boolenumOFF | ON | 0 | 1Enables or disables auto calibration.
enum - The query returns 0 or 1.
:CALibration:AUTO ON or :CALibration:AUTO 1
:CALibration:AUTO?

Queries the current measurement function.

enum - The query returns the current measurement function.

:COUPleset / query

Sets the auto coupling function.

NameTypeValuesDescription
enumenumALL | NONESelects auto coupling on or off.
:COUPle NONE

Enables or disables the auto scale function for the horizontal axis in the PvT view. Queries the status of the auto scale function for the horizontal axis in the PvT view.

NameTypeValuesDescription
boolenumOFF | ON | 0 | 1Enables or disables auto scale for the horizontal axis in the PvT view.
enum - The query returns 1 or 0.
:DISPlay:PVTime:WINDow:TRACe:X:SCALe:COUPle ON
:DISPlay:PVTime:WINDow:TRACe:X:SCALe:COUPle 1
:DISPlay:PVTime:WINDow:TRACe:X:SCALe:COUPle?

Sets the unit per division in the horizontal axis of the PvT view. Queries the unit per division in the horizontal axis of the PvT view.

NameTypeValuesDescription
timereal20 us - 4 s
string - The query returns the X-axis scale value in scientific notation.
:DISPlay:PVTime:WINDow:TRACe:X:SCALe:PDIVision 0.00004
:DISPlay:PVTime:WINDow:TRACe:X:SCALe:PDIVision?

Sets the reference time for the horizontal axis in the PvT view. Queries the reference time for the horizontal axis in the PvT view.

NameTypeValuesDescription
realreal-1 s - 40 sReference time for the horizontal axis in the PvT view.
:DISPlay:PVTime:WINDow:TRACe:X:SCALe:RLEVel 2
:DISPlay:PVTime:WINDow:TRACe:X:SCALe:RLEVel?

Sets the position of the reference time in the horizontal axis of the PvT view. Queries the position of the reference time in the horizontal axis of the PvT view.

NameTypeValuesDescription
positionenumLEFT | CENTer | RIGHtPosition of the reference time on the horizontal axis.
:DISPlay:PVTime:WINDow:TRACe:X:SCALe:RPOSition LEFT
:DISPlay:PVTime:WINDow:TRACe:X:SCALe:RPOSition?

Sets the current display view. Queries the current display view.

NameTypeValuesDescription
viewenumNORMal | SPECtrogram | DENSity | DSGRam | PVTime | PSPectrum | PSGRam | CNR | ACP | TOI | CHP | TP | OBW | HDCurrent display view to select.
enum - Returns the current display view.
:DISPlay:VIEW:SELect SPECtrogram
:DISPlay:VIEW:SELect?

Sets the persistence in the Density view. Queries the persistence in the Density view.

NameTypeValuesDescription
timereal-Persistence time for the Density display view.
returns

Enables or disables the infinite mode of the persistence time. Queries the on/off status of the infinite mode of the persistence time.

NameTypeValuesDescription
boolbooleanOFF | ON | 0 | 1Enables or disables infinite persistence mode.
enum - Returns 0 or 1 indicating the on/off status of infinite mode.
:DISPlay:VIEW:DENSity:PERSistence:INFinite ON or :DISPlay:VIEW:DENSity:PERSistence:INFinite 1
:DISPlay:VIEW:DENSity:PERSistence:INFinite?

Sets the highest density hue. Queries the highest density hue.

NameTypeValuesDescription
realreal-The highest density hue value.
real - Returns the highest density hue.

Sets the lowest density hue. Queries the lowest density hue.

NameTypeValuesDescription
realreal0 - 99.9Lowest density hue value.
real - The lowest density hue.
The following command sets the lowest density hue in the Density view to 30.
The following query returns 3.000000e+01.
:DISPlay:VIEW:DENSity:LDHue 30
:DISPlay:VIEW:DENSity:LDHue?

Sets the curve nonlinearity. Queries the curve nonlinearity.

NameTypeValuesDescription
realreal0.1 - 100Curve nonlinearity value.
real - The query returns the curve nonlinearity.

Sets the color palette of Density view. Queries the color palette of Density view.

NameTypeValuesDescription
caplenumCOOL | WARM | RADar | FIRE | FROStColor palette for the Density view.
enum - Returns the current color palette as COOL, WARM, RAD, FIRE, or FROS.
:DISPlay:VIEW:DENSity:CPALettes COOL
:DISPlay:VIEW:DENSity:CPALettes?

Sets the highest density hue to the highest density value found in the current bitmap, and sets the lowest density hue to the lowest density value found in the current bitmap. This command is only available for Density and Density Spectrogram views in RTSA mode.

Sets the truncation state in the Density view. Queries the truncation state in the Density view.

NameTypeValuesDescription
boolenumOFF | ON | 0 | 1Truncation state to set for the Density view.
enum - The query returns 0 or 1.
:DISPlay:VIEW:DENSity:TRUNcation ON
:DISPlay:VIEW:DENSity:TRUNcation 1
:DISPlay:VIEW:DENSity:TRUNcation?

Sets the trace display type in the Spectrogram view. Queries the trace display type in the Spectrogram view.

NameTypeValuesDescription
typeenumTIME | TNUMberTrace display type for the Spectrogram view.
enum - Returns the current trace display type.
:DISPlay:VIEW:SPECtrogram:TRACe:SELection TIME

Sets the X-axis spacing mode for the display window trace. Queries the X-axis scale type.

NameTypeValuesDescription
ndiscrete1 - 1Display window number; 1 is valid in the documented context.
enumenumLINear | LOGarithmicX-axis scale type.
enum - Returns the X-axis scale type as LIN or LOG.
:DISPlay:WINDow1:TRACe:X:SCALe:SPACing LOGarithmic
:DISPlay:WINDow1:TRACe:X:SCALe:SPACing?

Sets the position of the time line and queries the position of the time line.

NameTypeValuesDescription
amplinteger-Position value for the time line.
integer - Returns the position of the time line.

Sets the state of the time line. Queries the state of the time line.

NameTypeValuesDescription
boolenum0 | 1 | ON | OFFBoolean state of the time line.
enum - The query returns 0 or 1.
:DISPlay:WINDow1:TRACe:X:TLINe1:STATe 1 or :DISPlay:WINDow1:TRACe:X:TLINe1:STATe ON
:DISPlay:WINDow1:TRACe:X:TLINe1:STATe?

Sets or queries the Y-axis delta line position for a trace display window. The query returns the position as a real value with units of seconds.

NameTypeValuesDescription
ndiscrete1 - 8Display window number.
dlnumdiscrete1 - 4Delta line number.
amplreal0 s - 1 PsDelta line position.
real (s) - Returns the position of the delta line.

Enables or disables the display line. Queries the on/off status of the display line.

NameTypeValuesDescription
ndiscrete1 - 8Selects the window context for the display line.
dlnumdiscrete1 - 4Selects the display line number.
boolbooleanOFF | ON | 0 | 1Enables or disables the display line.
integer - Returns 0 or 1 indicating the on/off status of the display line.

Sets or queries the reference level of normalization for the specified display window trace. This command is only available for the RSA6000-TG model in GPSA mode and only when the tracking generator function is enabled.

NameTypeValuesDescription
ndiscrete1
rel_amplreal-200 dB - 200 dB
real - Returns the reference level of normalization in scientific notation.
:DISPlay:WINDow1:TRACe:Y:SCALe:NRLevel -20
:DISPlay:WINDow1:TRACe:Y:SCALe:NRLevel?

Sets the reference position of normalization. Queries the reference position of normalization.

NameTypeValuesDescription
ndiscrete1
integerinteger0% - 100%
integer - The query returns the reference position of normalization in integer.
:DISPlay:WINDow1:TRACe:Y:SCALe:NRPosition 50
:DISPlay:WINDow1:TRACe:Y:SCALe:NRPosition?

Sets the Y-axis scale type. Queries the Y-axis scale type.

NameTypeValuesDescription
ndiscrete1 | 4 | 7 | 8Display window number: 1 for normal measurement and advanced measurement in GPSA mode / normal view in RTSA mode, 4 for waterfall window in RTSA mode, 7 for density view in RTSA mode, and 8 for PvT trace view in RTSA mode.
rel_amplreal0.1 - 20Y-axis scale value.
string - Returns the Y-axis scale value in scientific notation.
:DISPlay:WINDow1:TRACe:Y:SCALe:PDIVision 15
:DISPlay:WINDow1:TRACe:Y:SCALe:PDIVision?

Sets the reference level. Queries the reference level.

NameTypeValuesDescription
ndiscrete1 - 8Selects the display window/view: 1 normal measurement and advanced measurement in GPSA mode; normal view in RTSA mode, 4 waterfall window in RTSA mode, 7 density view in RTSA mode, or 8 PvT trace view in RTSA mode.
amplreal-170 - 30Sets the reference level amplitude.
real - Returns the reference level in scientific notation.
:DISPlay:WINDow1:TRACe:Y:SCALe:RLEVel 0
:DISPlay:WINDow1:TRACe:Y:SCALe:RLEVel?

Sets the reference level offset. Queries the reference level offset.

NameTypeValuesDescription
ndiscrete1 | 4 | 7 | 8Selects the window/view to apply the command to.
rel_amplreal-300 dB - 300 dBSets the reference level offset.
string - The query returns the offset of the reference level in scientific notation.
:DISPlay:WINDow1:TRACe:Y:SCALe:RLEVel:OFFSet 10
:DISPlay:WINDow1:TRACe:Y:SCALe:RLEVel:OFFSet?

Sets the Y-axis scale type. Queries the Y-axis scale type.

NameTypeValuesDescription
ndiscrete1 | 4 | 7 | 8Selects the display window or trace view: 1 for normal measurement and advanced measurement in GPSA mode; normal view in RTSA mode, 4 for waterfall window in RTSA mode, 7 for density view in RTSA mode, and 8 for PvT trace view in RTSA mode.
enumenumLINear | LOGarithmicSets the Y-axis scale type.

Sets the display trace in the Waterfall view. Queries the display trace in the Waterfall view.

NameTypeValuesDescription
positioninteger1 - 8,192
integer - The query returns the display trace in integer.
:DISPlay:WINDow4:TRACe:Position 5
:DISPlay:WINDow4:TRACe:Position?

Sets the display trace in the Waterfall view when the display mode is Time. Queries the display trace expressed in time in the Waterfall view when the display mode is Time.

NameTypeValuesDescription
timereal-300 dB - 300 dBDisplay trace value expressed in time.

Sets the trace coupling relationship between marker Z and trace position. Queries the trace coupling relationship between marker Z and trace position.

NameTypeValuesDescription
boolbooleanOFF | ON | 0 | 1Enables or disables trace coupling between marker Z and trace position.
enum - Returns the trace coupling state as 0 or 1.
:DISPlay:WINdow4:TRACe:COUPle ON or :DISPlay:WINdow:TRACe:COUPle 1
:DISPlay:WINdow4:TRACe:COUPle?

Sets the reference hue in the Waterfall window. This command is only available for RTSA mode.

NameTypeValuesDescription
realreal0 - 359.9Reference hue value for the Waterfall window.

Sets the reference hue position in the Waterfall window. Queries the reference hue position in the Waterfall window.

NameTypeValuesDescription
<integer>integerMax (10%, bottom hue value + 10%) - 100.0
integer - The query returns the reference hue position in the Waterfall window in integer.
:DISPlay:WINDow4:REFerence10
:DISPlay:WINDow4:REFerence?

Sets the bottom hue position in the Waterfall window. This command is only available for RTSA mode.

NameTypeValuesDescription
<integer>real0 - Min (90%, reference position value - 10%)Bottom hue position in the Waterfall window.

Queries the results of C/N ratio measurement. The query returns the carrier power, noise power, and C/N ratio in scientific notation, separated by commas.

numeric - Returns the carrier power, noise power, and C/N ratio in scientific notation, separated by commas. The C/N ratio is in dB, and the power unit is consistent with the current Y-axis unit.
:FETCh:CNRatio?

Queries the carrier power.

real - The carrier power in scientific notation. The power unit is consistent with the current Y-axis unit.
:FETCh:CNRatio:CARRier?
The following query returns -1.484203000e+01.
:FETCh:CNRatio:CARRier?

Queries the C/N ratio measurement result. It is only valid when the C/N ratio measurement is enabled in GPSA mode.

returns

Queries the noise power. The returned value is given in scientific notation and uses the current Y-axis unit.

real - The noise power in scientific notation.
:FETCh:CNRatio:NOISe?

Queries the results of the adjacent channel power measurement. The query returns five comma-separated values in scientific notation: main channel power, upper channel power, upper-channel difference in dBc, lower channel power, and lower-channel difference in dBc.

numeric - Returns five comma-separated values in scientific notation: main channel power, upper channel power, upper-channel difference in dBc, lower channel power, and lower-channel difference in dBc.
:FETCh:ACPower?

Queries the lower channel power of the adjacent channel power measurement.

real - Returns the lower channel power in scientific notation as part of the adjacent channel power measurement results.

Queries the main channel power of the adjacent channel power measurement.

real - Returns the main channel power in scientific notation. The power unit is consistent with the current Y-axis unit.
:FETCh:ACPower:MAIN?

Queries the upper channel power of the adjacent channel power measurement.

real - Returns the upper channel power in scientific notation. The power unit is consistent with the current Y-axis unit.
FETCh:ACPower:UPPer?

Queries the amplitudes of the first 10 harmonics. The first harmonic is the fundamental waveform.

numeric (consistent with the current Y-axis unit) - Returns the amplitudes of the first 10 harmonics in scientific notation, separated by commas. If fewer than 10 harmonics are under measurement, unmeasured harmonics have no return values.

Queries the amplitude of the specified harmonic.

NameTypeValuesDescription
ninteger1 - 10
string - Returns the amplitude of the specified harmonic, or --- when the harmonic read does not have data.

Queries the percentage of the total harmonic distortion.

real - The percentage of the total harmonic distortion in scientific notation.
:FETCh:HARMonics:DISTortion?

Queries the frequencies of the first 10 harmonics. The first harmonic is the fundamental waveform.

integer (Hz) - Returns the frequencies of the first 10 harmonics in integer, separated by commas. If fewer than 10 harmonics are under measurement, the unmeasured harmonics have no return values.
FETCh:HARMonics:FREQuency:ALL?

Queries the frequency of the specified harmonic.

NameTypeValuesDescription
ninteger1 - 10Specifies which harmonic frequency to query.
real (Hz) - Returns the frequency of the specified harmonic in scientific notation.

Queries the frequency of the fundamental waveform. This command is only valid when the harmonic distortion measurement is enabled in GPSA mode.

real (Hz) - Returns the frequency of the fundamental waveform in scientific notation, in Hz.
:FETCh:HARMonics:FUNDamental?

Queries the results of the occupied bandwidth measurement. The query returns the occupied bandwidth and the transmit frequency error in scientific notation, separated by commas.

numeric (Hz) - Returns the occupied bandwidth and the transmit frequency error in scientific notation, separated by commas.
:FETCh:OBWidth?

Queries the occupied bandwidth. The query returns the occupied bandwidth (IBW) in scientific notation, in Hz.

real (Hz) - Returns the occupied bandwidth (IBW) in scientific notation.
:FETCh:OBWidth:OBWidth?
:FETCh:OBWidth:OBWidth?

Queries the transmit frequency error. This command is only valid when the occupied bandwidth measurement is enabled in GPSA mode.

real (Hz) - The transmit frequency error in scientific notation.
*none provided in slice*

Queries the trace data.

NameTypeValuesDescription
ndiscrete1 - 6Trace number to fetch.

Queries the results of TOI measurement. The returned values are in scientific notation and correspond to the lower/upper base frequencies and third-order intercept data.

string (Hz) - Returns the TOI measurement results as a comma-separated list: Base Lower frequency (Hz), amplitude, Base Upper frequency (Hz), amplitude, 3rd Order Lower frequency (Hz), amplitude, intercept, 3rd Order Upper frequency (Hz), amplitude, intercept.
:FETCh:TOIntercept?

Returns the minor value of the intercepts of the Third Order Lower and Third Order Upper. The result is returned in scientific notation.

real (Hz) - Returns the minor one in scientific notation.
:FETCh:TOIntercept:IP3?

Queries the measurement data of the specified trace in scientific notation. The returned values are separated by commas and the unit is Hz.

real (Hz) - Measurement data of the specified trace, returned in scientific notation and separated by commas.
:FETCh:SANalyzer1?

Queries the channel power spectral density.

NameTypeValuesDescription
ninteger1 - 10
real (Hz) - Returns the power of the specified channel in scientific notation. The unit is Hz.
:FETCh:CHPower:DENSity1?

Queries the channel power. It is only valid when channel power measurement is enabled in GPSA mode.

NameTypeValuesDescription
ninteger1 - 10
numeric - Returns the power of the specified channel in scientific notation.

*CLSset / query

Clears all the event registers and status byte registers.

*ESEset / query

Sets the enable register for the standard event status register. The query form returns the register as an integer.

NameTypeValuesDescription
valueinteger0 - 255Value for the standard event status register enable bits; bits 1 and 6 are always treated as 0.
integer - Returns the enable register as the binary-weighted sum of the bits set in the register.
*ESE 16
*ESE?
*ESR?query

Queries and clears the event register for the standard event status register.

integer - Returns a decimal value corresponding to the bits set in the standard event status register; bits 1 and 6 are treated as 0.
*IDN?query

Queries the ID string of the instrument. The response is a comma-separated string containing the vendor, model, serial number, and software version.

string - The ID string in the format Rigol Technologies,<model>,<serial number>,XX.XX.XX.
*IDN?
*OPCset / query

Sets Bit 0 (Operation Complete, OPC) in the standard event status register to 1 after the current operation is finished. Queries whether the current operation is finished.

integer - Returns 1 after the current operation is finished; otherwise returns 0.
*OPC?
*RCLset / query

Recalls the selected register.

NameTypeValuesDescription
integerinteger1 - 16Register number to recall.
*RCL <integer>
*RSTset / query

Restores the instrument to its factory default settings.

*SAVset / query

Saves the current instrument state to the selected register.

NameTypeValuesDescription
integerinteger1 - 16Register number to save the current instrument state to.
*SAV 1
*SREset / query

Sets the enable register for the status byte register. The query reads the bits in the service request register.

NameTypeValuesDescription
valueinteger0 - 255Enable register value; Bit 0 and Bit 1 are always treated as 0.
integer - Returns the integer binary-weighted sum of all bits set in the register.
*SRE 16
*SRE?
*STB?query

Queries the event register for the status byte register.

integer - The query returns the status byte register as a decimal integer, equal to the binary-weighted sum of the bits set in the register. Bit 0 and Bit 1 are not in use and are treated as 0.
*STB?
*TST?query

Queries whether the self-check operation is finished. The query returns 0 if the test is successful, and 1 if it fails.

integer - Returns 0 if the self-check operation is successful, and 1 if it fails.
*WAIset / query

Waits for all pending operations to complete before executing any additional commands.

:GPIB:PARSe:ENDset / query

Sends the GPIB module the "Parse End" command. The manual says this command must be set for the USB-GPIB adapter module to work, and that no return value is produced.

Selects continuous (ON|1) or single (OFF|0) measurement mode. Queries the current measurement mode.

NameTypeValuesDescription
<bool>enumOFF | ON | 0 | 1Selects continuous or single measurement mode.
enum - The current measurement mode is returned as 0 or 1.
:INITiate:CONTinuous ON or :INITiate:CONTinuous 1
:INITiate:CONTinuous?

Initializes one sweep in the non-measurement state, or triggers one measurement in the measurement state.

:INITiate[:IMMediate]

Queries the IF overload.

integer - The query returns 0 or 1; 0 indicates not overloaded and 1 indicates overloaded.

Sets or queries the status of the global center frequency coupling for the instrument. NONE turns it off and ALL turns it on; when enabled, the current mode center frequency follows the global center frequency.

NameTypeValuesDescription
modeenumALL | NONESelects whether global center frequency coupling is enabled or disabled.
enum - Returns ALL or NONE.
:INSTrument:COUPle:FREQuency:CENTer ALL
:INSTrument:COUPle:FREQuency:CENTer?

Queries the available measurement modes displayed at the bottom of the screen.

enum - Returns the available measurement modes displayed at the bottom of the screen.

Renames the currently selected measurement mode label at the bottom of the screen.

NameTypeValuesDescription
namestring-The new label name.
::INSTrument:SCReen:REName<name>

Selects the specified measurement mode label at the bottom of the screen. The query form returns the currently selected measurement mode label.

NameTypeValuesDescription
namestring-The measurement mode label name to select.
string - Returns the currently selected measurement mode label.
:INSTrument:SCReen:SELect RTSA 1
:INSTrument:SCReen:SELect?

Selects the working mode of the instrument. The query returns the current working mode.

NameTypeValuesDescription
enumenumSA | GPSA_TG | RTSA | RTSA_UFS | GPSA_ACP | GPSA_CNR | GPSA_CHPower | GPSA_TOI | GPSA_HARModist | GPSA_OBW | GPSA_TPOWer | EMI | VMA | AM | FM | PMWorking mode to select.
enum - Returns the present working mode of the instrument.
:INSTrument:SELect SA
:INSTrument:SELect?

:MMEMory:DELeteset / query

Deletes a specified file.

NameTypeValuesDescription
file_namestring-Path and filename of the file to delete.
.MMEMory:DELete /GPSA/state/state1.sta

Loads the edited FMT file (.csv). This command is only available for RTSA mode.

NameTypeValuesDescription
labelenumUPPer | LOWerSelects the target mask label.
file_namestring-Specifies the path and filename of the FMT file to load.
:MMEMory:LOAD:FMT UPPer,mask1.csv

Loads the edited limit line file (.csv).

NameTypeValuesDescription
labelenumLLINE1 | LLINE2 | LLINE3 | LLINE4 | LLINE5 | LLINE6Selects which limit line label to load.
file_namestring-Specifies the file name to load.

Loads the amplitude correction data (.csv).

NameTypeValuesDescription
labelenumLLINE1 | LLINE2 | LLINE3 | LLINE4 | LLINE5 | LLINE6
file_namestring-
:MMEMory:LOAD:CORRection LLINE1,upp1.csv

Loads the specified state file (.sta).

NameTypeValuesDescription
file_namestring-File name of the state file to load.
:MMEMory:LOAD:STATe state1.sta

Loads the specified measurement data file, which is suffixed with .csv.

NameTypeValuesDescription
labelstring-
file_namestring-
:MMEMory:LOAD:TRACe:DATA <label>,<file_name>

Loads the measurement results from a specified file into the selected trace or table. The operation fails if the file with the specified filename does not exist.

NameTypeValuesDescription
labelenumTRACE1 | TRACE2 | TRACE3 | TRACE4 | TRACE5 | TRACE6 | PTABLE | MTABLE | RESULT | RAWDATASelects the destination trace or result table.
pathstring-Specifies the file path to load.
:MMEMory:LOAD:RESults TRACE1,trace1.csv
:MMEMory:MOVEset / query

Renames the specified file <file_name1> as <file_name2>. The file names should contain the path and filename.

NameTypeValuesDescription
file_name1string-Source file name to rename.
file_name2string-New file name.
:MMEMory:MOVE /GPSA/state/state1.sta,/GPSA/state/state2.sta

Saves the screen image to the specified path.

NameTypeValuesDescription
pathstring-Specifies the path where the screen image is saved.
:MMEMory:STORe:IMG:PNG <path>

Saves the current instrument state with the specified filename suffixed with ".sta" to the default path ("/mode name/state"). If the file already exists, it is overwritten.

NameTypeValuesDescription
file_namestring-Filename used for the saved instrument state.
:MMEMory:STORe:STATe state

Saves the specified trace+state file with filename suffixed with ".trs" to the default path ("/mode name"/tracestate). If the specified file already exists, it is overwritten.

NameTypeValuesDescription
labelenumTRACE1 | TRACE2 | TRACE3 | TRACE4 | TRACE5 | TRACE6Selects which trace to save with the instrument state.
file_namestring-Specifies the filename to use for the saved trace+state file.
:MMEMory:STORe:TRACe TRACE1,mystate

Saves the trace measurement data with the specified filename suffixed with ".csv" to the default path (/"mode name"/measdata). If the file already exists, it is overwritten.

NameTypeValuesDescription
labelenumTRACE1 | TRACE2 | TRACE3 | TRACE4 | TRACE5 | TRACE6Trace measurement data label to save.
file_namestring-Filename to use for the saved CSV file.
:MMEMory:STORe:TRACe:DATA TRACE1,mydata

Saves the current measurement results with the specified filename suffixed with ".csv" by default to the default path ("/mode name"/measdata). Overwrites an existing file if necessary.

NameTypeValuesDescription
file_namestring-Filename to use when saving the measurement results.
:MMEMory:STORe:RESults data

Saves the marker table with a specified filename suffixed with ".csv" by default to the default path (/"mode name"/measdata).

NameTypeValuesDescription
file_namestring-Filename used for the saved marker table CSV file.
:MMEMory:STORe:MTABle data

Saves the peak table with the specified filename, appending ".csv" by default, to the default path ("mode name"/measdata).

NameTypeValuesDescription
<file_name>string-Filename for the peak table to save.
:MMEMory:STORe:PTABle PT1

Saves the currently edited limit line with a specified filename suffixed with ".csv" by default to the default path (/"mode name"/limit). If the specified file already exists, it is overwritten.

NameTypeValuesDescription
labelenumLLINE1 | LLINE2 | LLINE3 | LLINE4 | LLINE5 | LLINE6Selects which limit line to save.
file_namestring-Specifies the filename to save.
MMEMory:STORe:LIMit LLINE1,low

Saves the currently edited correction data with a specified filename suffixed with ".csv" by default to the default path (/"mode name"/correction).

NameTypeValuesDescription
labelenum-Label identifying the correction set to save.
file_namestring-Filename to use when saving the correction data.

Saves the FMT data of the current limit line to the default limit folder with the specified filename, appending ".csv" by default. If the file already exists, it is overwritten.

NameTypeValuesDescription
labelenumLLINE1 | LLINE2 | LLINE3 | LLINE4 | LLINE5 | LLINE6Limit line to save.
file_namestring-Filename to use when saving the FMT data.
:MMEMory:STORe:FMT LLINE1,low

Saves the signal to the default path ("mode name"/measdata) with the specified filename, appending ".csv" by default. If the file already exists, it is overwritten.

NameTypeValuesDescription
file_namestring-Filename to use for the saved signal data.
:MMEMory:STORe:SIGNal low

Saves the current measurement results with the specified filename suffixed with ".csv" by default to the default path ("/mode name"/measdata). Overwrites an existing file if necessary.

NameTypeValuesDescription
file_namestring-Filename to use when saving the measurement results.
:MMEMory:STORe:RESults data

Saves the current screen image to the default path ("/mode name"/screen) with the specified filename. The file may be saved as .jpg, .png, or .bmp depending on the suffix, or in the currently selected format if no suffix is added.

NameTypeValuesDescription
filestring-Filename for the saved screen image.

Sets the preset settings.

NameTypeValuesDescription
userenumDEF | USER1 | USER2 | USER3 | USER4 | USER5 | USER6Preset setting to select.
:MMEMory:USER:STORe USER1

Enables or disables the output of the tracking generator. Queries the on/off status of the tracking generator output.

NameTypeValuesDescription
boolenumOFF | ON | 0 | 1Enables or disables the output state.
enum - The query returns 0 or 1.
:OUTPut:EXTernal:STATe ON or :OUTPut:EXTernal:STATe 1
:OUTPut:EXTernal:STATe?

Sets the offset of the output amplitude of the tracking generator. The query returns the offset in scientific notation.

NameTypeValuesDescription
rel_amplreal-200 - 200Offset of the TG output amplitude.
real - The offset of the output amplitude of the tracking generator, returned in scientific notation.
:SOURce:CORRection:OFFSet 10
:SOURce:CORRection:OFFSet?

Sets the output amplitude of the TG. Queries the output amplitude of the TG.

NameTypeValuesDescription
amplreal-40 - 0Output amplitude to set for the tracking generator.
real - Returns the output amplitude in scientific notation.
:SOURce:EXTernal:POWer:LEVel:IMMediate:AMPLitude -10
:SOURce:EXTernal:POWer:LEVel:IMMediate:AMPLitude?

Sets whether to display the reference trace of normalization. Queries whether to display the reference trace of normalization.

NameTypeValuesDescription
boolbooleanOFF | ON | 0 | 1Enables or disables display of the reference trace of normalization.
integer - Returns 0 or 1 indicating whether the reference trace of normalization is displayed.
:SOURce:TRACe:REF:STATe ON or :SOURce:TRACe:REF:STATe 1
:SOURce:TRACe:REF:STATe?

:SYSTem:BEEPerset / query

Turns the beeper on or off. The query reports the on/off status of the beeper.

NameTypeValuesDescription
boolenumOFF | ON | 0 | 1Beeper state.
enum - The query returns 0 or 1.
SYSTem:BEEPer ON or :SYSTem:BEEPer 1
SYSTem:BEEPer?
:SYSTem:DATEset / query

Sets the instrument date, or queries the current date. The query returns the date in the format "YYYY,MM,DD".

NameTypeValuesDescription
yearstring2000 - 2099Year of the instrument date.
monthstring01 - 12Month of the instrument date.
daystring01 - 31Day of the instrument date.
string - Current date in the format "YYYY,MM,DD".
[?
:SYSTem:TIMEset / query

Sets the system time of the instrument. The query returns the current system time in the format HH,MM,SS.

NameTypeValuesDescription
hourstring00 - 23
minutestring00 - 59
secondstring00 - 59
string - Current system time in the format HH,MM,SS.
:SYSTem:TIME 15,10,30
:SYSTem:TIME?
:SYSTem:STIMEset / query

Sets or queries whether to display the system time. The query returns 0 or 1.

NameTypeValuesDescription
boolenumOFF | ON | 0 | 1Enables or disables display of the system time.
enum - Returns 0 or 1.
:SYSTem:STIME 1 or :SYSTem:STIME ON
:SYSTem:STIME?
:SYSTem:LANGuageset / query

Sets the system language. The query form is documented but no return format or description is given in the slice.

NameTypeValuesDescription
enumenum-
:SYSTem:PONset / query

Selects the setting type the instrument recalls at power-on. The query reports which setting type is recalled at power-on.

NameTypeValuesDescription
power_onenumDEFault | LATestSetting type the instrument recalls at power-on.
enum - Returns the current power-on recall setting.
:SYSTem:PSTatusset / query

Sets the power status and queries the power status.

NameTypeValuesDescription
statusenumDEFault | OPENPower status to set.
enum - Returns the present power status: DEFault means switch off, OPEN means switch on.
:SYSTem:PSTatus OFF or :SYSTem:PSTatus 0
:SYSTem:PSTatus?

Queries the version number of the SCPI used by the system.

string - Returns the SCPI version number used by the system.
:SYSTem:LOCKedset / query

Locks or unlocks the keypad. Queries whether the keypad is locked or not.

NameTypeValuesDescription
boolenumOFF | ON | 0 | 1Selects whether the keypad is locked or unlocked.
enum - The query returns 0 or 1.
:SYSTem:LOCKed 1 or :SYSTem:LOCKed ON
:SYSTem:LOCKed?
:SYSTem:GPIBset / query

Sets or queries the GPIB address.

NameTypeValuesDescription
adrinteger1 - 30
integer - The query returns an integer ranging from 1 to 30.
:SYSTem:GPIB 2
:SYSTem:GPIB?

Installs an option using option information and license information.

NameTypeValuesDescription
option infostring-Option information to install.
license infostring-License information associated with the option.

Queries whether an option is activated or not.

NameTypeValuesDescription
option nameenumBND | PA | P08 | P14 | P26 | B200 | RB200 | EMI | T08 | ADM | AWK | VSA | UBWSpecifies the option whose activation status is queried.
integer - Returns 0 if the option is not activated and 1 if it is activated.

:TRACe:SELectset / query

Sets the selected trace. Queries the selected trace.

NameTypeValuesDescription
traceenumTRACe1 | TRACe2 | TRACe3 | TRACe4 | TRACe5 | TRACe6Trace to select.
enum - Returns the selected trace.
:TRACe:SELect TRACe2
:TRACe:SELect?

Queries the display trace expressed in time in the Waterfall view when the display mode is Time.

string - Returns the display trace expressed in time for the Waterfall view.

Resets all the traces. Enables Trace 1 and sets the other traces to a blank state without affecting the trace type or detector type.

Queries the frequencies and amplitudes of the peaks in the peak table. This command only queries Trace 1.

block - Returns up to 20 frequency/amplitude pairs from the peak table, in the format frequency,amplitude,frequency,amplitude,...

Queries the number of peaks in the peak table.

integer - The number of peaks in the peak table, ranging from 0 to 20.
:TRACe[:DATA]set / query

Loads user data to the specified trace, or queries the log data of the specified trace. The trace is selected with a TRACE1 to TRACE6 enum value.

NameTypeValuesDescription
traceenumTRACE1 | TRACE2 | TRACE3 | TRACE4 | TRACE5 | TRACE6Specifies the trace to access.
comma_separated_ASCII_datastring-ASCII data values separated by commas and spaces for loading user data.
block - Returns the data of the specified trace.
:TRACe:DATA TRACE1, -1.390530e+01, -7.108871e+01, -7.089631e+01, -6.992984e+01, -

:TRACe<n>:TYPEset / query

Sets or queries the type of the specified trace.

NameTypeValuesDescription
ninteger1 - 6Specifies the trace number.
enumenumWRITe | AVERage | MAXHold | MINHoldSets the trace type.
enum - Returns the trace type as WRIT, AVER, MAXH, or MINH.
:TRACe1:TYPE MAXHold
:TRACe1:TYPE?

Enables or disables the display of the specified trace. Queries the setting state for the specified trace.

NameTypeValuesDescription
ninteger1 - 6Trace number.
statebooleanOFF | ON | 0 | 1Enables or disables trace display.
integer - Returns 1 if the trace display is enabled or 0 if it is disabled.
:TRACe1:DISPlay:STATe ON or :TRACe1:DISPlay:STATe 1

Enables or disables the update of the specified trace. The query form returns 1 or 0 to indicate the setting state.

NameTypeValuesDescription
ndiscrete1 - 6Specifies the trace number.
boolbooleanOFF | ON | 0 | 1Enables or disables trace updating.
boolean - Returns 1 if trace update is enabled and 0 if it is disabled.
:TRACe1:UPDate:STATe ON or :TRACe1:UPDate:STATe 1
:TRACe1:UPDate:STATe?

Sets the trigger source. Queries the trigger source.

NameTypeValuesDescription
typeenumIMMediate | EXTernal | VIDeo | POWer | FMTTrigger source selection.
enum - Returns the trigger source as IMM, EXT1, VID, POW, or FMT.
:TRIGger:SEQuence:SOURce EXTernal
:TRIGger:SEQuence:SOURce?

Sets the time that the analyzer will wait for the trigger to be initiated automatically. Queries the same auto-trigger wait time; the command is only valid when auto triggering is enabled.

NameTypeValuesDescription
timereal1 ms - 100 sTime to wait for the trigger to be initiated automatically.
real (s) - Returns the auto-trigger wait time in scientific notation.

Enables or disables the auto trigger function. Queries the setting status of the auto trigger function.

NameTypeValuesDescription
boolenumOFF | ON | 0 | 1Enables or disables the auto trigger function.

Sets the delay time for the IF power trigger and queries the configured delay time. This command is only valid when the IF power trigger function is enabled.

NameTypeValuesDescription
timereal1 ms - 100 sDelay time for the IF power trigger.
real (s) - Returns the delay time in scientific notation.
:TRIGger:SEQuence:IF:DELay 0.01
:TRIGger:SEQuence:IF:DELay?

Sets the delay state for the IF power trigger. Queries the delay state for the IF power trigger.

NameTypeValuesDescription
boolboolean-Enables or disables the delay function for the IF power trigger.
integer - Returns 1 when the delay function is enabled and 0 when it is disabled.
:TRIGger:SEQuence:IF:DELay:STATe ON or :TRIGger:SEQuence:IF:DELay:STATe 1

Sets the trigger level of the IF power trigger and queries the trigger level. This command is only valid when the IF power trigger function is enabled.

NameTypeValuesDescription
<time>real(-140+Level Offset) - (30+Level Offset)Trigger level of the IF power trigger.
real - Returns the trigger level of the IF power trigger in scientific notation.
:TRIGger:SEQuence:IF:LEVel 10
:TRIGger:SEQuence:IF:LEVel?

Sets the number of times for acquisition after each effective trigger is completed. Queries the number of acquisition times.

NameTypeValuesDescription
numberinteger1 - 10,000Number of acquisition times after each effective trigger.
integer - The query returns the number of acquisition times in integer.
:TRIGger:SEQuence:FMT:APTRigger 5
:TRIGger:SEQuence:FMT:APTRigger?

Sets the trigger criteria for FMT and queries the current criteria. This command is only valid when FMT is selected as the trigger source in RTSA working mode.

NameTypeValuesDescription
typeenumENTer | LEAVe | INSide | OUTSide | ELEave | LENTerTrigger criteria for FMT.
enum - The query returns the current trigger criteria for FMT, using abbreviated keywords.
:TRIGger:SEQuence:FMT:CRITeria ENTer

Sets or queries the delay time for FMT. The command is only valid when FMT is selected as the trigger source in RTSA working mode and the FMT trigger delay function is enabled; it is invalid when Inside or Outside criteria are selected.

NameTypeValuesDescription
timereal0 us - 500 msDelay time for FMT.
real (s) - Returns the delay time for FMT in scientific notation.
:TRIGger:SEQuence:FMT:DELay 0.1
:TRIGger:SEQuence:FMT:DELay?

Enables or disables the FMT trigger delay function. Queries the status of the FMT trigger delay function.

NameTypeValuesDescription
boolenumOFF | ON | 0 | 1Enables or disables the FMT trigger delay function.
enum - The query returns 1 or 0.
:TRIGger:SEQuence:FMT:DELay:STATe ON or :TRIGger:SEQuence:FMT:DELay:STATe 1
:TRIGger:SEQuence:FMT:DELay:STATe?

Sets the mask to be used for the current trigger. Queries the mask to be used for the current trigger.

NameTypeValuesDescription
typeenumUPPer | LOWer | BOTHMask type to use for the current trigger.
enum - Returns UPP, LOW, or BOTH.
:TRIGger:SEQuence:FMT:MASK UPPer
:TRIGger:SEQuence:FMT:MASK?

Sets the mask type that is currently viewed/edited, or queries the current mask type. This command is only valid when FMT is selected as the trigger source in RTSA working mode.

NameTypeValuesDescription
typeenumUPPer | LOWerMask type to view or edit.
enum - Returns the current mask type.
:TRIGger:SEQuence:FMT:MASK:EDIT UPPer
:TRIGger:SEQuence:FMT:MASK:EDIT?

Sets the X-axis type of FMT and queries the X-axis type of FMT. When enabled, the frequencies of the mask points are expressed as an offset from the center frequency.

NameTypeValuesDescription
boolbooleanOFF | ON | 0 | 1Enables or disables the coupling function.
integer - Returns 1 when enabled or 0 when disabled.

Sets the name of the mask. The query returns the current mask name.

NameTypeValuesDescription
ndiscrete1 - 2Selects the upper mask when set to 1 and the lower mask when set to 2.
stringstring-ASCII string used as the mask label; it can contain English letters, numbers, and some symbols.
string - Returns the current name of the mask.
:TRIGger:SEQuence:FMT:MASK1:NAME Rigol
:TRIGger:SEQuence:FMT:MASK1:NAME?

Creates a mask from a trace.

NameTypeValuesDescription
ninteger1 - 2Selects whether the upper mask (1) or lower mask (2) is being edited.
idenumTRACE1 | TRACE2 | TRACE3 | TRACE4 | TRACE5 | TRACE6Selects the trace used to build the mask.
:TRIGger:SEQuence:FMT:MASK1:BUILd TRACE1

Sets or queries the mask data points for the selected mask. The syntax accepts a frequency/amplitude pair list for setting, and a query form is documented without a return description.

NameTypeValuesDescription
ninteger1 - 2Selects which mask is being edited: upper mask when 1, lower mask when 2.
freqreal-Frequency value for each mask point.
amplreal-Amplitude value paired with each frequency point.
returns

Deletes the specified mask. <n> selects which mask is affected: 1 for the upper mask and 2 for the lower mask.

NameTypeValuesDescription
ndiscrete1 - 2Selects the mask to delete.

Clears the currently activated mask and creates a default mask.

NameTypeValuesDescription
ndiscrete1 - 2Selects which mask is edited: 1 for the upper mask, 2 for the lower mask.

Sets the mask frequency offset and queries the mask frequency offset.

NameTypeValuesDescription
ndiscrete1 - 2Selects which mask is being edited: 1 for upper mask, 2 for lower mask.
offsetreal-1 PHz - 1 PHzFrequency offset applied to the mask.
real (Hz) - Returns the mask frequency offset.
:TRIGger:SEQuence:FMT:MASK1:OFFSet:X 1 Hz
:TRIGger:SEQuence:FMT:MASK1:OFFSet:X?

Sets the mask amplitude offset. Queries the mask amplitude offset.

NameTypeValuesDescription
nenum1 | 2Selects the upper mask when 1 or the lower mask when 2.
offsetreal-Amplitude offset value.
real (dBm) - Returns the mask amplitude offset.
:TRIGger:SEQuence:FMT:MASK1:OFFSet:Y 1 dBm
:TRIGger:SEQuence:FMT:MASK1:OFFSet:Y?

Sets the trigger holdoff time. Queries the trigger holdoff time.

NameTypeValuesDescription
timereal100 us - 500 ms
TRIGger:SEQuence:HOLDoff 0.1
TRIGger:SEQuence:HOLDoff?

Turns on or off the trigger holdoff function. Queries the status of the trigger holdoff function.

NameTypeValuesDescription
boolbooleanOFF | ON | 0 | 1Enables or disables the trigger holdoff function.
:TRIGger:SEQuence:HOLDoff:STATe ON or :TRIGger:SEQuence:HOLDoff:STATe 1

Sets the polarity of the video trigger. Queries the polarity of the video trigger.

NameTypeValuesDescription
typeenumPOSitive | NEGativeSets the polarity of the video trigger.
enum - The query returns POS or NEG.
:TRIGger:SEQuence:VIDeo:SLOPe POSitive
:TRIGger:SEQuence:VIDeo:SLOPe?

Sets the delay time for the video trigger. Queries the delay time for the video trigger.

NameTypeValuesDescription
timereal0 us - 500 msDelay time for the video trigger.
real (s) - Returns the delay time for the video trigger in scientific notation.
:TRIGger:SEQuence:VIDeo:DELay 0.1

Enables or disables the video trigger delay function. Queries the setting state of the video trigger delay function.

NameTypeValuesDescription
boolenumOFF | ON | 0 | 1Enables or disables the video trigger delay function.

Sets the trigger level of the video trigger. Queries return the trigger level in scientific notation.

NameTypeValuesDescription
amplreal-140 - 30Trigger level of the video trigger.
real - The trigger level in scientific notation.
:TRIGger:SEQuence:VIDeo:LEVel 10
:TRIGger:SEQuence:VIDeo:LEVel?

Sets the delay time for the external trigger and queries the delay time for the external trigger. This command is only valid when the external trigger delay function is enabled.

NameTypeValuesDescription
noptdiscrete1 - 1Sequence index; may be omitted.
timereal0 us - 500 msDelay time for the external trigger.
real (s) - The query returns the delay time for the external trigger in scientific notation.
:TRIGger:SEQuence:EXTernal:DELay 0.1

Enables or disables the external trigger delay function. Queries the setting state of the external trigger delay function.

NameTypeValuesDescription
noptdiscrete1 - 1Sequence index; the parameter <n> can be omitted.
boolbooleanOFF | ON | 0 | 1Enables or disables the external trigger delay function.
:TRIGger:SEQuence:EXTernal:DELay:STATe ON or :TRIGger:SEQuence:EXTernal:DELay:STATe 1
The following query returns 1.
:TRIGger:SEQuence:EXTernal:DELay:STATe?

Sets the trigger edge for the external trigger. Queries the trigger edge for the external trigger.

NameTypeValuesDescription
noptdiscrete1 - 1Trigger sequence index; the parameter can be omitted.
typeenumPOSitive | NEGativeSelects the external trigger edge as rising or falling.
enum - Returns the current external trigger edge as POS or NEG.
:TRIGger:SEQuence:EXTernal:SLOPe POSitive

Enables or disables external trigger output. Queries whether the external trigger output is enabled or not.

NameTypeValuesDescription
noptdiscrete1 - 1Trigger sequence index; the parameter can be omitted.
boolenumOFF | ON | 0 | 1Enables or disables the external trigger output.
integer - Returns 0 when the external trigger output is disabled and 1 when it is enabled.
:TRIGger:SEQuence:OUTPut 1 or :TRIGger:SEQuence:OUTPut ON
:TRIGger:SEQuence:OUTPut?

Sets or queries the polarity of the external trigger output. The <n> channel/sequence index can be omitted.

NameTypeValuesDescription
noptdiscrete1 - 1Sequence index; may be omitted.
typeenumPOSitive | NEGativePolarity of the external trigger output.
enum - Returns the polarity of the external trigger output.

:UNIT:POWerset / query

Sets the unit of the Y axis, or queries the current Y-axis unit. The query returns one of DBM, DBMV, DBUV, V, or W.

NameTypeValuesDescription
unitenumDBM | DBMV | DBUV | V | WUnit to use for the Y axis.
enum - Current Y-axis unit.
:UNIT:POWer W
:UNIT:POWer?

:LAN:DHCPset / query

Sets or queries the default gateway. The gateway is entered as an ASCII string.

:LAN:AUToipset / query

Turns on or off the Auto IP configuration mode, or queries the current Auto IP configuration mode status.

NameTypeValuesDescription
boolenum1 | ON | 0 | OFFEnables or disables Auto IP configuration mode.
enum - Returns the current Auto IP configuration mode status as 1 or 0.
:LAN:AUToip OFF
:LAN:AUToip?
:LAN:GATewayset / query

Sets or queries the default gateway address. The address must be in nnn.nnn.nnn.nnn format, and the IP configuration mode should be Auto IP or Static IP mode.

NameTypeValuesDescription
<string>string-Gateway IP address in nnn.nnn.nnn.nnn format.
string - Returns the current gateway address as a string.
:LAN:GATeway 192.168.1.1
:LAN:GATeway?

Queries the address of the DHCP server.

string - Returns the address of the DHCP server as a string.
:LAN:MANualset / query

Sets or queries the LAN manual configuration state.

NameTypeValuesDescription
boolboolean-Enables or disables manual LAN configuration.
:LAN:IPADdressset / query

Sets or queries the IP address of the instrument.

NameTypeValuesDescription
stringstring-ASCII string in the format nnn.nnn.nnn.nnn, with the first octet 0 to 223 except 127 and the remaining three octets 0 to 255.
:LAN:SMASkset / query

Sets or queries the subnet mask. The subnet mask string must be in nnn.nnn.nnn.nnn format with each nnn from 0 to 255, and the instrument should be in static IP mode with DHCP and auto IP disabled.

NameTypeValuesDescription
stringstring-Subnet mask in nnn.nnn.nnn.nnn format.
string - Returns the current subnet mask in strings.
:LAN:SMASk 255.255.255.0
:LAN:SMASk?

Queries the current network configuration status.

enum - The current network status.

Queries the VISA address of the instrument.

NameTypeValuesDescription
typeopt--
:LAN:MDNSset / query

Enables or disables mDNS, or queries the mDNS status.

NameTypeValuesDescription
boolboolean1 | ON | 0 | OFFEnables or disables mDNS.
integer - Returns 1 or 0 indicating the mDNS status.
:LAN:MDNS ON
:LAN:MDNS?
:LAN:HOST:NAMEset / query

Sets or queries the LAN host name. The query returns the VISA address in strings.

NameTypeValuesDescription
namestring-
string - The query returns the VISA address in strings.
:LAN:DESCriptionset / query

Sets or queries the description.

NameTypeValuesDescription
namestring-The label can contain English letters and numbers, as well as some symbols.
string - The query returns the description in ASCII strings.
:LAN:APPLyset / query

Applies the network configuration. After configuring all LAN-related parameters with the :LAN commands, send this command to make the LAN configuration take effect.