Rigol DSG5000 Series Programming Manual
Rigol DSG5000 Series Programming Manual

Rigol DSG5000 Series Programming Manual

Microwave signal generator
Hide thumbs Also See for DSG5000 Series:
Table of Contents

Advertisement

Quick Links

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DSG5000 Series and is the answer not in the manual?

Questions and answers

Summary of Contents for Rigol DSG5000 Series

  • Page 2 • RIGOL products are covered by P.R.C. and foreign patents, issued and pending. • RIGOL reserves the right to modify or change parts of or all the specifications and pricing policies at the company's sole decision. • Information in this publication replaces all previously released materials.
  • Page 3: Table Of Contents

    [:SOURce][:RF]:CORRection:FLATness:LIST..........3.1.4.4 [:SOURce][:RF]:CORRection:FLATness:DELete.......... 3.1.4.5 [:SOURce][:RF]:CORRection:FLATness:PAIR..........3.1.4.6 [:SOURce][:RF]:CORRection:FLATness:LOAD..........16 3.1.4.7 [:SOURce][:RF]:CORRection:FLATness:SAVe..........3.1.5 [:SOURce][:RF]:Sweep Commands............... 3.1.5.1 [:SOURce][:RF]:SWEep:DIRection..............18 3.1.5.2 [:SOURce][:RF]:SWEep:EXECute..............3.1.5.3 [:SOURce][:RF]:SWEep:LIST:ADDList............19 3.1.5.4 [:SOURce][:RF]:SWEep:LIST:CPOint..............20 3.1.5.5 [:SOURce][:RF]:SWEep:LIST:DELete..............21 3.1.5.6 [:SOURce][:RF]:SWEep:LIST:LIST..............21 3.1.5.7 [:SOURce][:RF]:SWEep:LIST:INITialize:FSTep..........3.1.5.8 [:SOURce][:RF]:SWEep:LIST:INITialize:PRESet...........23 3.1.5.9 [:SOURce][:RF]:SWEep:LIST:LOAD..............3.1.5.10 [:SOURce][:RF]:SWEep:LIST:SAVe..............24 Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 4 3.1.6.8 [:SOURce]:AM:EXT:IMP..................3.1.7 [:SOURce][:RF]:FM Commands................44 3.1.7.1 [:SOURce][:RF]:FM:DEViation.................44 3.1.7.2 [:SOURce][:RF]:FM:FREQuency..............3.1.7.3 [:SOURce][:RF]:FM:WAVEform............... 3.1.7.4 [:SOURce][:RF]:FM:STATe................. 3.1.7.5 [:SOURce][:RF]:FM:SOURce................47 3.1.7.6 [:SOURce]:FM:EXT:COUP................. 3.1.7.7 [:SOURce]:FM:EXT:IMP..................49 3.1.8 [:SOURce][:RF]:PM Commands................50 3.1.8.1 [:SOURce][RF]:PM:DEViation................50 3.1.8.2 [:SOURce][:RF]:PM:FREQuency..............50 3.1.8.3 [:SOURce][:RF]:PM:WAVEform...............51 3.1.8.4 [:SOURce][:RF]:PM:STATe.................52 3.1.8.5 [:SOURce][:RF]:PM:SOURce................Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 5 3.1.10.1 [:SOURce][:RF]:OUTPut[:STATe]..............3.1.10.2 [:SOURce]:RFALl:OUTPut[:STATe]..............3.1.11 [:SOURce][:RF]:MODulation Commands............71 3.1.11.1 [:SOURce][:RF]:MODulation:STATe............... 3.1.11.2 [:SOURce]:RFALl:MODulation:STATe............72 3.1.12 :SOURce:ROSCillator:HCLock Commands............72 3.1.12.1 :SOURce:ROSCillator:HCLock:OUTPut:STATe........... 3.1.12.2 :SOURce:ROSCillator:HCLock:TYPE............. 3.1.13 [:SOURce][:RF]:INPut:TRIGger:SLOPe..............:TRIGger Commands......................74 3.2.1 :TRIGger[:RF]:PULM[:IMMediate]................75 3.2.2 :TRIGger:RFALl:PULM[:IMMediate]..............3.2.3 :TRIGger[:RF][:SWEep][:IMMediate]..............76 3.2.4 :TRIGger:RFALl[:SWEep][:IMMediate]..............3.2.5 :TRIGger[:RF]:PULM:KEY...................77 Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 6 3.4.16 :SYSTem:FSWitch:STATe....................89 3.4.17 :SYSTem:LANGuage....................90 3.4.18 :SYSTem:DATE......................91 3.4.19 :SYSTem:TIME......................3.4.20 :SYSTem:STIMe......................92 3.4.21 :SYSTem:CLEar......................93 3.4.22 :SYSTem:DISPlay:UPDate[:STATe]................3.4.23 :SYSTem:LKEY......................3.4.24 :SYSTem:LKEY:DELete....................95 3.4.25 :SYSTem:OPTion:LIST?....................3.4.26 :SYSTem:CONFigure:INFormation?..............:MMEMory Commands....................97 3.5.1 :MMEMory:CATalog....................3.5.2 :MMEMory:CATalog:LENGth.................. 3.5.3 :MMEMory:COPY....................... 3.5.4 :MMEMory:DELete.....................99 Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 7 To Output the RF Signal....................To Output the RF Sweep Signal..................115 Programming Examples......................117 Programming Preparations..................117 Excel Programming Examples..................118 Matlab Programming Example...................122 LabVIEW Programming Example................Visual C++ Programming Example................128 Appendix............................133 Appendix A: Factory Setting..................133 Appendix B: Warranty....................Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 8 Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 9: Document Overview

    This manual is your guide to programming the DSG5000 series microwave signal generator by using SCPI commands through remote interface. http:// For the latest version of this manual, download it from the official website of RIGOL ( www.rigol.com Publication Number...
  • Page 10 The manuals of this product mainly include the quick guide, user guide, programming guide, data sheet, and etc. For the latest version of this manual, download it from the http://www.rigol.com official website of RIGOL ( Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 11: Scpi Command Overview

    The vertical bar is used to separate multiple parameters. When using the command, you must select one of the parameters. For example, type > :SYSTem:LANGuage < type > can be set to CHINese|ENGLish. Wherein, < 3. Square Brackets [ ] Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 12 3. Integer Unless otherwise specified, the parameter can be any integer (NR1 format) within the effective value range. CAUTION Do not set the parameter to a decimal, otherwise, errors will occur. For example, Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 13 All the commands are case-insensitive. They can all be in upper case or in lower case. If abbreviation is used, you must input all the capital letters in the command. For example, :SYSTem:COMMunication:LAN:IP:SET can be abbreviated to :SYST:COMM:LAN:IP:SET. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 14: Command System

    The default unit of the return value is Hz. • When the frequency offset is 0 Hz, the frequency displayed in the interface (namely the setting frequency) is equal to the actual output frequency. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 15: [:Source][:Rf]:Frequency:offset

    When <freq> is set in "Number" form, the default unit is Hz. For example, 20000. Besides, <freq> can also be set in "Number + Unit" form, For example, 20kHz. • The default unit of the return value is Hz. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 16: Source][:Rf]:Level Commands

    Sets the RF output amplitude of the specified channel. Queries the RF output amplitude of the specified channel. Parameter Name Type Range Default <channel> Discrete 1|2|3|4|5|6|7|8 <level> Real -30 dBm to +25 dBm -30 dBm <unit> Discrete dBm|V|W|dBmV|dBuV Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 17: [:Source][:Rf]:Level:limit

    :LEV? /*The query returns 2.00.*/ 3.1.2.2 [:SOURce][:RF]:LEVel:LIMit Syntax channel >]:LEVel:LIMit < value >[< unit >] [:SOURce][:RF< channel >]:LEVel:LIMit? [:SOURce][:RF< Description Sets the limit of the RF output amplitude for the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 18: [:Source][:Rf]:Level:offset

    5.6dBm (by default, CH1 is selected).*/ :LEV:LIM? /*The query returns 5.60.*/ 3.1.2.3 [:SOURce][:RF]:LEVel:OFFSet Syntax channel >]:LEVel:OFFSet < value > [:SOURce][:RF< channel >]:LEVel:OFFSet? [:SOURce][:RF< Description Sets the amplitude offset of the RF output for the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 19: Source][:Rf]:Phase Commands

    :LEV:OFFS? /*The query returns 10.00.*/ 3.1.3 [:SOURce][:RF]:PHASe Commands 3.1.3.1 [:SOURce][:RF]:PHASe Syntax channel >]:PHASe < value > [:SOURce][:RF< channel >]:PHASe? [:SOURce][:RF< Description Sets the phase deviation of the RF output for the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 20: [:Source][:Rf]:Phase:reset

    :PHAS? /*The query returns 35.00.*/ 3.1.3.2 [:SOURce][:RF]:PHASe:RESet Syntax channel >]:PHASe:RESet [:SOURce][:RF< Description Resets the current phase deviation to 0deg for the specified channel. Parameter Name Type Range Default <channel> Discrete 1|2|3|4|5|6|7|8 Remarks Return Format Example Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 21: Source][:Rf]:Correction Commands

    :CORR:FLAT? /*The query returns 1.*/ 3.1.4.2 [:SOURce][:RF]:CORRection:FLATness:COUNt Syntax channel >]:CORRection:FLATness:COUNt? [:SOURce][:RF< Description Queries the number of points in the current flatness correction table for the specified channel. Parameter Name Type Range Default <channel> Discrete 1|2|3|4|5|6|7|8 Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 22: [:Source][:Rf]:Correction:flatness:list

    <Count>: indicates the total number of lines of the list to be acquired. Return Format The query returns the newly acquired flatness correction list. For example, NO.1:2000000.000000 , 9.000000 NO.2:2500000.000000 , 10.000000 Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 23: [:Source][:Rf]:Correction:flatness:delete

    You can use this command to reduce the number of lines from the list or use [:SOURce][:RF]:CORRection:FLATness:PAIR command to increase the number points in the list. Return Format Example :CORR:FLAT:DEL 2 /*Deletes the second line from the flatness correction list for CH1 (by default, CH1 is selected).*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 24: [:Source][:Rf]:Correction:flatness:pair

    2.5MHz and the amplitude value to 10dB for CH1 (by default, CH1 is selected).*/ 3.1.4.6 [:SOURce][:RF]:CORRection:FLATness:LOAD Syntax channel >]:CORRection:FLATness:LOAD < filename > [:SOURce][:RF< Description Loads the specified flatness calibration list file to the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 25: Source][:Rf]:Correction:flatness:save

    Saves the flatness calibration list file of the specified channel. Parameter Name Type Range Default <channel> Discrete 1|2|3|4|5|6|7|8 <filename> ASCII String Remarks Return Format Example :RF2:CORR:FLAT:SAV flat.csv /*Saves the flatness calibration list file of CH2, with the filename "flat.csv".*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 26: Source][:Rf]:Sweep Commands

    Return Format The query returns FWD or REV. Example :SWE:DIR FWD /*Sets the sweep direction to FWD (by default, CH1 is selected).*/ :SWE:DIR? /*The query returns FWD.*/ 3.1.5.2 [:SOURce][:RF]:SWEep:EXECute Syntax channel >]:SWEep:EXECute [:SOURce][:RF< Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 27: [:Source][:Rf]:Sweep:list:addlist

    Range Default <channel> Discrete 1|2|3|4|5|6|7|8 <freq> Real 9 kHz to 20 GHz 20 GHz <level> Real -30 dBm to 25 dBm -30 dBm <time> Real 5 ms to 100 s 500 ms Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 28: [:Source][:Rf]:Sweep:list:cpoint

    Return Format The query returns the total number of sweep points in the sweep list. For example, 5. Example Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 29: [:Source][:Rf]:Sweep:list:delete

    :SWE:LIST:DEL 2 /*Deletes the second line of sweep values from the sweep list (by default, CH1 is selected).*/ 3.1.5.6 [:SOURce][:RF]:SWEep:LIST:LIST Syntax channel >]:SWEep:LIST:LIST? < Start >,< Count > [:SOURce][:RF< Description Acquires the sweep list within the specified range for the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 30: Source][:Rf]:Sweep:list:initialize:fstep

    [:SOURce][:RF< Description Recalculates the data points set in the current step sweep to generate a new sweep list. Parameter Name Type Range Default <channel> Discrete 1|2|3|4|5|6|7|8 Remarks In the new sweep list, Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 31: [:Source][:Rf]:Sweep:list:initialize:preset

    After resetting the sweep list using this command, the sweep list only contains one frequency point (20GHz) and one level point (-30dBm). [:SOURce][:RF]:SWEep:LIST:ADDList [:SOURce] • You can use the [:RF]:SWEep:LIST:DELete commands to re-edit the current sweep list. Return Format Example Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 32: Source][:Rf]:Sweep:list:load

    "sweep.csv" to CH2.*/ 3.1.5.10 [:SOURce][:RF]:SWEep:LIST:SAVe Syntax channel >]:SWEep:LIST:SAVe < filename > [:SOURce][:RF< Description Saves the sweep list file of the specified channel. Parameter Name Type Range Default <channel> Discrete 1|2|3|4|5|6|7|8 <filename> ASCII String Remarks Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 33: [:Source][:Rf]:Sweep:state

    LEVel,FREQuency: enables both the frequency and the level sweep functions. Return Format The query returns the sweep state. Example :SWE:STAT FREQ /*Sets the sweep state to FREQ (by default, CH1 is selected).*/ :SWE:STAT? /*The query returns FREQ.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 34: [:Source][:Rf]:Sweep:type

    :SWE:TYPE? /*The query returns STEP.*/ 3.1.5.13 [:SOURce][:RF]:SWEep:MODE Syntax channel >]:SWEep:MODE < mode > [:SOURce][:RF< channel >]:SWEep:MODE? [:SOURce][:RF< Description Sets the sweep mode for the specified channel. Queries the sweep mode for the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 35: [:Source][:Rf]:Sweep:reset[:All]

    <channel> Discrete 1|2|3|4|5|6|7|8 Remarks • If the current sweep direction is "Fwd", the instrument will stop the current sweep and sweep from the start frequency or start level after sending this command. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 36: [:Source][:Rf]:Sweep:point:trigger:type

    At this point, every time you click or tap Key, the instrument sweeps one point and then stops after completing one sweep period. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 37: [:Source][:Rf]:Sweep:sweep:trigger:type

    >]:SWEep:SWEep:TRIGger:TYPE < type > [:SOURce][:RF< channel >]:SWEep:SWEep:TRIGger:TYPE? [:SOURce][:RF< Description Sets the trigger type of the sweep period for the specified channel. Queries the trigger type of the sweep period for the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 38 The above remarks are only valid when the trigger mode of each sweep point in the sweep period is met. When executing the sweep operation, the priority of the required conditions is: single sweep → trigger mode → point trigger mode. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 39: [:Source][:Rf]:Sweep:step:dwell

    Example :SWE:STEP:DWEL 3 /*Sets the dwell time of the step sweep to 3s (by default, CH1 is selected).*/ :SWE:STEP:DWEL? /*The query returns 3.*/ 3.1.5.18 [:SOURce][:RF]:SWEep:STEP:POINts Syntax channel >]:SWEep:STEP:POINts < value > [:SOURce][:RF< Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 40: Source][:Rf]:Sweep:step:start:frequency

    Queries the start frequency of the step sweep for the specified channel. Parameter Name Type Range Default <channel> Discrete 1|2|3|4|5|6|7|8 <freq> Real 9 kHz to 20 GHz 20 GHz <unit> Discrete Hz|kHz|MHz|GHz Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 41: [:Source][:Rf]:Sweep:step:start:level

    When set in "Number + Unit" form (for example, 2dBm), the start level displayed in the interface of the microwave signal generator is related to the setting of the level unit. When the level unit is "dBm", 2.00dBm is displayed. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 42: [:Source][:Rf]:Sweep:step:stop:frequency

    When <value> is set in "Number" form, the default unit is Hz. Besides, <value> can also be set in "Number + Unit" form. For example, 4MHz. • The default unit of the return value is Hz. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 43: [:Source][:Rf]:Sweep:step:stop:level

    When the level unit is "dBuV", 108.99dBuV is displayed. When the level unit is "Volts", 281.50mV is displayed. When the level unit is "Watts", 1.58mW is displayed. • The default unit of the return value is dBm. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 44: [:Source][:Rf]:Sweep:step:shape

    RAMP: selects the "Ramp" waveform. The sweep period always starts from the start frequency or start level to the stop frequency or stop level (when the sweep direction is "Fwd"). Return Format The query returns TRI or RAMP. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 45: [:Source][:Rf]:Sweep:step:spacing

    LOGarithmic: sets the sweep spacing to "LOG". Return Format The query returns LIN or LOG. Example :SWE:STEP:SPAC LIN /*Sets the step sweep spacing to LIN (by default, CH1 is selected).*/ :SWE:STEP:SPAC? /*The query returns LIN.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 46: Source][:Rf]:Am Commands

    :RF2:AM:DEPT 80 /*Sets the AM modulation depth of CH2 to 80%.*/ :RF2:AM:DEPT? /*The query returns 80.00.*/ 3.1.6.2 [:SOURce][:RF]:AM:FREQuency Syntax channel >]:AM:FREQuency < freq >[< unit >] [:SOURce][:RF< channel >]:AM:FREQuency? [:SOURce][:RF< Description Sets the AM modulation frequency of the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 47: [:Source][:Rf]:Am:waveform

    :RF2:AM:FREQ? /*The query returns 20000.*/ 3.1.6.3 [:SOURce][:RF]:AM:WAVEform Syntax channel >]:AM:WAVEform < type > [:SOURce][:RF< channel >]:AM:WAVEform? [:SOURce][:RF< Description Sets the AM modulating waveform of the specified channel. Queries the AM modulating waveform of the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 48: [:Source][:Rf]:Am:state

    Queries the on/off status of the AM switch for the specified channel. Parameter Name Type Range Default <channel> Discrete 1|2|3|4|5|6|7|8 <bool> Bool 1|ON|0|OFF OFF|0 Remarks • ON: turns on the AM switch to enable the AM function. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 49: [:Source][:Rf]:Am:source

    [:SOURce][:RF]:AM:FREQuency [:SOURce][:RF]:AM:WAVEform command and the command to set the modulation frequency and modulation waveform of the modulating signal. Return Format The query returns the AM modulation source type of the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 50: [:Source][:Rf]:Am:equal:level

    :AM:EQUal:LEVel ON /*Enables the RF equal level output of CH1 (by default, CH1 is selected).*/ :AM:EQUal:LEVel? /*The query returns 1.*/ 3.1.6.7 [:SOURce]:AM:EXT:COUP Syntax [:SOURce]:AM:EXT:COUP < type > [:SOURce]:AM:EXT:COUP? Description Sets the AM external coupling mode. Queries the AM external coupling mode. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 51: [:Source]:Am:ext:imp

    50: sets the impedance of AM external modulation to "50Ω". • 100k: sets the impedance of AM external modulation to "100kΩ". • 600: sets the impedance of AM external modulation to "600Ω". Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 52: Source][:Rf]:Fm

    When <value> is set in "Number" form, the default unit is Hz. For example, 20000. Besides, <value> can can also be set in "Number + Unit" form, For example, 20kHz. • The default unit of the return value is Hz. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 53: [:Source][:Rf]:Fm:frequency

    When the FM modulation source is set to "Ext", this command is invalid. Return Format The query returns the FM modulation frequency. Example :RF2:FM:FREQ 20kHz /*Sets the FM modulation frequency of CH2 to 20kHz.*/ :RF2:FM:FREQ? /*The query returns 20000.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 54: [:Source][:Rf]:Fm:waveform

    >]:FM:STATe? [:SOURce][:RF< Description Turns on or off the FM switch to enable the AM function for the specified channel. Queries the on/off status of the FM switch for the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 55: [:Source][:Rf]:Fm:source

    Range Default <channel> Discrete 1|2|3|4|5|6|7|8 <type> Discrete EXTernal|INTernal INTernal Remarks • EXTernal: selects the external modulation source. At this point, the external modulating signal is input from the [EXT MOD IN] connector. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 56: [:Source]:Fm:ext:coup

    When the modulation source of AM is set to "Int", this command is invalid. You [:SOURce][:RF]:FM:SOURce can send the command to set or query the FM modulation source. Return Format The query returns AC or DC. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 57: [:Source]:Fm:ext:imp

    FM modulation source. Return Format The query returns 50, 600, or 100k. Example :FM:EXT:IMP 600 /*Sets the impedance of the FM external modulation to 600Ω.*/ :FM:EXT:IMP? /*The query returns 600.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 58: Source][:Rf]:Pm

    [:SOURce][:RF]:PM:FREQuency Syntax channel >]:PM:FREQuency < freq >[< unit >] [:SOURce][:RF< channel >]:PM:FREQuency? [:SOURce][:RF< Description Sets the PM modulation frequency of the specified channel. Queries the PM modulation frequency of the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 59: [:Source][:Rf]:Pm:waveform

    [:SOURce][:RF< Description Sets the PM modulating waveform of the specified channel. Queries the PM modulating waveform of the specified channel. Parameter Name Type Range Default <channel> Discrete 1|2|3|4|5|6|7|8 <type> Discrete SINE|SQUA SINE Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 60: [:Source][:Rf]:Pm:state

    • ON: turns on the PM switch to enable the PM function. • OFF: turns off the PM switch to disable the PM function. Return Format The query returns 1 or 0. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 61: [:Source][:Rf]:Pm:source

    Return Format The query returns the PM modulation source type of the specified channel. Example :RF2:PM:SOUR INT /*Sets the PM modulation source type of CH2 to INT./ :RF2:PM:SOUR? /*The query returns INT.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 62: [:Source]:Pm:ext:coup

    /*Sets the PM external coupling mode to AC.*/ :PM:EXT:COUP? /*The query returns AC.*/ 3.1.8.7 [:SOURce]:PM:EXT:IMP Syntax value > [:SOURce]:PM:EXT:IMP < [:SOURce]:PM:EXT:IMP? Description Sets the impedance of the PM external modulation. Queries the impedance of the PM external modulation. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 63: Source][:Rf]:Pulm Commands

    >]:PULM:MODE? [:SOURce][:RF< Description Sets the pulse type of the specified channel. Queries the pulse type of the specified channel. Parameter Name Type Range Default <channel> Discrete 1|2|3|4|5|6|7|8 <mode> Discrete SINGle|TRAin SINGle Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 64: [:Source][:Rf]:Pulm:out:state

    ON|1: enables the pulse output. At this point, the microwave signal generator can output the pulse signal generated by the internal pulse generator via the front-panel [PULSE] connector. The output signal is related to the "Mode" setting. • OFF|0: disables the pulse output. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 65: [:Source][:Rf]:Pulm:period

    [:SOURce][:RF]:PULM:SOURce pulse is selected. You can run the command to set or query the pulse modulation source; run the [:SOURce][:RF]:PULM:MODE command to set or query the pulse type of the pulse modulation. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 66: [:Source][:Rf]:Pulm:polarity

    :PULM:POL INV /*Sets the polarity of the pulse modulation to INV (by default, CH1 is selected).*/ :PULM:POL? /*The query returns INV.*/ 3.1.9.5 [:SOURce][:RF]:PULM:SOURce Syntax channel >]:PULM:SOURce < type > [:SOURce][:RF< channel >]:PULM:SOURce? [:SOURce][:RF< Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 67: [:Source][:Rf]:Pulm:state

    >]:PULM:STATe < bool > [:SOURce][:RF< channel >]:PULM:STATe? [:SOURce][:RF< Description Enables or disables the pulse modulation for the specified channel. Queries the on/off status of the pulse modulation for the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 68: Source][:Rf]:Pulm:train:list:count

    [:SOURce][:RF]:PULM:TRAin:LIST:INSErt number of lines of the list or use the command to increase the number of lines of the list. Return Format The query returns an integer. For example, 2. Example Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 69: [:Source][:Rf]:Pulm:train:list:insert

    Repeat 2 (by default, CH1 is selected).*/ 3.1.9.9 [:SOURce][:RF]:PULM:TRAin:LIST:DELete Syntax channel >]:PULM:TRAin:LIST:DELete < Index > [:SOURce][:RF< Description Deletes the pulse value of the specified line from the current pulse list for the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 70: [:Source][:Rf]:Pulm:train:list:get

    Type Range Default <channel> Discrete 1|2|3|4|5|6|7|8 1 to total number of lines in the <Start> Integer current pulse list 1 to total number of lines in the <Count> Integer current pulse list Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 71: [:Source][:Rf]:Pulm:train:list:run

    You can use this command to update the internal modulating signal for the current pulse list data. Return Format Example 3.1.9.12 [:SOURce][:RF]:PULM:TRAin:LIST:LOAD channel >]:PULM:TRAin:LIST:LOAD< filename > [:SOURce][:RF< Description Loads the specified pulse list file to the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 72: Source][:Rf]:Pulm:train:list:save

    Saves the pulse list file of the specified channel. Parameter Name Type Range Default <channel> Discrete 1|2|3|4|5|6|7|8 <filename> ASCII String Remarks Return Format Example :RF2:PULM:TRA:LIST:SAV tra.csv /*Saves the pulse list file of CH2 named "tra.csv".*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 73: [:Source][:Rf]:Pulm:trigger:delay

    The query returns the trigger delay. Example :PULM:TRIG:DEL 3 /*Sets the trigger delay to 3s (by default, CH1 is selected).*/ :PULM:TRIG:DEL? /*The query returns 3.*/ 3.1.9.15 [:SOURce][:RF]:PULM:TRIGger:EXTernal:GATE:POLarity Syntax channel >]:PULM:TRIGger:EXTernal:GATE:POLarity < type > [:SOURce][:RF< channel >]:PULM:TRIGger:EXTernal:GATE:POLarity? [:SOURce][:RF< Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 74: [:Source][:Rf]:Pulm:trigger:external:slope

    :PULM:TRIG:EXT:GATE:POL? /*The query returns INV.*/ 3.1.9.16 [:SOURce][:RF]:PULM:TRIGger:EXTernal:SLOPe Syntax channel >]:PULM:TRIGger:EXTernal:SLOPe < slope > [:SOURce][:RF< channel >]:PULM:TRIGger:EXTernal:SLOPe? [:SOURce][:RF< Description Sets the slope of the valid edge of the external trigger pulse for the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 75: [:Source][:Rf]:Pulm:trigger:mode

    >]:PULM:TRIGger:MODE < mode > [:SOURce][:RF< channel >]:PULM:TRIGger:MODE? [:SOURce][:RF< Description Sets the trigger mode of the pulse modulation for the specified channel. Queries the trigger mode of the pulse modulation for the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 76 Key. • BUS: selects Bus trigger. At this point, the instrument starts a pulse modulation *TRG each time you send the command. This command is invalid when "Ext" modulation source is selected. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 77: [:Source][:Rf]:Pulm:width

    ≤ pulse width ≤ (pulse period) - 10 ns [:SOURce][:RF]:PULM:PERiod You can run the command to set or query the pulse width. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 78: Source][:Rf]:Output Commands

    OFF|0: disables the RF output of the channel. Return Format The query returns 1 or 0. Example :RF2:OUTPut ON /*Enables the RF output of CH2.*/ :RF2:OUTPut? /*The query returns 1.*/ 3.1.10.2 [:SOURce]:RFALl:OUTPut[:STATe] Syntax bool > [:SOURce]:RFALl:OUTPut[:STATe] < Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 79: Source][:Rf]:Modulation Commands

    Enables or disables the modulation output for the specified channel. Queries the on/off status of the modulation output for the specified channel. Parameter Name Type Range Default <channel> Discrete 1|2|3|4|5|6|7|8 <bool> Bool 1|ON|0|OFF 0|OFF Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 80: [:Source]:Rfall:modulation:state

    The query returns 1 or 0. Example :RFAL:MOD:STATe ON /*Enables the modulation output for all the channels.*/ :RFAL:MOD:STATe? /*The query returns 1.*/ 3.1.12 :SOURce:ROSCillator:HCLock Commands 3.1.12.1 :SOURce:ROSCillator:HCLock:OUTPut:STATe Syntax bool > :SOURce:ROSCillator:HCLock:OUTPut:STATe < :SOURce:ROSCillator:HCLock:OUTPut:STATe? Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 81: Source:roscillator:hclock:type

    INTernal: sets the type of the 4.8 GHz reference clock to "Internal". • EXTernal: sets the type of the 4.8 GHz reference clock to "External". Return Format The query returns INT or EXT. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 82: [:Source][:Rf]:Input:trigger:slope

    /*Sets the polarity of the input signal of the external trigger for CH1 to "Positive" (by default, CH1 is selected).*/ :INP:TRIG:SLOP? /*The query returns POS.*/ :TRIGger Commands The :TRIGger commands are used to generate a trigger event. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 83: Trigger[:Rf]:Pulm[:Immediate]

    3.2.2 :TRIGger:RFALl:PULM[:IMMediate] Syntax :TRIGger:RFALl:PULM[:IMMediate] Description When the "Trig Mode" of pulse modulation is set to "Bus", the instrument starts one pulse modulation for all the channels immediately. Parameter Remarks Return Format Example Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 84: Trigger[:Rf][:Sweep][:Immediate]

    Return Format Example 3.2.4 :TRIGger:RFALl[:SWEep][:IMMediate] Syntax :TRIGger:RFALl[:SWEep][:IMMediate] Description Triggers one RF sweep immediately on all the channels. Parameter Remarks Return Format Example Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 85: Trigger[:Rf]:Pulm:key

    Description When the "Trig Mode" of pulse modulation of the specified channel is set to "Key", the instrument starts one pulse modulation for all the channels immediately. Parameter Remarks Return Format Example Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 86: Trigger[:Rf][:Sweep]:Key

    When the "Trig Type" or "Point Trig" mode of SWEEP is set to "Key" and the corresponding trigger condition is met, the instrument starts an RF sweep within the sweep period or sweeps a point and then stops each time this command is sent. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 87: Unit Command

    The :SYSTem commands are used to set a series of parameters relating to the system and the settings of these parameters do not affect the output signal of the microwave signal generator. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 88: System:communication:lan:dhcp

    The query returns 1 or 0. Example :SYST:COMM:LAN:DHCP ON /*Enables the DHCP mode.*/ :SYST:COMM:LAN:DHCP? /*The query returns 1.*/ 3.4.2 :SYSTem:COMMunication:LAN:IP:ADDress Syntax value > :SYSTem:COMMunication:LAN:IP:ADDress < :SYSTem:COMMunication:LAN:IP:ADDress? Description Sets the current IP address. Queries the current IP address. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 89: System:communication:lan:ip:auto

    > :SYSTem:COMMunication:LAN:IP:AUTO < :SYSTem:COMMunication:LAN:IP:AUTO? Description Enables or disables the auto IP configuration mode. Queries the on/off status of the auto IP configuration mode. Parameter Name Type Range Default <bool> Bool 1|ON|0|OFF 1|ON Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 90: System:communication:lan:ip:gateway

    1 to 223 (except 127); and the range for the other three segments is from 0 to 255. Remarks • This command is only valid when the Manual IP configuration mode is enabled. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 91: System:communication:lan:ip:manual

    The three IP configuration modes cannot be all disabled at the same time. Return Format The query returns 1 or 0. Example :SYST:COMM:LAN:IP:MAN ON /*Enables the manual IP configuration mode.*/ :SYST:COMM:LAN:IP:MAN? /*The query returns 1.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 92: System:communication:lan:ip:set

    The format of <value> is <value> ASCII String "nnn.nnn.nnn.nnn". The range of "nnn" is from 0 to 255. Remarks • This command is only valid when the Manual IP configuration mode is enabled. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 93: System:communication:lan:reset

    After resetting the current parameters, DHCP and Auto-IP are turned on and Manual- IP is turned off. Return Format Example 3.4.9 :SYSTem:COMMunication:LAN[:SELF]:PREFerred Syntax value > :SYSTem:COMMunication:LAN[:SELF]:PREFerred < :SYSTem:COMMunication:LAN[:SELF]:PREFerred? Description Sets the DNS. Queries the current DNS. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 94: System:communication:lan:mdns

    :SYSTem:COMMunication:LAN:MDNS? Description Enables or disables mDNS. Queries the on/off status of the mDNS port. Parameter Name Type Range Default <bool> Bool 1|ON|0|OFF 0|OFF Remarks Return Format The query returns 1 or 0. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 95: System:communication:lan:host:name

    Queries the host name. Parameter Name Type Range Default <name> ASCII String Remarks Return Format The query returns the host name. Example 3.4.12 :SYSTem:COMMunication:LAN:MAC Syntax :SYSTem:COMMunication:LAN:MAC? Description Queries the MAC address. Parameter Remarks Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 96: System:preset

    Example 3.4.14 :SYSTem:PRESet:TYPE Syntax type > :SYSTem:PRESet:TYPE < :SYSTem:PRESet:TYPE? Description Sets the preset type of the system. Queries the preset type of the system. Parameter Name Type Range Default <type> Discrete FACtory|USER Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 97: System:preset:save

    When Preset Type is set to "User" (use the command), this configuration will be loaded. • When Preset Type is set to "Factory", this command is invalid. Return Format Example 3.4.16 :SYSTem:FSWitch:STATe Syntax type > :SYSTem:FSWitch:STATe < Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 98: System:language

    OPEN.*/ :SYST:FSW:STAT /*The query returns OPEN.*/ 3.4.17 :SYSTem:LANGuage Syntax type > :SYSTem:LANGuage < :SYSTem:LANGuage? Description Sets the system language. Queries the system language. Parameter Name Type Range Default <type> Discrete ENGLish|CHINese Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 99: System:date

    01 to 31 Remarks Return Format The query returns the current date in the format of "YYYY,MM,DD". For example, "2020,08,31". Example :SYST:DATE 2020,08,31 /*Sets the system date to 2020/08/31.*/ :SYST:DATE? /*The query returns 2020,08,31.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 100: System:time

    /*The query returns 16,40,30.*/ 3.4.20 :SYSTem:STIMe Syntax bool > :SYSTem:STIMe < :SYSTem:STIMe? Description Enables or disables the display of the system date and time. Queries whether to display the system date and time. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 101: System:clear

    • Reset the user data saved in NVRAM and NorFlash to the factory setting; • Reset the HOST NAME, IP address and password in LXI to the factory setting. Return Format Example Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 102: System:display:update[:State]

    :SYST:DISP:UPD? /*The query returns 0.*/ 3.4.23 :SYSTem:LKEY Syntax option >@< license_key > :SYSTem:LKEY < option > :SYSTem:LKEY? < Description Used to install and activate the options of the instrument. Queries the license of the specified option. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 103: System:lkey:delete

    Return Format Example :SYSTem:LKEY:DSG5000- AMD@fbcd61febe039cfa3330036b8feFFc885a2210b4a31f620d370f0006931d6575 a5cea7eee0f355f0adc33f936bfcb13a /*Installs and activates the DSG5000-AMD option.*/ :SYSTem:LKEY? DSG5000-AMD /*The query returns fbcd61febe039cfa3330036b8feFFc885a2210b4a31f620d370f0006931d6575a5ce a7eee0f355f0adc33f936bfcb13a.*/ 3.4.24 :SYSTem:LKEY:DELete Syntax :SYSTem:LKEY:DELete Description Uninstalls all options. Parameter Remarks Return Format Example Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 104: System:option:list

    Syntax :SYSTem:CONFigure:INFormation? Description Queries the configuration of the system, such as the software and hardware version number. Parameter Remarks Return Format The query returns the system information of the current system. Example Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 105: Mmemory Commands

    <path>. Return Format NO.1 File Name: 1 NO.2 File Name: 4.STA Example :MMEM:CAT? C: /*The query returns all the files and folders under Disk C.*/ 3.5.2 :MMEMory:CATalog:LENGth Syntax path > :MMEMory:CATalog:LENGth? < Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 106: Mmemory:copy

    The parameter <file_source> denotes the file or folder to be copied. The file or folder name must contain the path. The parameter <file_destination> indicates the destination path and does not include the filename. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 107: Mmemory:delete

    The parameter <file_name> can be a file name or folder name under the current operation path or the specified path. For example, :MMEM:DEL C:\NEW\3.sta. Return Format Example :MMEM:DEL C:\8.sta /*Deletes a file named "8.sta" from Disk C.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 108: Mmemory:disk:format

    Default <disk> ASCII String Remarks Return Format The query returns the disk information, including Disk Name, File System, Used Space and Total Space. For example, Disk Type:Local Disk(C) File System:FAT32 Used Space:527.848MB Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 109: Mmemory:filetype

    The query returns STAT, FLAC, SWPC, TRNC, or IMAG. Example :MMEM:FILE TRNCsv /*Sets the file type to TRNCsv.*/ :MMEM:FILE? /*The query returns TRNC.*/ 3.5.8 :MMEMory:CHANnel:SELect Syntax channel > :MMEMory:CHANnel:SELect< Description Selects the specified channel for saving or loading the file. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 110: Mmemory:ldisk:space

    Queries the space information of the local disk (Disk C). Parameter Remarks Return Format The query returns the space information of Disk C, including "Used space" and "Free space". For example, Used:512 k,Free:1048064 k. Example Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 111: Mmemory:load

    3.5.11 :MMEMory:MDIRectory Syntax directory_name > :MMEMory:MDIRectory < Description Creates a new folder under the specified operation path. Parameter Name Type Range Default Name of the folder to be <directory_name> ASCII String created Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 112: Mmemory:move

    <file_source> ASCII String Valid file or folder name <file_destination> ASCII String Valid file or folder name Remarks • The file or folder name specified by <file_source> and <file_destination> must contain the path. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 113: Mmemory:pname:edit

    Return Format The query returns the filename prefix. For example, N. Example :MMEM:PNAM:EDIT N /*Sets the filename prefix to N.*/ :MMEM:PNAM:EDIT? /*The query returns N.*/ 3.5.14 :MMEMory:PNAMe:STATe Syntax bool > :MMEMory:PNAMe:STATe < Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 114: Mmemory:save

    ASCII String Name of the file to be saved Remarks • The filename can include Chinese characters (one Chinese character occupies two bytes), English characters and numbers. The filename cannot exceed 28 bytes. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 115: Ieee488.2 Common Commands

    3 characters and are related with status registers. 3.6.1 *CLS Syntax *CLS Description Clears all the event registers, and also clears the error queue. Parameter Remarks Return Format Example 3.6.2 *ESE Syntax value > *ESE < *ESE? Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 116: Idn

    /*The query returns 16.*/ 3.6.3 *IDN? Syntax *IDN? Description Queries the ID string of the instrument. Parameter Remarks Return Format The query returns the ID string of the instrument. For example, RIGOL TECHNOLOGIES,DSG5208,00.00.01.00.13,00.00.01. Example Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 117: Psc

    1: resets the settings of the status register. Return Format The query returns 1 or 0. Example 3.6.5 *RST Syntax *RST Description Restores the microwave signal generator to the preset state (factory or user). Parameter Remarks Return Format Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 118: Sre

    /*The query returns 16.*/ 3.6.7 *STB? Syntax *STB? Description Queries the event register for the status byte register. After executing the command, the value in the status byte register is cleared. Parameter Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 119: Trg

    Triggers a pulse modulation or RF sweep immediately. Parameter Remarks Return Format Example 3.6.9 *WAI Syntax *WAI Description Waits for all the pending operations to complete before executing any additional commands. Parameter Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 120: Status Commands

    Standard Event Status Register Operation Complete Query Error Device Dependent Error Execution Error Command Error Status Byte Register Power On Operation Status Register SWEeping Figure 3.1 Structure of the Status Register Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 121: Status:operation:enable

    :STAT:OPER:ENAB? /*The query returns 100.*/ 3.7.2 :STATus:OPERation[:EVENt] Syntax :STATus:OPERation[:EVENt]? Description Queries the event register of the operation status register. Parameter Remarks Return Format The query returns the event register in integer. For example, 32. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 122 Command System Example Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 123: Application Examples

    50Ω] connector of CH2 to make its frequency stay within a range from 1 GHz to 2 GHz, amplitude from -20 dBm to 0 dBm, the number of sweep points 10, and the dwell time 500 ms. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 124 CH2 to 10.*/ :RF2:SWE:STEP:DWEL 500ms /*Sets the dwell time of step sweep for CH2 to 500ms.*/ :RF2:SWE:STAT LEV,FREQ /*Enables the Freq&Level sweep for CH2.*/ :RF2:OUTPut ON /*Enables the RF output for CH2.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 125: Programming Examples

    "USB Test and Measurement Device (IVI)" according to the instructions. 5. Acquire the USB VISA descriptor of the microwave signal generator: run Ultra Sigma and search for the microwave signal generator resource currently connected Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 126: Excel Programming Examples

    Programming Examples to the PC. The resource found is displayed under the "RIGOL Online Resource" directory, including the instrument model and the USB interface information (namely the VISA descriptor),The VISA descriptor of the microwave signal generator used is USB0::0x1AB1::0x0993::DSG5D242600001::INSTR. Then, the preparation work for the programming is completed.
  • Page 127 3. Input the VISA descriptor into a cell of the file, as shown in the figure below. Click the Developer menu and select the Visual Basic option to open the Microsoft Visual Basic. 4. Select "Tools(T)" in the Microsoft Visual Basic menu bar and click "References". Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 128 1. Make sure that your PC has installed the NI-VISA library. 2. Click Browse... at the right section to search visa32.dll from C:\WINDOWS\system32, as shown in the figure below. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 129 6. Add the button control. Click Insert under the Developer menu, and select a button control under the Form Controls menu item and put it into the Excel cell. At this time, the Assign Macro dialog box is displayed, Select "Sheet1.QueryIdn" and click OK. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 130: Matlab Programming Example

    1. Run the Matlab software and modify the current path (Current Directory). In this example, modify the current path to D:\DSG5000_Demo. 2. Click File > New > Blank M File in the Matlab interface to create an empty M file. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 131: Labview Programming Example

    1. Run LabVIEW 2009, and then create a VI file named DSG5000_Demo_LABVIEW. 2. Add controls to the front panel interface, including the Address field, Command field, and Return field, the Connect button, the Write button, the Read button, and the Exit button. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 132 3. Click Show Block Diagram under the Window menu and add the While cycle to create an event structure. 4. Add the events (including connecting to the instrument, write operation, read operation, and exit) a. Connect (including error processing) Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 133 Programming Examples b. Write operation (including error confirmation) Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 134 Programming Examples c. Read operation (including error correction advice) d. Exit Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 135 Return field. The return value 1.500 000 000 00GHz (denote that the current frequency of the RF signal is 1.5GHz) is displayed in the Return text box. Click Exit to exit the program. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 136: Visual C++ Programming Example

    Files\IVI Foundation\VISA\WinNT\lib\msc. Click OK to close the dialog box. NOTE The two paths added here are related to the installation path of NI-VISA on your PC. By default, NI-VISA is installed under C:\Program Files\IVI Foundation\VISA. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 137 6. Encapsulate the read and write operations of VISA. a. Encapsulate the write operation of VISA for easier operation. bool CDSG5000_DEMO_VCDlg::InstrWrite(CString strAddr, CString strContent) //write function ViSession defaultRM,instr; ViStatus status; ViUInt32 retCount; char * SendBuf = NULL; Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 138 //open the VISA instrument status = viOpenDefaultRM(&defaultRM); if (status < VI_SUCCESS) //Error Initializing VISA...exiting AfxMessageBox("No VISA instrument was opened !"); return false; //open the instrument status = viOpen(defaultRM, SendAddr, VI_NULL, VI_NULL, Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 139 InstrWrite(strSrc,"*IDN?"); ::Sleep(200); InstrRead(strSrc,&strInstr); //If the instrument(resource) belongs to the DSG series then jump out from the loop trInstr.MakeUpper(); if (strInstr.Find("DSG") >= 0) bFindDSG = true; m_strInstrAddr = strSrc; break; /Find next instrument Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 140 Input command in the "Command" edit box; for example, :SWE:DIR?. c. Click Send to send the command. d. Click Read to read the return value. The execution result is as shown in the figure below. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 141: Appendix

    Trigger Type for the Sweep Auto Trigger Period Point Trigger Type Auto Trigger Slope of the External Trigger Sweep Direction Switch Modulation Source Internal Modulation Depth Modulation Frequency 10 kHz Modulating Waveform Sine Equal Level Output Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 142 Pulse Polarity Normal Gated Polarity Normal Slope of the External Trigger Output Control RF Switch MOD Switch System Language English Preset Type Factory DHCP Auto IP Manual IP Screen Lock Power Status Default Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 143: Appendix B: Warranty

    To get repair service, please contact with your nearest RIGOL sales or service office. There is no other warranty, expressed or implied, except such as is expressly set forth herein or other applicable warranty card.

Table of Contents