I SO9001: 2008 standard and the I SO14001: 2004 standard. Other international standard conformance certif ications are in progress. Contact Us I f you have any problem or requirement when using our products or this manual, please contact RIGOL E-mail: service@rigol.com Website: www.rigol.com RSA3000 Programming Guide www.valuetronics.com...
Content Conventions in this Manual: The RSA3000 series spectrum analyzer includes the following models. Unless otherwise specif ied, this manual takes RSA3045 as an example to illustrate the usage of each command of RSA3000 series spectrum analyzer. Model...
Chapter 1 Programming Overview RIGOL Chapter 1 Programming Overview This chapter introduces how to set up remote communication between the spectrum analyzer and the PC, the remote control methods, the syntax, symbols, parameters, and abbreviation rules of the SCPI commands.
I nstall Ultra Sigma ( PC) softw are. You can download Ultra Sigma from the off icial website of RIGOL (www.rigol.com) and install the software according to the installation wizard. Connect the analyzer to the PC and configure the interface parameters for the instrument RSA3000 supports three communication interfaces: USB and LAN.
Send SCPI commands via the PC softw are You can use the PC software to send commands to control RSA3000 remotely. Ultra Sigma is RIGOL recommended. You can download the software from RIGOL off icial website (www.rigol.com). RSA3000 Programming Guide www.valuetronics.com...
RIGOL Chapter 1 Programming Overview SCPI Command Overview SCPI (Standard Commands for Programmable I nstruments) is a standardized instrument programming language that is built upon the existing standard I EEE 488.1 and I EEE 488.2 and conforms to various standards, such as the floating point operation rule in I EEE 754 standard, I SO 646 7-bit coded character set for information interchange (equivalent to ASCI I programming).
Chapter 1 Programming Overview RIGOL Parameter Type The command parameters introduced in this manual include 6 types: Bool, Keyword, I nteger, Consecutive Real Number, Discrete, and ASCI I String. Bool The parameter can be set to OFF (0) or ON (1).
Chapter 2 Command System RIGOL Chapter 2 Command System This chapter introduces the commands of the RSA3000 series spectrum analyzer. Contents in this chapter: :CALCulate Commands :CALibration Commands :CONFigure Commands :COUPle Commands :DI SPlay Commands ...
RIGOL Chapter 2 Command System :CALCulate:BANDw idth| BWI Dth:NDB Syntax :CALCulate:BANDwidth| BWI Dth: NDB < rel_ampl> :CALCulate:BANDwidth| BWI Dth: NDB? Description Sets the N value in N dB BW measurement. Queries the N value in N dB BW measurement. Parameter...
Chapter 2 Command System RIGOL :CALCulate:BANDw idth| BWI Dth:RLEFt? Syntax :CALCulate:BANDwidth| BWI Dth:RLEFt? Description Queries the frequency value of the frequency point that is located at the left side of the current marker with N dB fall or rise in its peak amplitude.
RIGOL Chapter 2 Command System Return Format The query returns 0 or 1. Example The following command enables the N dB BW measurement function. :CALCulate:BANDwidth:STATe ON or : CALCulate:BANDwidth:STATe 1 :CALCulate:BWI Dth: STATe ON or :CALCulate:BWI Dth: STATe 1 The following query returns 1.
Chapter 2 Command System RIGOL :CALCulate:LLI Ne< n> :AMPLitude:CMODe:RELative Syntax :CALCulate:LLI Ne< n> :AMPLitude:CMODe:RELative OFF| ON| 0| 1 :CALCulate:LLI Ne< n> :AMPLitude:CMODe:RELative? Description Enables or disables the coupling functions between the selected limit line data points and the reference level.
RIGOL Chapter 2 Command System :CALCulate:LLI Ne< n> :FAI L? Syntax :CALCulate:LLI Ne< n> : FAI L? Description Queries the measurement results of the selected limit line and its associated trace. Parameter Name Type Range Default < n> Discrete 1| 2| 3| 4| 5| 6 ——...
RIGOL Chapter 2 Command System :CALCulate:LLI Ne< n> :TRACe Syntax :CALCulate:LLI Ne< n> : TRACe 1| 2| 3| 4| 5| 6 :CALCulate:LLI Ne< n> : TRACe? Description Sets the trace to be tested against the current limit line. Queries the trace to be tested against the current limit line.
Chapter 2 Command System RIGOL :CALCulate:LLI Ne2: TYPE UPPer The following query returns UPP . :CALCulate:LLI Ne2: TYPE? :CALCulate:MARKer:AOFF Syntax :CALCulate:MARKer:AOFF Description Turns off all the enabled markers. :CALCulate:MARKer:COUPle[ :STATe] Syntax :CALCulate:MARKer:COUPle[ :STATe] OFF| ON| 0| 1 :CALCulate:MARKer:COUPle[ :STATe] ? Description Enables or disables the couple marker function.
RIGOL Chapter 2 Command System Parameter Name Type Range Default < rel_ampl> Consecutive Real Number 0 dB to 100 dB 6 dB Return Format The query returns the peak offset in scientific notation. Example The following command sets the peak offset to 12 dB.
Chapter 2 Command System RIGOL Remarks PARameter: indicates parameter. I f "parameter" is selected under search mode, the system will search for the peak of the specif ied parameter on the trace. MAXimum: indicates maximum. I f "maximum" is selected under search mode, the system will search for the maximum value on the trace.
RIGOL Chapter 2 Command System :CALCulate:MARKer:PEAK:TABLe:READout :TRACe:MATH:PEAK:THReshold Syntax :CALCulate:MARKer:PEAK: TABLe:READout ALL| GTDLine| LTDLine :CALCulate:MARKer:PEAK: TABLe:READout? :TRACe:MATH:PEAK: THReshold NORMal| DLMore| DLLess :TRACe:MATH:PEAK: THReshold? Description Sets the peak criteria that the displayed peak must meet. Queries the peak criteria that the displayed peak must meet.
Chapter 2 Command System RIGOL Parameter Name Type Range Default —— Bool OFF| ON| 0| 1 OFF| 0 Return Format The query returns 0 or 1. Example The following command enables the peak table. :CALCulate:MARKer:PEAK: TABLe:STATe ON or :CALCulate:MARKer:PEAK:TABLe:STATe 1 :TRACe:MATH:PEAK: TABLe:STATe ON or :TRACe: MATH:PEAK: TABLe:STATe 1 The following query returns 1.
RIGOL Chapter 2 Command System Parameter Name Type Range Default —— Bool OFF| ON| 0| 1 ON| 1 Return Format The query returns 0 or 1. Example The following command enables the peak threshold function. :CALCulate:MARKer:PEAK:THReshold:STATe ON or :CALCulate:MARKer:PEAK: THReshold: STATe 1 The following query returns 1.
Chapter 2 Command System RIGOL Remarks When the signal track is enabled, the instrument will execute a peak search after each sweep, and set the frequency value at the current peak to the center frequency to keep the signal always displayed at the center of the screen.
RIGOL Chapter 2 Command System :CALCulate:MARKer< n> :FCOunt:GATetime Syntax :CALCulate:MARKer< n> : FCOunt: GATetime < time> :CALCulate:MARKer< n> : FCOunt: GATetime? Description Sets the gate time for Marker n. The unit is s. Queries the gate time for Marker n.
RIGOL Chapter 2 Command System :CALCulate:MARKer< n> :FUNCtion Syntax :CALCulate:MARKer< n> : FUNCtion NOI Se| BPOWer| BDENsity| OFF :CALCulate:MARKer< n> : FUNCtion? Description Selects the special measurement type for the specified marker. Queries the special measurement type of the specified marker.
Chapter 2 Command System RIGOL Example The following command sets the left edge frequency of the signal involved in the calculation for the Marker 1 band function to 2 MHz. :CALCulate:MARKer1: FUNCtion:BAND:LEFT 2000000 The following query returns 2.000000000e+ 06. :CALCulate:MARKer1: FUNCtion:BAND:LEFT? :CALCulate:MARKer<...
RIGOL Chapter 2 Command System :CALCulate:MARKer< n> :FUNCtion:BAND:SPAN Syntax :CALCulate:MARKer< n> : FUNCtion:BAND: SPAN < freq> :CALCulate:MARKer< n> : FUNCtion:BAND: SPAN? Description Sets the bandwidth or the time span of the signal involved in the calculation for the band function.
Chapter 2 Command System RIGOL Return Format The query returns 1 or 0. Example The following command enables the band span auto function of Marker 1. :CALCulate:MARKer1: FUNCtion:BAND:SPAN:AUTO ON or :CALCulate:MARKer1:FUNCtion:BAND: SPAN:AUTO 1 The following query returns 1. :CALCulate:MARKer1: FUNCtion:BAND:SPAN:AUTO? :CALCulate:MARKer<...
RIGOL Chapter 2 Command System Parameter Name Type Range Default < n> Discrete 1| 2| 3| 4| 5| 6| 7| 8 —— Remarks When no peak is found, a prompt message "No peak found" is displayed on the screen. Example The following command performs one left peak search, and marks with Marker 2.
Chapter 2 Command System RIGOL :CALCulate:MARKer< n> :MAXimum:RI GHt Syntax :CALCulate:MARKer< n> : MAXimum:RI GHt Description Searches for and marks the nearest peak which is located at the right side of the current peak and meets the peak search condition.
RIGOL Chapter 2 Command System :CALCulate:MARKer< n> :MODE Syntax :CALCulate:MARKer< n> : MODE POSition| DELTa| FI Xed| OFF :CALCulate:MARKer< n> : MODE? Description Sets the type of the specif ied marker. Queries the type of the specif ied marker. Parameter...
Chapter 2 Command System RIGOL :CALCulate:MARKer< n> :REFerence Syntax :CALCulate:MARKer< n> :REFerence < integer> :CALCulate:MARKer< n> :REFerence? Description Sets the reference marker for the specif ied marker. Queries the reference marker for the specif ied marker. Parameter Name Type Range Default <...
RIGOL Chapter 2 Command System :CALCulate:MARKer< n> [ :SET] :DELTa:CENTer Syntax :CALCulate:MARKer< n> [ : SET] :DELTa:CENTer Description Sets the frequency difference of the specified Delta marker to the center frequency of the analyzer. Parameter Name Type Range Default < n>...
Chapter 2 Command System RIGOL :CALCulate:MARKer< n> [ :SET] :RLEVel Syntax :CALCulate:MARKer< n> [ : SET] :RLEVel Description Sets the amplitude of the specified marker to the reference level of the analyzer. Parameter Name Type Range Default < n> Discrete 1| 2| 3| 4| 5| 6| 7| 8 ——...
RIGOL Chapter 2 Command System :CALCulate:MARKer< n> [ :SET] :STEP Syntax :CALCulate:MARKer< n> [ : SET] :STEP Description Sets the frequency of the specified marker to the center frequency step of the analyzer. Parameter Name Type Range Default < n>...
Chapter 2 Command System RIGOL :CALCulate:MARKer< n> :STATe Syntax :CALCulate:MARKer< n> : STATe OFF| ON| 0| 1 :CALCulate:MARKer< n> : STATe? Description Enables or disables the specif ied marker. Queries the status for the specif ied marker. Parameter Name Type...
RIGOL Chapter 2 Command System Return Format The query returns any integer from 1 to 6. I f the marker trace is set to "Auto", the query command returns a trace number on which the marker is placed. Example The following command sets the marker trace of Marker 1 to Trace 2.
Chapter 2 Command System RIGOL :CALCulate:MARKer< n> :X Syntax :CALCulate:MARKer< n> : X < param> :CALCulate:MARKer< n> : X? Description Sets the X-axis value of the specified marker. I ts default unit is Hz. Queries the X-axis value of the specified marker.
RIGOL Chapter 2 Command System Remarks FREQuency: indicates frequency. I t is the default readout mode in non-zero span mode. TI ME: indicates time. I t is the default readout mode in zero span mode. I TI Me: indicates the reciprocal of time. I t is available only in zero span mode and a Delta marker is selected.
Chapter 2 Command System RIGOL :CALCulate:MARKer< n> :Y Syntax :CALCulate:MARKer< n> :Y < amp> :CALCulate:MARKer< n> :Y? Description Sets the Y-axis value of the specified fixed marker. Queries the Y-axis value of the specified marker, and its default unit is dBm.
RIGOL Chapter 2 Command System Example The following command sets the trace number of the trace where the marker1 stays in to 100. :CALCulate:MARKer1: Z:POSition 100 The following query returns 100. :CALCulate:MARKer1: Z:POSition? :CALCulate:MATH Syntax :CALCulate:MATH < trace_destination> ,< function_math> ,< trace1_operation> ,< trace2_operation> ,< rel_offset> ,< rel_refer ence>...
Chapter 2 Command System RIGOL :CALCulate:MATH TRACE1,PDI Fference,TRACE4,TRACE5,, The following query returns PDI Fference. :CALCulate:MATH? TRACE1 :CALCulate:NTData[ :STATe] Syntax :CALCulate:NTData[ :STATe] OFF| ON| 0| 1 :CALCulate:NTData[ :STATe] ? Description Enables or disables the normalize function. Queries the status of normalization.
:CONFigure: SPECtrogram :CONFigure: TOI * :CONFigure: TPOWer* Remarks: The commands with * are only available for the RSA3000 series that has been installed with advanced measurement kit option. :CONFigure? Syntax :CONFigure? Description Queries the current measurement function.
RIGOL Chapter 2 Command System :CONFigure:ACPow er Syntax :CONFigure:ACPower Description Sets the analyzer to be in the ACP measurement state. Remarks This command is only available for GPSA mode. Running this command will discontinue the current measurement and restore the specif ied measurement of the instrument to the default factory state.
Chapter 2 Command System RIGOL :CONFigure:DSPEctrogram Syntax :CONFigure: DSPEctrogram Description Sets the analyzer to be in the Density Spectrogram measurement state. Remarks This command is only available for RTSA mode. Running this command will discontinue the current measurement and restore the specif ied measurement of the instrument to the default factory state.
RIGOL Chapter 2 Command System :CONFigure:MCHPow er Syntax :CONFigure:MCHPower Description Sets the analyzer to be in the MCHP measurement state. Remarks This command is only available for GPSA mode. Running this command will discontinue the current measurement and restore the specif ied measurement of the instrument to the default factory state.
Chapter 2 Command System RIGOL :CONFigure:PSGRam Syntax :CONFigure:PSGRam Description Sets the analyzer to be in the PvT Spectrogram measurement state. Remarks This command is only available for RTSA mode. Running this command will discontinue the current measurement and restore the specif ied measurement of the instrument to the default factory state.
RIGOL Chapter 2 Command System :CONFigure:SPECtrogram Syntax :CONFigure: SPECtrogram Description Sets the analyzer to be in the Spectrogram measurement state. Remarks This command is only available for RTSA mode. Running this command will discontinue the current measurement and restore the specif ied measurement of the instrument to the default factory state.
Chapter 2 Command System RIGOL :COUPle Commands Command List: :COUPle :COUPle Syntax :COUPle ALL Description Sets all the manual/ auto settings in the current measurement mode to "Auto". RSA3000 Programming Guide 2-47 www.valuetronics.com...
Chapter 2 Command System RIGOL :DI SPlay:BACKlight Syntax :DI SPlay:BACKlight < integer> :DI SPlay:BACKlight? Description Sets the brightness of the backlight of LCD. Queries the brightness of the backlight of LCD. Parameter Name Type Range Default < integer> I nteger...
RIGOL Chapter 2 Command System :DI SPlay:GRATicule[ :STATe] Syntax :DI SPlay:GRATicule[ : STATe] OFF| ON| 0| 1 :DI SPlay:GRATicule[ : STATe] ? Description Enables or disables the display of the graticule. Queries the display of the graticule. Parameter Name Type...
Chapter 2 Command System RIGOL :DI SPlay:PVTime:WI NDow :TRACe:X[ :SCALe] :COUPle Syntax :DI SPlay:PVTime: WI NDow: TRACe:X[ : SCALe] :COUPle OFF| ON| 0| 1 :DI SPlay:PVTime: WI NDow: TRACe:X[ : SCALe] :COUPle? Description Enables or disables the auto scale function for the horizontal axis in the PvT view.
RIGOL Chapter 2 Command System The following query returns 4.000000000e-07. :DI SPlay:PVTime: WI NDow: TRACe:X:SCALe:PDI Vision? :DI SPlay:PVTime:WI NDow :TRACe:X[ :SCALe] :RLEVel Syntax :DI SPlay:PVTime: WI NDow: TRACe:X[ : SCALe] :RLEVel < real> :DI SPlay:PVTime: WI NDow: TRACe:X[ : SCALe] :RLEVel? Description Sets the reference time for the horizontal axis in the PvT view.
RIGOL Chapter 2 Command System Return Format The query returns the reference level for the vertical axis in scientific notation. Example The following command sets the reference level for the vertical axis in the PvT view to 100 dBm. :DI SPlay:PVTime: WI NDow: TRACe:Y: SCALe:RLEVel 100 The following query returns 1.000000000e+ 02.
Chapter 2 Command System RIGOL :DI SPlay:VI EW:DENSity:CPALettes Syntax :DI SPlay:VI EW:DENSity:CPALettes COOL| WARM| RADar| FI RE| FROSt :DI SPlay:VI EW:DENSity:CPALettes? Description Sets the color palette of Density. Queries the color palette of Density. Parameter Name Type Range Default ——...
RIGOL Chapter 2 Command System :DI SPlay:VI EW:DENSity:LDHue Syntax :DI SPlay:VI EW:DENSity: LDHue < real> :DI SPlay:VI EW:DENSity: LDHue? Description Sets the lowest density hue. Queries the lowest density hue. Parameter Name Type Range Default < real> Consecutive Real Number 0 to 99.9...
Chapter 2 Command System RIGOL :DI SPlay:VI EW:DENSity:PERSistence:I NFinite Syntax :DI SPlay:VI EW:DENSity:PERSistence:I NFinite OFF| ON| 0| 1 :DI SPlay:VI EW:DENSity:PERSistence:I NFinite? Description Enables or disables the inf inite mode of the persistence time. Queries the status of the inf inite mode of the persistence time.
RIGOL Chapter 2 Command System Example The following commands sets the current view to Spectrogram. :DI SPlay:VI EW:SELect SPECtrogram The following query returns SPEC. :DI SPlay:VI EW:SELect? :DI SPlay:VI EW:SPECtrogram:AADJust Syntax :DI SPlay:VI EW:SPECtrogram:AADJust Description Auto adjusts the reference hue position and bottom hue position based on the highest amplitude value and the lowest amplitude value found in the spectrogram, respectively.
Chapter 2 Command System RIGOL :DI SPlay:VI EW:SPECtrogram:HUE Syntax :DI SPlay:VI EW:SPECtrogram:HUE < real> :DI SPlay:VI EW:SPECtrogram:HUE? Description Sets the reference hue. Queries the reference hue. Parameter Name Type Range Default < real> Consecutive Real Number 0 to 359.9 Remarks The reference hue indicates the hue value at the top of the color bar in the spectrogram.
RIGOL Chapter 2 Command System The following query returns 146. :DI SPlay:VI EW:SPECtrogram:POSition? :DI SPlay:VI EW:SPECtrogram:REFerence Syntax :DI SPlay:VI EW:SPECtrogram:REFerence < integer> :DI SPlay:VI EW:SPECtrogram:REFerence? Description Sets the position of the reference hue displayed in the graticule. Queries the position of the reference hue displayed in the graticule.
Chapter 2 Command System RIGOL Example The following command enables coupling the marker to the trace. :DI SPlay:VI EW:SPECtrogram:TRACe:COUPle ON or : DI SPlay:VI EW:SPECtrogram: TRACe:COUPle 1 The following query returns 1. :DI SPlay:VI EW:SPECtrogram:TRACe:COUPle? :DI SPlay:VI EW:SPECtrogram:TRACe:SELection Syntax :DI SPlay:VI EW:SPECtrogram:TRACe: SELection TI ME| TNUMber...
RIGOL Chapter 2 Command System :DI SPlay:WI NDow :SELect Syntax :DI SPlay:WI NDow:SELect SPECtrum| PVT :DI SPlay:WI NDow:SELect? Description Selects a window in the current view. Queries the currently selected window type. Parameter Name Type Range Default —— Keyword SPECtrum| PVT ——...
Chapter 2 Command System RIGOL :DI SPlay:WI NDow :TRACe:Y:DLI Ne:STATe Syntax :DI SPlay:WI NDow:TRACe: Y:DLI Ne: STATe OFF| ON| 0| 1 :DI SPlay:WI NDow:TRACe: Y:DLI Ne: STATe? Description Turns on or off the display line. Queries the status of the display line.
RIGOL Chapter 2 Command System :DI SPlay:WI NDow :TRACe:Y[ :SCALe] :NRPosition Syntax :DI SPlay:WI NDow:TRACe:Y[ :SCALe] :NRPosition < integer> :DI SPlay:WI NDow:TRACe:Y[ :SCALe] :NRPosition? Description Sets the reference position of normalization. Queries the reference position of normalization. Parameter Name Type...
:FETCh: SANalyzer< n> ? :FETCh: TOI ntercept? :FETCh: TOI ntercept:I P3? :FETCh:TPOWer? Remarks: The :FETCh commands are only available for the RSA3000 series that has been installed with advanced measurement kit (AMK) option. RSA3000 Programming Guide 2-67 www.valuetronics.com...
RIGOL Chapter 2 Command System :FETCh:ACPow er? Syntax :FETCh:ACPower? Description Queries the results of adjacent channel power measurement. Remarks This command is only valid when the adjacent channel power measurement in GPSA mode is enabled. The power unit of the return value is consistent with the current Y-axis unit.
Chapter 2 Command System RIGOL :FETCh:ACPow er:MAI N? Syntax :FETCh:ACPower:MAI N? Description Queries the main channel power of the adjacent channel power measurement. Remarks This command is only valid when the adjacent channel power measurement in GPSA mode is enabled.
RIGOL Chapter 2 Command System :FETCh:CNRatio? Syntax :FETCh:CNRatio? Description Queries the results of C/ N ratio measurement. Remarks This command is only valid when the C/ N ratio measurement in GPSA mode is enabled. The power unit of the return value is consistent with the current Y-axis unit.
Chapter 2 Command System RIGOL :FETCh:CNRatio:CNRatio? Syntax :FETCh:CNRatio:CNRatio? Description Queries the results of C/ N ratio measurement. Remarks This command is only valid when the C/ N ratio measurement in GPSA mode is enabled. This command will select data from the latest measurement results, and then transmit the data to the output buffer.
RIGOL Chapter 2 Command System :FETCh:EBWidth? Syntax :FETCh:EBWidth? Description Queries the result of the emission bandwidth measurement. Remarks This command is only valid when the emission bandwidth measurement in GPSA mode is enabled. This command will select data from the latest measurement results, and then transmit the data to the output buffer.
Chapter 2 Command System RIGOL :FETCh:HARMonics:AMPLitude? < n> Syntax :FETCh: HARMonics:AMPLitude? < n> Description Queries the amplitude of the specified harmonic. Parameter Name Type Range Default < n> I nteger 1 to 10 —— Remarks This command is only valid when the harmonic distortion measurement in GPSA mode is enabled.
RIGOL Chapter 2 Command System :FETCh:HARMonics:FREQuency:ALL? Syntax :FETCh: HARMonics: FREQuency:ALL? Description Queries the frequencies of the first 10 harmonics. The first harmonic is the fundamental waveform. Remarks This command is only valid when the harmonic distortion measurement in GPSA mode is enabled.
Chapter 2 Command System RIGOL :FETCh:HARMonics:FUNDamental? Syntax :FETCh: HARMonics: FUNDamental? Description Queries the frequency of the fundamental waveform. Remarks This command is only valid when the harmonic distortion measurement in GPSA mode is enabled. This command has the same function as...
RIGOL Chapter 2 Command System :FETCh:OBWidth:OBWidth? Syntax :FETCh:OBWidth:OBWidth? Description Queries the occupied bandwidth. Remarks This command is only valid when the occupied bandwidth measurement in GPSA mode is enabled. This command will select data from the latest measurement results, and then transmit the data to the output buffer.
Chapter 2 Command System RIGOL :FETCh:SANalyzer< n> ? Syntax :FETCh: SANalyzer< n> ? Description Queries the measurement results or trace data in the cache area. Parameter Name Type Range Default < n> Discrete 1| 2| 3| 4| 5| 6 ——...
RIGOL Chapter 2 Command System :FETCh:TOI ntercept:I P3? Syntax :FETCh: TOI ntercept:I P3? Description The query returns the minor value of the intercepts of the Third Order Lower and Third Order Upper. Remarks This command is only valid when the TOI measurement in GPSA mode is enabled.
Chapter 2 Command System RIGOL :FORMat Commands Command List: :FORMat:BORDer :FORMat[ :TRACe] [ : DATA] :FORMat:BORDer Syntax :FORMat:BORDer NORMal| SWAPped :FORMat:BORDer? Description Selects the binary data byte order for data transmission. Queries the binary data byte order for data transmission.
RIGOL Chapter 2 Command System :FORMat[ :TRACe] [ :DATA] Syntax :FORMat[ :TRACe] [ : DATA] ASCii| I NTeger,32| REAL,32| REAL,64 :FORMat[ :TRACe] [ : DATA] ? Description Sets the input/ output format of the trace data. Queries the input/ output format of the trace data.
Chapter 2 Command System RIGOL I EEE 488.2 Common Commands I EEE 488.2 common commands are used to operate or query the status registers. For the structure of the status register, refer to ": STATus Commands". Command List: * CLS ...
RIGOL Chapter 2 Command System * CLS Syntax * CLS Description Clears all the event registers and status byte registers. * ESE Syntax * ESE < value> * ESE? Description Sets the enable register for the standard event status register.
Queries the I D string of the instrument. Return Format The query returns the I D string in the following format: Rigol Technologies,< model> ,< serial number> ,XX.XX.XX < model> : instrument model < serial number> : serial number of the instrument XX.XX.XX: software version of the instrument...
RIGOL Chapter 2 Command System * OPC Syntax * OPC * OPC? Description 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.
Chapter 2 Command System RIGOL * SAV Syntax * SAV < integer> Description Saves the current instrument state to the selected register. Parameter Name Type Range Default < integer> I nteger 1 to 16 —— Example The following command saves the current instrument state to Register 1.
RIGOL Chapter 2 Command System * STB? Syntax * STB? Description Queries the event register for the status byte register. Remarks Bit 0 and Bit 1 in the status byte register are not in use, and are regarded as 0. The query returns a decimal value that corresponds to the binary values ranging from 00000000 (0 in decimal) to 11111111 (255 in decimal) and of which Bit 0 and Bit 1 are 0.
:I NI Tiate:CONTinuous :I NI Tiate[ :I MMediate] Remarks: The commands with * are only available for the RSA3000 series that has been installed with advanced measurement kit option. :I NI Tiate:CONTinuous Syntax :I NI Tiate:CONTinuous OFF| ON| 0| 1...
RIGOL Chapter 2 Command System :I NSTrument Commands Command List: :I NSTrument:COUPle:FREQuency:CENTer :I NSTrument:DEFault :I NSTrument:NSELect :I NSTrument[ :SELect] :I NSTrument:COUPle:FREQuency:CENTer Syntax :I NSTrument:COUPle:FREQuency:CENTer ALL| NONE :I NSTrument:COUPle:FREQuency:CENTer? Description Turns on or off the global center frequency of the instrument.
Chapter 2 Command System RIGOL :I NSTrument:NSELect :I NSTrument[ :SELect] Syntax :I NSTrument:NSELect 1| 2 :I NSTrument:NSELect? :I NSTrument[ :SELect] SA| RTSA :I NSTrument[ :SELect] ? Description Selects the working mode of the instrument. Queries the working mode of the instrument.
Chapter 2 Command System RIGOL :MMEMory:LOAD:FMT Syntax :MMEMory: LOAD: FMT < label> ,< file_name> Description Loads the edited FMT f ile (.csv). Parameter Name Type Range Default —— < label> Keyword UPPer| LOWer —— —— < file_name> ASCI I String Remarks This operation fails if the specified file does not exist.
RIGOL Chapter 2 Command System :MMEMory:LOAD:STATe Syntax :MMEMory: LOAD: STATe < file_name> Description I mports the specified state file (.sta). Parameter Name Type Range Default < file_name> ASCI I String —— —— Remarks This operation fails if the specified file does not exist.
Chapter 2 Command System RIGOL :MMEMory:LOAD:TRACe:DATA Syntax :MMEMory: LOAD: TRACe: DATA < label> ,< file_name> Description I mports the specif ied measurement data f ile (.csv). Parameter Name Type Range Default < label> Keyword TRACE1| TRACE2| TRACE3| TRACE4| TRACE5| TRACE6 ——...
RIGOL Chapter 2 Command System :MMEMory:STORe:LI Mit Syntax :MMEMory: STORe: LI Mit < label> ,< file_name> Description Saves the currently edited limit line with a specified filename suffixed with ".csv" by default (you do not have to add the suffix manually) to a default path (/ "mode name"/ limit).
Chapter 2 Command System RIGOL :MMEMory:STORe:PTABle Syntax :MMEMory: STORe:PTABle < file_name> Description Saves the peak table with a specified filename suffixed with ".csv" by default (you do not have to add the suffix manually) to the default path (/ "mode name"/ measdata).
RIGOL Chapter 2 Command System Parameter Name Type Range Default < file_name> ASCI I String —— —— Remarks I f the specified file already exists, overwrite it. I f a suff ix (.jpg/ .png/ .bmp) following the f ilename exists, you can save the current screen image with a different format based on its different suff ix.
Chapter 2 Command System RIGOL Remarks I f the specified file already exists, overwrite it. Example The following command saves the current instrument state and Trace 1 with the f ilename "mystate.trs" to the folder (/ gpsa/ tracestate). :MMEMory: STORe:TRACe TRACE1,mystate...
:READ: SANalyzer< n> ? :READ: TOI ntercept? :READ: TOI ntercept:I P3? :READ: TPOWer? Remarks: The :READ commands are only available for the RSA3000 series that has been installed with advanced measurement kit (AMK) option. RSA3000 Programming Guide 2-99 www.valuetronics.com...
RIGOL Chapter 2 Command System :READ:ACPow er? Syntax :READ:ACPower? Description Executes one adjacent channel power measurement and returns the measurement results. Remarks The power unit of the returned value is consistent with the current Y-axis unit. This command will select data from the latest measurement results, and then transmit the data to the output buffer.
Chapter 2 Command System RIGOL :READ:ACPow er:UPPer? Syntax :READ:ACPower: UPPer? Description Executes one adjacent channel power measurement and returns the upper channel power. Remarks The power unit of the return value is consistent with the current Y-axis unit. This command will select data from the latest measurement results, and then transmit the data to the output buffer.
RIGOL Chapter 2 Command System :READ:CNRatio:CNRatio? Syntax :READ:CNRatio:CNRatio? Description Executes one C/ N ratio measurement and returns the C/ N ratio. Remarks This command will select data from the latest measurement results, and then transmit the data to the output buffer.
Chapter 2 Command System RIGOL :READ:HARMonics:AMPLitude:ALL? Syntax :READ:HARMonics:AMPLitude:ALL? Description Executes one harmonic distortion measurement and returns the amplitudes of the first 10 harmonics. Remarks I f the number of harmonics under measurement is less than 10, the harmonics that are not measured do not have return values.
RIGOL Chapter 2 Command System :READ:HARMonics[ :DI STortion] ? Syntax :READ:HARMonics[ :DI STortion] ? Description Executes one harmonic distortion measurement and returns the percentage of the total harmonic distortion. Remarks This command will select data from the latest measurement results, and then transmit the data to the output buffer.
Chapter 2 Command System RIGOL This command will select data from the latest measurement results, and then transmit the data to the output buffer. This command is only available for GPSA mode. Return Format The query returns the frequency of the specified harmonic in scientific notation. The unit is Hz. For example, 4.550000000e+ 07...
RIGOL Chapter 2 Command System :READ:OBWidth:OBWidth? Syntax :READ:OBWidth:OBWidth? Description Executes one occupied bandwidth measurement and returns the occupied bandwidth. Remarks This command will select data from the latest measurement results, and then transmit the data to the output buffer. This command is only available for GPSA mode.
Chapter 2 Command System RIGOL :READ:SANalyzer< n> ? Syntax :READ:SANalyzer< n> ? Description Queries the measurement results or trace data in the buffer. Parameter Name Type Range Default < n> Discrete 1| 2| 3| 4| 5| 6 —— Remarks This command will select data from the latest measurement results, and then transmit the data to the output buffer.
RIGOL Chapter 2 Command System :READ:TOI ntercept:I P3? Syntax :READ: TOI ntercept:I P3? Description Executes one TOI measurement and returns the value of the intercept of the Third Order Lower or the Third Order Upper, whichever is smaller. Remarks This command will select data from the latest measurement results, and then transmit the data to the output buffer.
Page 129
[ :SENSe] : TPOWer:LLI Mit* [ :SENSe] : TPOWer:MODE* [ :SENSe] : TPOWer:RLI Mit* Remarks: The commands with * are only available for the RSA3000 series that has been installed with advanced measurement kit (AMK) option. RSA3000 Programming Guide 2-111 www.valuetronics.com...
RIGOL Chapter 2 Command System [ :SENSe] :ACPow er:AVERage:COUNt Syntax [ :SENSe] :ACPower:AVERage:COUNt < integer> [ :SENSe] :ACPower:AVERage:COUNt? Description Sets the average count of the ACP measurement. Queries the average count of the ACP measurement. Parameter Name Type Range Default <...
Chapter 2 Command System RIGOL [ :SENSe] :ACPow er:AVERage:TCONtrol Syntax [ :SENSe] :ACPower:AVERage:TCONtrol EXPonential| REPeat [ :SENSe] :ACPower:AVERage:TCONtrol? Description Selects the average mode of the adjacent channel power measurement. Queries the average mode of the adjacent channel power measurement. Parameter...
RIGOL Chapter 2 Command System Example The following command sets the bandwidth of the adjacent channel to 1 MHz. :SENSe:ACPower:BANDwidth:ACHannel 1000000 The following query returns 1.000000000e+ 06. :SENSe:ACPower:BANDwidth:ACHannel? [ :SENSe] :ACPow er:BANDw idth:I NTegration Syntax [ :SENSe] :ACPower:BANDwidth:I NTegration < freq>...
Chapter 2 Command System RIGOL Remarks This command is only valid when the adjacent channel power measurement in GPSA mode is enabled. Return Format The query returns the channel spacing in scientific notation. I ts unit is Hz. Example The following command sets the channel spacing to 1 MHz.
RIGOL Chapter 2 Command System Parameter Name Type Range Default —— Bool OFF| ON| 0| 1 ON| 1 Remarks This command is only available for Normal, Density, Spectrogram, and Density Spectrogram in RTSA mode. Return Format The query returns 0 or 1.
Chapter 2 Command System RIGOL [ :SENSe] :ACQuisition:TI ME:PVTime:AUTO Syntax [ :SENSe] :ACQuisition: TI ME:PVTime:AUTO OFF| ON| 0| 1 [ :SENSe] :ACQuisition: TI ME:PVTime:AUTO? Description Enables or disables the auto acquisition time for producing a trace. Queries the status of the auto acquisition time for producing a trace.
RIGOL Chapter 2 Command System The following query returns 100. :SENSe:AVERage:COUNt? :TRACe:AVERage:COUNt? [ :SENSe] :AVERage:COUNt:CURRent? :TRACe:AVERage:COUNt:CURRent? Syntax [ :SENSe] :AVERage:COUNt: CURRent? :TRACe:AVERage:COUNt:CURRent? Description Queries the current average times of the average trace. Return Format The query returns the current trace average count in integer.
Chapter 2 Command System RIGOL [ :SENSe] :AVERage:TYPE:AUTO Syntax [ :SENSe] :AVERage:TYPE:AUTO OFF| ON| 0| 1 [ :SENSe] :AVERage:TYPE:AUTO? Description Enables or disables the auto state for the average type of the swept SA analysis measurement. Queries the on/ off auto state for the average type of the swept SA analysis measurement.
Chapter 2 Command System RIGOL This command is only available for GPSA mode. Return Format The query returns 0 or 1. Example The following command enables the auto setting mode of RBW. :SENSe:BANDwidth:RESolution:AUTO ON or :SENSe:BANDwidth:RESolution:AUTO 1 :SENSe:BWI Dth:RESolution:AUTO ON or :SENSe:BWI Dth:RESolution:AUTO 1 The following query returns 1.
RIGOL Chapter 2 Command System Return Format The query returns 0 or 1. Example The following command enables the auto setting mode of VBW. :SENSe:BANDwidth:VI Deo: AUTO ON or : SENSe:BANDwidth:VI Deo:AUTO 1 :SENSe:BWI Dth:VI Deo:AUTO ON or : SENSe:BWI Dth:VI Deo:AUTO 1 The following query returns 1.
RIGOL Chapter 2 Command System The following query returns 100 :SENSe:CNRatio:AVERage:COUNt? [ :SENSe] :CNRatio:AVERage[ :STATe] Syntax [ :SENSe] :CNRatio:AVERage[ :STATe] OFF| ON| 0| 1 [ :SENSe] :CNRatio:AVERage[ :STATe] ? Description Enables or disables the average measurement function of the C/ N ratio measurement.
Chapter 2 Command System RIGOL This command is only valid when the C/ N ratio measurement in GPSA mode is enabled. Return Format The query returns EXP or REP Example The following command sets repeat average to the average mode.
RIGOL Chapter 2 Command System Parameter [ 1] Name Type Range Default < freq> Consecutive Real Number 33 Hz to 1.5 GHz 2 MHz [ 1] Note I f option RSA3000-BW1 is installed, the available range is from 3 Hz to 1.5 GHz.
RIGOL Chapter 2 Command System [ :SENSe] :DEMod Syntax [ :SENSe] : DEMod AM| FM| OFF [ :SENSe] : DEMod? Description Sets the demodulation type or disables the demodulation. Queries the demodulation type. Parameter Name Type Range Default —— Keyword...
Chapter 2 Command System RIGOL Example The following command enables the auto setting mode of signal gain. :SENSe: DEMod: GAI N:AUTO ON or : SENSe: DEMod: GAI N:AUTO 1 The following query returns 1. :SENSe: DEMod: GAI N:AUTO? [ :SENSe] :DEMod:GAI N:I NCRement Syntax [ :SENSe] : DEMod: GAI N:I NCRement <...
RIGOL Chapter 2 Command System Return Format The query returns 0 or 1. Example The following command enables the demodulation function. :SENSe: DEMod: STATe 1 or :SENSe: DEMod: STATe ON The following query returns 1. :SENSe: DEMod: STATe? [ :SENSe] :DETector:TRACe:PVTime...
Chapter 2 Command System RIGOL [ :SENSe] :EBWidth:AVERage[ :STATe] Syntax [ :SENSe] :EBWidth:AVERage[ :STATe] OFF| ON| 0| 1 [ :SENSe] :EBWidth:AVERage[ :STATe] ? Description Enables or disables the average measurement function of the emission bandwidth measurement. Queries the status of the average measurement function of the emission bandwidth measurement.
RIGOL Chapter 2 Command System Example The following command sets the average mode to Repeat. :SENSe:EBWidth:AVERage:TCONtrol REPeat The following query returns REP . :SENSe:EBWidth:AVERage:TCONtrol? [ :SENSe] :EBWidth:FREQuency:SPAN Syntax [ :SENSe] :EBWidth:FREQuency:SPAN < freq> [ :SENSe] :EBWidth:FREQuency:SPAN? Description Sets the span of the emission bandwidth measurement.
Chapter 2 Command System RIGOL When Max Hold is enabled, each measurement result is compared with the previous result, and then display whichever is the maximum. When Max Hold is disabled, the current measurement result is displayed. Max Hold and average measurement are mutually exclusive. When Max Hold is enabled, the average measurement will be automatically disabled.
RIGOL Chapter 2 Command System [ :SENSe] :FREQuency:CENTer Syntax [ :SENSe] :FREQuency:CENTer < freq> [ :SENSe] :FREQuency:CENTer? Description Sets the center frequency. Queries the center frequency. Parameter Name Type Range Default [ 1] 0 Hz to Fmax (zero span) GPSA mode...
Chapter 2 Command System RIGOL Example The following command sets the span/ RBW ratio to 100. :SENSe: FREQuency: SPAN:BANDwidth:RESolution:RATio 100 The following query returns 100. :SENSe: FREQuency: SPAN:BANDwidth:RESolution:RATio? [ :SENSe] :FREQuency:SPAN:BANDw idth[ :RESolution] :RATio:AUTO Syntax [ :SENSe] :FREQuency: SPAN:BANDwidth[ :RESolution] :RATio:AUTO OFF| ON| 0| 1...
RIGOL Chapter 2 Command System Parameter Name Type Range Default < integer> I nteger 1 to 1,000 Remarks This command is only valid when the harmonic distortion measurement in GPSA mode is enabled. Return Format The query returns the average count in integer.
Chapter 2 Command System RIGOL [ :SENSe] :HDI St:AVERage:TCONtrol Syntax [ :SENSe] :HDI St:AVERage:TCONtrol EXPonential| REPeat [ :SENSe] :HDI St:AVERage:TCONtrol? Description Sets the average mode of the harmonic distortion measurement. Queries the average mode of the harmonic distortion measurement. Parameter...
RIGOL Chapter 2 Command System Example The following command sets the number of harmonics to 5. :SENSe:HDI St:NUMBers 5 The following query returns 5. :SENSe:HDI St:NUMBers? [ :SENSe] :HDI St:TI ME Syntax [ :SENSe] :HDI St:TI ME < time> [ :SENSe] :HDI St:TI ME? Description Sets the sweep time of the harmonic distortion measurement.
Chapter 2 Command System RIGOL Return Format The query returns the average count in integer. Example The following command sets the average count to 100. :SENSe:MCHPower:AVERage:COUNt 100 The following query returns 100. :SENSe:MCHPower:AVERage:COUNt? [ :SENSe] :MCHPow er:AVERage[ :STATe] Syntax [ :SENSe] :MCHPower:AVERage[ :STATe] OFF| ON| 0| 1...
RIGOL Chapter 2 Command System Remarks EXPonential: indicates the exponential average. REPeat: indicates the repeat average. When "EXPonential" is selected, the result is the exponential average of the measurement results obtained in the past N times (N is specified in [ :SENSe] : MCHPower:AVERage:COUNt).
Chapter 2 Command System RIGOL Description Enables or disables the average measurement function of the occupied bandwidth measurement. Queries the status of the average measurement function of the occupied bandwidth measurement. Parameter Name Type Range Default —— Bool OFF| ON| 0| 1...
Chapter 2 Command System RIGOL Example The following command enables the Max Hold. :SENSe:OBWidth: MAXHold: STATe ON or : SENSe:OBWidth:MAXHold:STATe 1 The following query returns 1. :SENSe:OBWidth:MAXHold: STATe? [ :SENSe] :OBWidth:PERCent Syntax [ :SENSe] :OBWidth:PERCent < real> [ :SENSe] :OBWidth:PERCent? Description Sets the percentage the signal power takes up in the whole span power (power ratio).
RIGOL Chapter 2 Command System Example The following command sets the attenuation to 20 dB. :SENSe:POWer:RF:ATTenuation 20 The following query returns 20. :SENSe:POWer:RF:ATTenuation? [ :SENSe] :POWer[ :RF] :ATTenuation:AUTO Syntax [ :SENSe] :POWer[ :RF] :ATTenuation:AUTO OFF| ON| 0| 1 [ :SENSe] :POWer[ :RF] :ATTenuation:AUTO? Description Enables or disables the auto setting mode of the input attenuation.
Chapter 2 Command System RIGOL [ :SENSe] :POWer[ :RF] :MI Xer:RANGe[ :UPPer] Syntax [ :SENSe] :POWer[ :RF] :MI Xer:RANGe[ :UPPer] < ampl> [ :SENSe] :POWer[ :RF] :MI Xer:RANGe[ :UPPer] ? Description Sets the maximum power of the input mixer. Queries the maximum power of the input mixer.
RIGOL Chapter 2 Command System [ :SENSe] :SI GCapture:2FSK:AMPUp Syntax [ :SENSe] :SI GCapture: 2FSK:AMPUp < ample> [ :SENSe] :SI GCapture: 2FSK:AMPUp? Description Sets the upper limit of the amplitude of 2FSK signal. Queries the upper limit of the amplitude of 2FSK signal.
Chapter 2 Command System RIGOL [ :SENSe] :SI GCapture:2FSK:PEAKAmp? Syntax [ :SENSe] :SI GCapture: 2FSK:PEAKAmp? < peaknum> Description Queries the amplitude of the nth peak in the SSC measurement results. Parameter Name Type Range Default < peaknum> I nteger 1 to 6 Remarks This command is only available for RTSA mode and valid when the SSC function is enabled.
RIGOL Chapter 2 Command System [ :SENSe] :SI GCapture:2FSK:PF? Syntax [ :SENSe] :SI GCapture: 2FSK:PF? Description Queries the test result of the Pass/ Fail function. Remarks This command is only available for RTSA mode and valid when the SSC function is enabled.
Chapter 2 Command System RIGOL [ :SENSe] :SI GCapture:2FSK:RESet Syntax [ :SENSe] :SI GCapture: 2FSK:RESet Description Performs the reset operation, deletes the original signal, and restarts to capture the signal. Remarks This command is only available for RTSA mode and valid when the SSC function is enabled.
RIGOL Chapter 2 Command System [ :SENSe] :SWEep:POI Nts Syntax [ :SENSe] :SWEep:POI Nts < integer> [ :SENSe] :SWEep:POI Nts? Description Sets the number of sweep points. Queries the number of sweep points. Parameter Name Type Range Default < integer>...
Chapter 2 Command System RIGOL [ :SENSe] :SWEep:TI ME:AUTO Syntax [ :SENSe] :SWEep:TI ME:AUTO OFF| ON| 0| 1 [ :SENSe] :SWEep:TI ME:AUTO? Description Enables or disables auto sweep time. Queries the status of the auto sweep time. Parameter Name Type...
RIGOL Chapter 2 Command System [ :SENSe] :TOI :AVERage:COUNt Syntax [ :SENSe] : TOI :AVERage:COUNt < integer> [ :SENSe] : TOI :AVERage:COUNt? Description Sets the average count of the TOI measurement. Queries the average count of the TOI measurement. Parameter...
Chapter 2 Command System RIGOL [ :SENSe] :TOI :AVERage:TCONtrol Syntax [ :SENSe] : TOI :AVERage:TCONtrol EXPonential| REPeat [ :SENSe] : TOI :AVERage:TCONtrol? Description Selects the average mode of the TOI measurement. Queries the average mode of the TOI measurement. Parameter...
RIGOL Chapter 2 Command System Example The following command sets the span to 1 MHz. :SENSe: TOI : FREQuency: SPAN 1000000 The following query returns 1.000000000e+ 06. :SENSe: TOI : FREQuency: SPAN? [ :SENSe] :TPOWer:AVERage:COUNt Syntax [ :SENSe] : TPOWer:AVERage:COUNt < integer>...
Chapter 2 Command System RIGOL Return Format The query returns 0 or 1. Example The following command enables the average measurement. :SENSe: TPOWer:AVERage:STATe ON or : SENSe:TPOWer:AVERage:STATe 1 The following query returns 1. :SENSe: TPOWer:AVERage:STATe? [ :SENSe] :TPOWer:AVERage:TCONtrol Syntax [ :SENSe] : TPOWer:AVERage:TCONtrol EXPonential| REPeat...
RIGOL Chapter 2 Command System Parameter Name Type Range Default μ μs < time> Consecutive Real Number s to (current value of stop line) Remarks This command is only valid when the T-power measurement in GPSA mode is enabled. Return Format The query returns the start line in scientific notation.
Chapter 2 Command System RIGOL [ :SENSe] :TPOWer:RLI Mit Syntax [ :SENSe] : TPOWer:RLI Mit < time> [ :SENSe] : TPOWer:RLI Mit? Description Sets the stop line for the T-power measurement. Queries the stop line for the T-power measurement. Parameter...
Chapter 2 Command System RIGOL Return Format The query returns the output amplitude in scientific notation. Example The following command sets the output amplitude to -10 dB. :SOURce:EXTernal:POWer: LEVel:I MMediate:AMPLitude -10 The following query returns -1.000000000e+ 01. :SOURce:EXTernal:POWer: LEVel:I MMediate:AMPLitude?
RIGOL Chapter 2 Command System :STATus Commands The :STATus commands and I EEE 488.2 Common Commands are used to operate or query the status registers. The structure of the status register is shown in the following f igure. The STATus commands are used to set and query the questionable status register and operation status register.
Chapter 2 Command System RIGOL :STATus:OPERation:CONDition? Syntax :STATus:OPERation:CONDition? Description Queries the condition register of the Operation Status Register. Return Format The query returns the condition register in integer. For example, 24. :STATus:OPERation:ENABle Syntax :STATus:OPERation:ENABle < integer> :STATus:OPERation:ENABle? Description Sets the enable register of the Operation Status Register.
RIGOL Chapter 2 Command System Example The following command sets the enable register of the Operation Status Register to 100. :STATus:OPERation:ENABle 100 The following query returns 100. :STATus:OPERation:ENABle? :STATus:OPERation[ :EVENt] ? Syntax :STATus:OPERation[ :EVENt] ? Description Queries the event register of the Operation Status Register.
Chapter 2 Command System RIGOL Parameter Name Type Range Default " " < integer> I nteger Refer to Remarks Remarks The following table lists the bit definitions for the questionable status register. The bit 0 to bit 8, bit 13 and bit 14 are reserved;...
Chapter 2 Command System RIGOL :SYSTem:BEEPer:STATe Syntax :SYSTem:BEEPer: STATe OFF| ON| 0| 1 :SYSTem:BEEPer: STATe? Description Turns on or off the beeper. Queries the status of the beeper. Parameter Name Type Range Default —— Bool OFF| ON| 0| 1 OFF| 0 Return Format The query returns 0 or 1.
RIGOL Chapter 2 Command System Return Format The query returns 0 or 1. Example The following command enables the auto I P setting mode. :SYSTem:COMMunicate:LAN: SELF:AUToip:STATe ON or :SYSTem:COMMunicate: LAN:SELF:AUToip:STATe 1 The following query returns 1. :SYSTem:COMMunicate:LAN: SELF:AUToip:STATe? :SYSTem:COMMunicate:LAN[ :SELF] :DHCP:STATe...
Page 195
Chapter 2 Command System RIGOL Remarks The format of < ip_address> is "nnn.nnn.nnn.nnn". The range for the first segment (nnn) of the address is from 1 to 223 (except 127); and the range for the other three segments is from 0 to 255.
RIGOL Chapter 2 Command System :SYSTem:COMMunicate:LAN[ :SELF] :I P:DNSBack Syntax :SYSTem:COMMunicate: LAN[ :SELF] : I P:DNSBack < ip_address> :SYSTem:COMMunicate: LAN[ :SELF] : I P:DNSBack? Description Sets the backup address for the DNS. Queries the backup address for the DNS. Parameter...
Chapter 2 Command System RIGOL Example The following command sets the preferred DNS address to "172.16.2.2". :SYSTem:COMMunicate:LAN: SELF: I P:DNSPreferred 172.16.2.2 :SYSTem:COMMunicate:LAN: SELF: I P:DNSServer 172.16.2.2 The following query returns 172.16.2.2. :SYSTem:COMMunicate:LAN: SELF: I P:DNSPreferredr? :SYSTem:COMMunicate:LAN: SELF: I P:DNSServer? :SYSTem:COMMunicate:LAN[ :SELF] :I P:GATew ay Syntax :SYSTem:COMMunicate:LAN[ :SELF] : I P: GATeway <...
RIGOL Chapter 2 Command System Remarks The format of < ip_address> is "nnn.nnn.nnn.nnn". The range for the first segment (nnn) is from 0 to 255. This command is only valid in manual I P setting mode. Return Format The query returns the current subnet mask in the format of "nnn.nnn.nnn.nnn".
Chapter 2 Command System RIGOL :SYSTem:COMMunicate:LAN[ :SELF] :MDNS:STATe Syntax :SYSTem:COMMunicate:LAN[ :SELF] : MDNS:STATe OFF| ON| 0| 1 :SYSTem:COMMunicate:LAN[ :SELF] : MDNS:STATe? Description Enables or disables the state of the network information sending. Queries the on/ off status of the network information sending.
RIGOL Chapter 2 Command System Main Board: 00.01.00 Keyboard:00.01.00 CPU: 00.01.00 SPU: 00.01.02 WPU: 00.01.00 BOOT:00.01.00 OS:00.01.00 Firmware:00.01.00 Note: When you use RSA3045-TG/ RSA3030-TG, the query also returns information about "TG Board". :SYSTem:DATE Syntax :SYSTem: DATE < year> ,< month> ,< day>...
Chapter 2 Command System RIGOL Return Format The query returns 0 or 1. Example The following command sets the power switch on the front panel is turned off. :SYSTem:FSWitch: STATe OFF or :SYSTem: FSWitch:STATe 0 The following query returns 0.
RIGOL Chapter 2 Command System Example The following command installs the option RSA3000-PA. :SYSTem:LKEY RSA3000-PA@8AD12B8EBC5DF492D1D4289B7CBA5B6150BF6F5D752D645C36D74530B05F39B49C461B2 3A50D6C94A34E06782AC4380070B0D1A86BA84E02768391FFD70C2103 :SYSTem:OPTion:STATe? Syntax :SYSTem:OPTion: STATe? < option name> Description Queries whether an option is activated or not. Parameter Name Type Range Default < option name>...
Chapter 2 Command System RIGOL :SYSTem:PRESet Syntax :SYSTem:PRESet Description Recalls the system's preset settings, and recovers the system to the state specified by :SYSTem:PRESet:TYPE command. :SYSTem:PRESet:SAVE Syntax :SYSTem:PRESet: SAVE USER1| USER2| USER3| USER4| USER5| USER6 Description Saves the specif ied user setting.
RIGOL Chapter 2 Command System :SYSTem:PRESet:USER:SAVE Syntax :SYSTem:PRESet: USER: SAVE Description Saves the current user setting. Remarks I f the current preset type is "FACTory", save the current user setting to User1. I f the current preset type is "User1 through User6", save the current user setting to the specif ied user.
Chapter 2 Command System RIGOL Parameter Name Type Range Default —— Keyword OFF| SYSTem| OPTion| LI Cense Remarks OFF: turns off the system information display. SYSTem: displays the system information. OPTion: displays the option information. LI Cense: displays the registration information.
Page 207
Chapter 2 Command System RIGOL Explanation Use the : FORMat[ :TRACe] [ :DATA] command to set the format of the user data. < comma_separated_ASCI I _data> : [ 1] Data block . Select this parameter when the data format is ASCii. The two neighboring data points are separated by a comma (1 byte) and a space (1 byte) and each point is expressed in scientif ic notation;...
RIGOL Chapter 2 Command System [ 2] I n the two examples here, 801 points are transmitted and the queries return 801 points. However, due to the limited space, the succeeding data is omitted here. The return values in the above examples are acquired when the trace stops sweeping.
Chapter 2 Command System RIGOL :TRACe:MATH:CONSt Syntax :TRACe:MATH:CONSt < integer> :TRACe:MATH:CONSt? Description Sets the log offset in the trace math operation formula. Queries the log offset in the trace math operation formula. Parameter Name Type Range Default < integer> Consecutive Real Number...
RIGOL Chapter 2 Command System :TRACe:MATH:REFerence Syntax :TRACe:MATH:REFerence < integer> :TRACe:MATH:REFerence? Description Sets the log reference in the trace math operation formula. Queries the log reference in the trace math operation formula. Parameter Name Type Range Default < integer> Consecutive Real Number...
Chapter 2 Command System RIGOL :TRACe:MATH:TYPE Syntax :TRACe:MATH: TYPE A+ B| A-B| A+ CONST| A-CONST| A-B+ REF :TRACe:MATH:TYPE? Description Sets the operation type of the trace. Queries the operation type of the trace. Paramter Name Type Range Default —— Keyword...
RIGOL Chapter 2 Command System :TRACe< n> :DI SPlay:STATe Syntax :TRACe< n> :DI SPlay[ :STATe] OFF| ON| 0| 1 :TRACe< n> :DI SPlay[ :STATe] ? Description Enables or disables the display of the specified trace. Queries the status for the specified trace.
Chapter 2 Command System RIGOL Return Format The query returns WRI T, AVER, MAXH, or MI NH. Example The following command sets the type of Trace 1 to Max Hold. :TRACe1:MODE MAXHold :TRACe1: TYPE MAXHold The following query returns MAXH.
Chapter 2 Command System RIGOL :TRI Gger[ :SEQuence] :ATRigger Syntax :TRI Gger[ :SEQuence] :ATRigger < time> :TRI Gger[ :SEQuence] :ATRigger? Description Sets the time that the analyzer will wait for the trigger to be initiated automatically. Queries the time that the analyzer will wait for the trigger to be initiated automatically.
RIGOL Chapter 2 Command System :TRI Gger[ :SEQuence] :EXTernal< n> :DELay Syntax :TRI Gger[ :SEQuence] :EXTernal< n> : DELay < time> :TRI Gger[ :SEQuence] :EXTernal< n> : DELay? Description Sets the delay time for the external trigger. Queries the delay time for the external trigger.
Chapter 2 Command System RIGOL :TRI Gger:SEQuence:EXTernal1:DELay:STATe ON or : TRI Gger: SEQuence:EXTernal1:DELay: STATe 1 The following query returns 1. :TRI Gger:SEQuence:EXTernal1:DELay:STATe? :TRI Gger[ :SEQuence] :EXTernal< n> :SLOPe Syntax :TRI Gger:SEQuence:EXTernal< n> :SLOPe POSitive| NEGative :TRI Gger:SEQuence:EXTernal< n> : SLOPe? Description Sets the trigger edge for the external trigger.
RIGOL Chapter 2 Command System "Outside", the maximum value of the parameter < number> is 1. I n the Spectrogram measurement mode, the maximum value of the parameter < number> is 10,000. I n the PvT measurement mode, the maximum value of the parameter <...
Chapter 2 Command System RIGOL :TRI Gger[ :SEQuence] :FMT:DELay Syntax :TRI Gger[ :SEQuence] :FMT: DELay < time> :TRI Gger[ :SEQuence] :FMT: DELay? Description Sets the delay time for FMT. Queries the delay time for FMT. Parameter Name Type Range Default μ...
RIGOL Chapter 2 Command System :TRI Gger[ :SEQuence] :FMT:MASK Syntax :TRI Gger[ :SEQuence] :FMT: MASK UPPer| LOWer| BOTH :TRI Gger[ :SEQuence] :FMT: MASK? Description Sets the mask to be used for the current trigger. Queries the mask to be used for the current trigger.
Chapter 2 Command System RIGOL :TRI Gger[ :SEQuence] :FMT:MASK:RELative:AMPLitude Syntax :TRI Gger[ :SEQuence] :FMT: MASK:RELative:AMPLitude ON| OFF| 1| 0 :TRI Gger[ :SEQuence] :FMT: MASK:RELative:AMPLitude? Description Sets whether the amplitudes of the mask points are coupled to the reference level of the instrument.
RIGOL Chapter 2 Command System ON| 1: enables the coupling function. That is, when "Relative" is selected under X Axis Type , the frequency of the current mask point is the difference between the point and the current center frequency.
Chapter 2 Command System RIGOL Parameter Name Type Range Default < n> Discrete 1| 2 —— < freq> Consecutive Real Number 0 Hz to 4.5 GHz < ampl> Consecutive Real Number -1,000 dBm to 1,000 dBm Remarks When < n> is set to 1, it indicates that the upper mask is being edited; when it is set to 2, it indicates that the lower mask is being edited.
RIGOL Chapter 2 Command System the lower mask is being edited. This command is only valid when you select FMT to be the trigger source in RTSA working mode. :TRI Gger[ :SEQuence] :HOLDoff Syntax :TRI Gger[ :SEQuence] :HOLDoff < time>...
RIGOL Chapter 2 Command System Return Format The query returns the delay time for video trigger in scientif ic notation. The unit is s. Example The following command sets the delay time for the video trigger to 100 ms. :TRI Gger:SEQuence:VI Deo: DELay 0.1 The following query returns 1.000000e-01.
Chapter 2 Command System RIGOL Remarks This command is only valid when the following conditions are met: in GPSA mode; selecting the video trigger. Return Format The query returns the trigger level in scientific notation. Example The following command sets the trigger level of the video trigger to 10 dBm.
RIGOL Chapter 2 Command System :TRI Gger2:MODE Syntax :TRI Gger2: MODE I N| OUT| 0| 1 :TRI Gger2: MODE? Description Sets the interface type of External Trigger 2. Queries the interface type of External Trigger 2. Parameter Name Type Range Default ——...
Chapter 2 Command System RIGOL :UNI T Command Command List: :UNI T:POWer :UNI T:POWer Syntax :UNI T:POWer DBM| DBMV| DBUV| V| W :UNI T:POWer? Description Sets the unit of the Y axis. Queries the unit of the Y axis.
Chapter 3 Programming Examples RIGOL Chapter 3 Programming Examples This chapter lists some programming examples to illustrate how to use commands to realize the common functions of the spectrum analyzer in the development environments such as Visual C+ + 6.0, Visual Basic 6.0, and LabVI EW 2010.
RIGOL Chapter 3 Programming Examples Programming I nstructions This section introduces the problems that might occur during the programming process as well as their solutions. I f these problems occur, please resolve them according to the corresponding instructions. When you build a working environment via the network, it is recommended that you build a pure local area network.
Chapter 3 Programming Examples RIGOL Visual C+ + 6.0 Programming Example Enter the Visual C+ + 6.0 programming environment, and perform the following procedures. Create a MFC project based on a dialog box and name it "DemoForRSA" in this example.
Page 234
RIGOL Chapter 3 Programming Examples By now, VI SA library has been added. Add the Text, Edit, and Button controls, as shown in the f igure below. Add the control variables. View ClassWizard Click , and then click the...
Page 235
Chapter 3 Programming Examples RIGOL / / Change the address's data style from CString to char* SendAddr = strAddr.GetBuffer(strAddr.GetLength()); strcpy(SendAddr,strAddr); strAddr.ReleaseBuffer(); / / Change the command's data style from CString to char* SendBuf = strContent.GetBuffer(strContent.GetLength()); strcpy(SendBuf,strContent); strContent.ReleaseBuffer(); / / Open a VI SA resource status = viOpenDefaultRM(&defaultRM);...
Page 236
RIGOL Chapter 3 Programming Examples / / Open the instrument status = viOpen(defaultRM, SendAddr, VI _NULL, VI _NULL, &instr); / / Read from the instrument status = viRead(instr, RecBuf, MAX_REC_SI ZE, &retCount); / / Close the system status = viClose(instr);...
Page 237
Chapter 3 Programming Examples RIGOL return status; bool CDemoForRSADlg::I nstrWriteEx(CString strAddr, CString strContent) / / Write operation with exception handling ViStatus status; ViUI nt32 retCount; char * SendBuf = NULL; bool bWriteOK = true; / / Change the address's data style from CString to char* SendBuf = strContent.GetBuffer(strContent.GetLength());...
Page 238
RIGOL Chapter 3 Programming Examples unsigned char RecBuf[ MAX_REC_SI ZE] ; bool bReadOK = true; / / Change the address's data style from CString to char* SendAddr = strAddr.GetBuffer(strAddr.GetLength()); strcpy(SendAddr,strAddr); strAddr.ReleaseBuffer(); memset(RecBuf,0,MAX_REC_SI ZE); / / Read from the instrument status = viRead(m_SessI nstr, RecBuf, MAX_REC_SI ZE, &retCount);...
Page 239
Chapter 3 Programming Examples RIGOL bool bFindRSA = false; status = viOpenDefaultRM(&defaultRM); if (status < VI _SUCCESS) / / Error I nitializing VI SA...exiting MessageBox("No VI SA instrument was opened ! "); return ; memset(instrDesc,0,1000); / / Find resource status = viFindRsrc(defaultRM,expr,f indList, retcnt, instrDesc);...
Page 240
RIGOL Chapter 3 Programming Examples void CDemoForRSADlg: :OnBtRead() / / Read operation / / TODO: Add your control notif ication handler code here UpdateData(true); I nstrRead(m_strI nstrAddr,&m_strResult); UpdateData(false); Run the results. Click Connect to search for the spectrum analyzer; I nput "* I DN?" in the "Command" edit box;...
Chapter 3 Programming Examples RIGOL Visual Basic 6.0 Programming Example Enter the Visual Basic 6.0 programming environment, and perform the following procedures. Build a standard application program project (Standard EXE), and name it "DemoForRSA". Project Add File… Open . Search for the visa32.bas...
Page 242
RIGOL Chapter 3 Programming Examples Dim rSize As Long 'I nitialize the system status = viOpenDefaultRM(dfltRM) 'Failed to initialize the system I f (status < VI _SUCCESS) Then ! MsgBox " No VI SA resource was opened " Exit Sub...
Page 243
Chapter 3 Programming Examples RIGOL MsgBox " Failed to open the instrument! " Exit Function End I f 'Read from the instrument stasus = viRead(sesn, strTemp0, 256, rSize) 'Reading failed I f (status < VI _SUCCESS) Then MsgBox " Failed to read from the instrument! "...
Page 244
RIGOL Chapter 3 Programming Examples j = I nStr(strRet, "RSA") I f ( j > = 0) Then bFindRSA = True Exit For End I f Call viFindNext(fList + i - 1, rsrcName(i)) Next i 'Display I f (bFindRSA = True) Then TxtI nsAddr.Text = rsrcName(i)
Chapter 3 Programming Examples RIGOL LabVI EW 2010 Programming Example Enter the Labview 2010 programming environment, and perform the following procedures. Create a VI f ile, and name it "DemoForRSA". Add controls to the front panel interface, including the Address...
Page 248
RIGOL Chapter 3 Programming Examples Exit Run the program, and then the following interface is displayed below. Click the VI SA resource name from the drop-down list under Address , and click Connect to connect the instrument. Then, input a command in the Command f ield.
Chapter 3 Programming Examples RIGOL exit the program. Linux Programming Example This section illustrates how to program and control the spectrum analyzer to realize the common functions in Linux operating system. Programming Preparations Programming environment: Operating system: Fedroa 8 (Linux-2.6.23) GCC version: gcc-4.1.2...
Page 250
RIGOL Chapter 3 Programming Examples For example, if the network address and DNS setting conf igured for the PC are as shown in the f igures below, then, the network address of the spectrum analyzer should be conf igured as follows.
Page 251
Chapter 3 Programming Examples RIGOL Use either of the following two methods to add the library location to the search path of the library, so that the program can load the installed library f ile automatically. Method 1: Specify the search path of the library in the environment variable LD_LI BRARY_PATH.
RIGOL Chapter 3 Programming Examples Linux Programming Procedures Edit the DemoForRSA.h header f ile and declare a class to encapsulate the operation and property of the instrument. # ifndef DEMO_FOR_RSA_H # def ine DEMO_FOR_RSA_H # include < stdio.h> # include <...
Page 253
Chapter 3 Programming Examples RIGOL string strI nstr = ""; ViChar instrDesc[ 1000] ; unsigned long i = 0; bool bFindRSA = false; memset(instrDesc,0,1000); / / Turn on the VI SA device status = viOpenDefaultRM(&defaultRM); (status < VI _SUCCESS) cout< <...
Page 254
RIGOL Chapter 3 Programming Examples string str; / / Address conversion, convert the string type to char* SendAddr = const_cast< char* > (strAddr.c_str()); / / Address conversion, convert the string type to char* SendBuf = const_cast< char* > (strContent.c_str()); / / Turn on the specif ied device status = viOpenDefaultRM(&defaultRM);...
Page 255
Chapter 3 Programming Examples RIGOL status = viRead(instr, RecBuf, MAX_REC_SI ZE, &retCount); / / Turn off the device status = viClose(instr); status = viClose(defaultRM); sprintf(result,"% s",RecBuf ); pstrResult = result; free(result); return bReadOK; void makeupper( string &instr) string outstr = "";...
Page 257
Chapter 3 Programming Examples RIGOL rm demo $(obj) Run the results. # make ./ demo When the program runs, the instrument is connected automatically. I f no instrument is found, a prompt message "No VI SA equipment!" is displayed, and the system exits the program. I f the instrument is found and successfully connected, the following interface is displayed, as shown in the f igure below.
Chapter 4 Appendix RIGOL Chapter 4 Appendix Appendix A: Default Settings Sending the * RST command can restore the instrument to default settings, as shown in the table below. Parameter Name GPSA Parameter RTSA Parameter Value Value Non- PvT FREQ Center Freq 2.25 GHz...
Page 260
RIGOL Chapter 4 Appendix Trigger Criteria Enter Active Mask Upper Frequency 0 Hz Amplitude -100 dBm Build From Trace Trace1 X Offset 0 Hz Y Offset 0 dB X Axis Type Fixed Y Axis Type Fixed Trace Selected Trace Trace1...
Page 261
Chapter 4 Appendix RIGOL Limit Type Upper X To CF Fixed Y To Ref Fixed Margin Off, 0 dB Test Trace Trace1 Test Limits Limit State [ 2] T- Pow er Avg Number Avg Mode Exponential Avg State TP Type...
Page 262
RIGOL Chapter 4 Appendix [ 2] Avg Number Avg Mode Exponential Avg State TOI Span 2 MHz Measure Setup( RTSA) Normal Avg Number Test Limits Select Limit Limit1 Limit State Test Trace Trace1 Limit Type Upper X to CF Relative...
Page 263
Chapter 4 Appendix RIGOL Couple Markers Marker Table Peak Cont Peak Pk-Pk Search Maximum Value Maximum Value Peak Threshold On, -90 dBm On, -90 dBm Peak Excursion On, 6 dB On, 6 dB Threshold Line Peak Table Peak Table Sort...
RIGOL Chapter 4 Appendix Appendix B: Warranty TECHNOLOGI ES, I NC. (hereinafter referred to as ) warrants that the product will be free RIGOL RIGOL from defects in materials and workmanship within the warranty period. I f a product proves defective within the warranty period, guarantees free replacement or repair for the defective product.
Need help?
Do you have a question about the RSA3000 Series and is the answer not in the manual?
Questions and answers