Download Print this page
Rigol DG5000 Pro Series Programming Manual
Rigol DG5000 Pro Series Programming Manual

Rigol DG5000 Pro Series Programming Manual

Function/ arbitrary waveform generator
Hide thumbs Also See for DG5000 Pro Series:

Advertisement

Quick Links

Advertisement

loading
Need help?

Need help?

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

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Rigol DG5000 Pro 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 ............................17 3.4.2 *ESE ............................3.4.3 *ESR? ............................19 3.4.4 *IDN? ............................3.4.5 *OPC ............................3.4.6 *OPT? ............................21 3.4.7 *PSC ............................3.4.8 *RCL ............................22 3.4.9 *RST ............................22 3.4.10 *SAV ............................Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 4 .....................39 3.8.7 :MMEMory:DELete ....................... 3.8.8 :MMEMory:LOAD:DATA ......................40 3.8.9 :MMEMory:LOAD:STATe ..................... 3.8.10 :MMEMory:MDIRectory ..................... 3.8.11 :MMEMory:MOVE ........................ 3.8.12 :MMEMory:RDIRectory .......................43 3.8.13 :MMEMory:STORe:DATA ....................3.8.14 :MMEMory:STORe:STATe ....................45 3.8.15 :MMEMory[:TRACe]:ARB:DATA ..................DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 5 ................68 3.11.2.5 [:SOURce[<n>]]:APPLy:PULSe ................69 3.11.2.6 [:SOURce[<n>]]:APPLy:RAMP ................3.11.2.7 [:SOURce[<n>]]:APPLy:SINusoid ..............70 3.11.2.8 [:SOURce[<n>]]:APPLy:SQUare ............... 3.11.2.9 [:SOURce[<n>]]:APPLy:TRIangle ..............3.11.3 [:SOURce[<n>]]:ASKey ....................... 3.11.3.1 [:SOURce[<n>]]:ASKey:AMPLitude ..............3.11.3.2 [:SOURce[<n>]]:ASKey:INTernal:RATE ............74 3.11.3.3 [:SOURce[<n>]]:ASKey:POLarity ..............Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 6 ......................3.11.7.1 [:SOURce[<n>]]:FSKey:FREQuency ..............98 3.11.7.2 [:SOURce[<n>]]:FSKey:INTernal:RATE ............99 3.11.7.3 [:SOURce[<n>]]:FSKey:POLarity ..............100 3.11.7.4 [:SOURce[<n>]]:FSKey:PORT ................100 3.11.7.5 [:SOURce[<n>]]:FSKey:SOURce ..............101 3.11.7.6 [:SOURce[<n>]]:FSKey:STATe ................. 3.11.8 [:SOURce[<n>]]:FUNCtion ....................3.11.9 [:SOURce[<n>]]:FUNCtion:ADVance:ARB ..............104 3.11.9.1 [:SOURce[<n>]]:FUNCtion:ADVance:ARB:EDGE ........DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 7 3.11.11.11 [:SOURce[<n>]]:FUNCtion:ADVance:MPULse:TRIGger:SOURce ..124 3.11.11.12 [:SOURce[<n>]]:FUNCtion:ADVance:MPULse:TRIGger:TIMer .... 3.11.11.13 [:SOURce[<n>]]:FUNCtion:ADVance:MPULse:TRIGger:TTYPe ....126 3.11.12 [:SOURce[<n>]]:FUNCtion:ADVance:MTONe (Optional) ........127 3.11.12.1 [:SOURce[<n>]]:FUNCtion:ADVance:MTONe:APPLy ......127 3.11.12.2 [:SOURce[<n>]]:FUNCtion:ADVance:MTONe:LOW ........ 3.11.12.3 [:SOURce[<n>]]:FUNCtion:ADVance:MTONe:NUMBer ......129 3.11.12.4 [:SOURce[<n>]]:FUNCtion:ADVance:MTONe:SPACing ......3.11.12.5 [:SOURce[<n>]]:FUNCtion:ADVance:MTONe:SRATe? ......130 Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 8 ....... 3.11.15.6 [:SOURce[<n>]]:FUNCtion:ADVance:SEQuence:EDGE ......3.11.15.7 [:SOURce[<n>]]:FUNCtion:ADVance:SEQuence:FILTer ......149 3.11.15.8 [:SOURce[<n>]]:FUNCtion:ADVance:SEQuence:INSert ......3.11.15.9 [:SOURce[<n>]]:FUNCtion:ADVance:SEQuence:ITEM:EVENt ....151 3.11.15.10 [:SOURce[<n>]]:FUNCtion:ADVance:SEQuence:ITEM:GOTO ....3.11.15.11 [:SOURce[<n>]]:FUNCtion:ADVance:SEQuence:ITEM:JUMP ....153 3.11.15.12 [:SOURce[<n>]]:FUNCtion:ADVance:SEQuence:ITEM:LENGth? ..3.11.15.13 [:SOURce[<n>]]:FUNCtion:ADVance:SEQuence:ITEM:PERiod .... 3.11.15.14 [:SOURce<n>]]:FUNCtion:ADVance:SEQuence:ITEM:WAIT ....156 DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 9 ..................179 3.11.25 [:SOURce[<n>]]:PHASe ....................180 3.11.25.1 [:SOURce[<n>]]:PHASe ..................180 3.11.25.2 [:SOURce[<n>]]:PHASe:COUPle:MODE ............181 3.11.25.3 [:SOURce[<n>]]:PHASe:COUPle:OFFSet .............181 3.11.25.4 [:SOURce[<n>]]:PHASe:COUPle:RATio ............3.11.25.5 [:SOURce[<n>]]:PHASe:COUPle[:STATe] ............ 3.11.25.6 [:SOURce[<n>]]:PHASe:SYNChronize ............184 3.11.26 [:SOURce[<n>]]:PM ......................184 3.11.26.1 [:SOURce[<n>]]:PM:DEViation ..............Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 10 3.11.30.2 [:SOURce[<n>]]:SWEep:HTIMe[:STOP] ............208 3.11.30.3 [:SOURce[<n>]]:SWEep:RTIMe ..............209 3.11.30.4 [:SOURce[<n>]]:SWEep:SPACing ..............210 3.11.30.5 [:SOURce[<n>]]:SWEep:STATe ...............211 3.11.30.6 [:SOURce[<n>]]:SWEep:STEP .................212 3.11.30.7 [:SOURce[<n>]]:SWEep:TIME ................ 3.11.31 [:SOURce[<n>]]:TRACk ....................3.11.32 [:SOURce[<n>]]:VOLTage ....................3.11.32.1 [:SOURce[<n>]]:VOLTage ................214 DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. VIII...
  • Page 11 ........................3.12.7 :SYSTem:LANGuage ......................234 3.12.8 :SYSTem:LICense:CATalog? ....................234 3.12.9 :SYSTem:LICense:DELete ....................235 3.12.10 :SYSTem:LICense:DELete:ALL ..................236 3.12.11 :SYSTem:LICense:INSTall ....................3.12.12 :SYSTem:LICense:INSTall:UDISk ..................3.12.13 :SYSTem:PSTatus .........................238 3.12.14 :SYSTem:ROSCillator:SOURce ..................3.12.15 :SYSTem:TIME ........................Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 12 4.8 To Output a Sequence Waveform .....................251 5 Programming Examples ....................252 5.1 Programming Preparations ......................252 5.2 LabVIEW Programming Example ....................5.3 Visual Basic Programming Example ..................5.4 Visual C++ Programming Example ..................DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 13 Table 3.12 Table of the Bit Definition of Status Byte Register ........Table 3.55 Range of Continuous Waveform Frequency ..........Table 3.56 Range of Continuous Waveform Period .............57 Table 3.57 Range of Amplitude ...................57 Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 14 DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 15 Document Overview Document Overview This manual introduces how to program and control the DG5000 Pro Series Function/ Arbitrary Waveform Generator via the remote interface by using the SCPI (Standard Commands for Programmable Instruments) commands. DG5000 Pro series can communicate with PC through USB or LAN interface.
  • Page 16 Document Overview Max. Output Model No. of Channels Sample Rate Frequency DG5352 Pro 2.5 GSa/s 350 MHz DG5502 Pro 2.5 GSa/s 500 MHz DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 17 Parameters are usually separated by the vertical bar "|". When using the command, you must select one of the parameters. 2. Vertical Bar | Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 18 The parameter can be any real number within the effective value range, and this command accepts parameter input in decimal (NR2 format) and scientific notation (NR3 format). For example, DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 19 Users usually need to use the PC software to send commands to control the instrument remotely. RIGOL Ultra Sigma is recommended. When the instrument is connected to the PC via the USB or LAN interface, the PC software can search for instrument resources and enable command interaction.
  • Page 20 Programming Overview Log in to the RIGOL official website. Click Support and select Soft/Firmware to obtain the Ultra Sigma software package and help documentation. Web Control When the instrument is connected to the PC via the LAN interface, you can use Web Control to send SCPI commands from the PC to the instrument.
  • Page 21 4. View the device resource The resources found will appear under the "RIGOL Online Resource" directory. 5. Control the instrument remotely Right-click the device resource name and select "SCPI Panel Control" to open the remotely command control panel.
  • Page 22 For your convenience, this instrument interprets "mV" (or "MV") as millivolts and "ms" (or "Ms") as milliseconds. However, it interprets "MHZ" (or "mhz") as megahertz. :ABORt Syntax :ABORt Description Stops any operation that is triggered. Parameter None. Remarks None. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 23 :DISPlay:BRIGhtness 80 /*Sets the brightness of the display to 80%.*/ :DISPlay:BRIGhtness? /*Queries the brightness of the display. The query returns 80.*/ 3.2.2 :DISPlay:FOCus Syntax chan > :DISPlay:FOCus < Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 24 When it is disabled, the front-panel screen is black but the UI progress will not be blocked. • When you press the front-panel to return to local operation, the screen is automatically enabled. Return Format The query returns 1 or 0. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 25 :DISPlay:TEXT? /*Queries the text message displayed on the front- panel screen. The query returns Test in progress.*/ 3.2.5 :DISPlay:TEXT:CLEar Syntax :DISPlay:TEXT:CLEar Description Clears the text message displayed on the front-panel screen. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 26 :DISPlay:UNIT:PULSe DUTY /*Sets the method to specify the pulse width to duty cycle.*/ :DISPlay:UNIT:PULSe? /*Queries the method to specify the pulse width. The query returns DUTY.*/ 3.2.7 :DISPlay:UNIT:RATE Syntax unit > :DISPlay:UNIT:RATE < DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 27 ( ) to specify the frequency sweep range. [:SOURce[<n>]]:FREQuency:CENTer • CENTerspan: uses the middle value ( ) and [:SOURce[<n>]]:FREQuency:SPAN span ( ) to specify the frequency sweep range. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 28 :DISPlay:UNIT:VOLTage? /*Queries the method to specify the voltage range. The query returns HIGH.*/ :HCOPy Commands :HCOPy commands are used to set or query the image format and execute the screenshot operation. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 29 Name Type Range Default <type> Discrete {BMP|PNG} Remarks None. Return Format The query returns BMP or PNG. Examples :HCOPy:SDUMp:DATA:FORMat PNG /*Sets the format of the image to PNG.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 30 Execution An execution error occurred. Error (E) Command A command error (command syntax error) Error (CME) has occurred. Not Used DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 31 Sets 1 or multiple bits (must be the Status enabled bit) in the Operation Status Register Register. 3.4.1 *CLS Syntax *CLS Description Clears all the event registers, and also clears the error queue. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 32 Example *ESE 16 /*Enables Bit 4 (16 in decimal) in the register.*/ *ESE? /*The query returns the enable value of the register 16.*/ DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 33 Queries the ID string of the instrument. Parameter None. Remarks None. Return Format The query returns RIGOL TECHNOLOGIES,<model>,<serial number>,<software version>. • <model>: indicates the model number of the instrument. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 34 Sending the *OPC? command and reading the result can ensure synchronization. Return Format Queries whether all the previous commands are executed. The query returns 1 when all commands are executed. Examples None. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 35 *PSC 1 denotes clearing the enable registers of the Status Byte and Standard Event registers at power-on; *PSC 0 denotes that the enable registers of the Status Byte and Standard Event registers will not be affected at power-on. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 36 None. Examples *RCL 1 /*Recalls the instrument state stored in memory location 1.*/ 3.4.9 *RST Syntax *RST Description Resets the instrument to its factory default state. Parameter None. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 37 *SAV 1 /*Stores the current instrument state to memory location 1.*/ 3.4.11 *SRE Syntax maskargument > *SRE < *SRE? Description Sets or queries the enable register of the status byte register set. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 38 (X is 1 or 0). Return Format The query returns an integer. The integer equals to the decimal-weighted sum of all the bits set in the register. Example None. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 39 For example, you want to use :SOURce1:SWEep:SPACing LINear and then use :TRIGger1:IMMediate. To make sure that :SOURce1:SWEep:SPACing LINear can be completed before executing the next command, you can insert *WAI between the two commands. Return Format None. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 40 Discrete {1|2} <bool> Bool {0|1|OFF|ON} 0|OFF Remarks • 1|ON: returns to the "wait-for-trigger" state; 0|OFF: remains in the "idle" state, :INITiate[<n>][:IMMediate] :INITiate[<n>] ignoring triggers until [:IMMediate]:ALL is issued. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 41 With 1|ON, the trigger count setting ( :TRIGger<n>:COUNt ) will be invalid. If you need to count the triggers, you must select 0|OFF. Return Format None. Examples None. 3.5.3 :INITiate[<n>][:IMMediate] Syntax n >][:IMMediate] :INITiate[< Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 42 :ABORt • to return the instrument to idle. • If the specified channel has :INITiate[<n>]:CONTinuous set to ON, :INITiate[<n>] [:IMMediate] :INITiate[<n>][:IMMediate]:ALL have no effect on the trigger system. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 43 The query returns 0 or 1. Examples :LXI:MDNS:STATe ON /*Enables the mDNS.*/ :LXI:MDNS:STATe? /*Queries whether the mDNS is enabled. The query returns 1.*/ 3.6.2 :LXI:MDNS:SNAMe:DESired Syntax name > :LXI:MDNS:SNAMe:DESired < :LXI:MDNS:SNAMe:DESired? Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 44 The total length is no more than 28 characters. Return Format The query returns the ASCII string. Examples :LXI:MDNS:SNAMe:DESired RIGOL /*Sets the mDNS service name to RIGOL.*/ :LXI:MDNS:SNAMe:DESired? /*Queries the service name for mDNS. The query returns RIGOL.*/ 3.6.3...
  • Page 45 3.7.1 :MEMory:NSTates? Syntax :MEMory:NSTates? Description Queries the number of memory locations for storing states. Parameter None. Remarks None. Return Format The query returns 6. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 46 "AUTO_RECALL","STATE_1","STATE_2","STATE_3","STATE_4","STATE_5".*/ 3.7.3 :MEMory:STATe:DELete Syntax n > :MEMory:STATe:DELete < Description Deletes the state files stored in the specified memory location. Parameter Name Type Range Default <n> Discrete {0|1|2|3|4|5} DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 47 0 to 5 represents the state file stored in the specified locations respectively. Return Format The query returns a string with double quotation marks. For example, the query might return "state". Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 48 0 at the next power-on.*/ :MEMory:STATe:RECall:AUTO? /*Queries whether to enable the automatic recall of the last power-on setting in location 0. The query returns 1.*/ 3.7.6 :MEMory:STATe:VALid? Syntax state > :MEMory:STATe:VALid? < DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 49 • The combination of folder and file name cannot exceed 200 characters. 3.8.1 :MMEMory:CATalog[:ALL]? Syntax folder >] :MMEMory:CATalog[:ALL]? [< Description Queries all the files in the specified directory. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 50 ASCII string Valid directory Remarks The parameter <folder> is a valid directory in the internal or external memory. The query might return INT:\folder or USB:\Rigol. If it is omitted, this command queries :MMEMory:CDIRectory the directory specified by Return Format The query returns a string in the format of space used,space available,"file name,file property,file size",……;...
  • Page 51 Command System Remarks The parameter <folder> is the valid directory in the internal or external memory. For example, it can be INT:\ or USB:\Rigol\. If it is omitted, this command queries the :MMEMory:CDIRectory directory specified by Return Format The query returns a string in the format of space used,space available,"file name,file property,file size",……;...
  • Page 52 Valid directory Remarks The parameter <directory_name> is the valid directory in the internal or external memory. For example, it can be INT:/folder or USB:/Rigol. Return Format The query returns a string. For example, the query might return INT:/folder, representing the folder named "folder" under local disk C.
  • Page 53 ASCII string Valid directory Remarks • The parameter <sequence> is the filename of the sequence to be copied. The filename must contain the file extension, for example, INT:\SEQ.seq. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 54 Return Format None. Examples :MMEMory:COPY:SEQuence INT:\Rigol\MySequence.seq,USB:\rigol / *Copies the sequence file named MySequence.seq and its associated files in the "Rigol" folder of C disk to the "rigol" folder of USB storage device.*/ 3.8.7 :MMEMory:DELete Syntax file_name > :MMEMory:DELete <...
  • Page 55 Examples :MMEMory:LOAD:DATA 1,INT:\SEQ.seq /*Loads the sequence file named SEQ.seq under the C disk into CH1.*/ 3.8.9 :MMEMory:LOAD:STATe Syntax file_name > :MMEMory:LOAD:STATe < Description Loads the specified state file. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 56 • It is not allowed to create folders with the same name. Return Format None. Examples :MMEMory:MDIRectory TestFolder /*Creates a folder named "TestFolder" in the internal mass memory.*/ DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 57 USB:\Rigol\. Return Format None. Examples :MMEMory:MOVE INT:\Rigol.sta,USB:\Rigol\ /*Moves the file named Rigol.sta in internal memory to the folder named Rigol in the USB storage device.*/ :MMEMory:MOVE USB:\Rigol1.sta,USB:\Rigol2.sta /*Names the file named Rigol1.sta in the USB storage device to Rigol2.sta.*/ 3.8.12...
  • Page 58 Valid directory Remarks None. Return Format None. Examples :MMEMory:STORe:DATA 1,INT:\Seq_1.seq /*Stores a sequence file (*.seq) in volatile memory of CH1 to the internal memory with the name of Seq_1.seq.*/ DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 59 Arb file with the specified file name and write data. If a file with the same name already exists, the new data overwrites the original data. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 60 Sends integers between -32768 and +32768 or data stream to the specified Arb file. Parameter Name Type Range Default <arb_name> ASCII string Valid filename <flag> Discrete {HEADer|CONTinue|END} Remarks <data> ASCII string Refer to DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 61 Return Format None. Examples :MMEMory:TRACe:ARB:DATA:DAC INT:\ARB.arb,END,10,20,30,40,50,60,70,80,90,100,200,300,400,500,600, 700,800,900,1000,1100,1200,1300,1400,1500,1600,1700,1800,1900,2000,2 100,2200,2300 /*Sends floating point values to INT:\ARB.arb.*/ :OUTPut Commands :OUTPut commands are used to set and query the channel outputs. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 62 3.9.2 :OUTPut[<n>]:LOAD Syntax n >]:LOAD {< ohms >|< lim_set >} :OUTPut[< n >]:LOAD? < lim_query > :OUTPut[< Description Sets or queries the output impedance for the specified channel. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 63 The query returns 9.9E+37.*/ 3.9.3 :OUTPut[<n>]:POLarity Syntax n >]:POLarity < polarity > :OUTPut[< n >]:POLarity? :OUTPut[< Description Sets or queries the output polarity for the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 64 Sets or queries the channel-to-channel skew (relative timing of the analog output). Parameter Name Type Range Default <n> Discrete {1|2} <time> Real -200 ns to +200 ns <lim> Discrete {MINimum|MAXimum|DEFault} DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 65 Return Format The query returns 0 or 1. Examples :OUTPut1:STATe 1 /*Enables the output of CH1.*/ :OUTPut1:STATe? /*Queries the output on/off status for CH1. The query returns 1.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 66 1.*/ 3.9.7 :OUTPut[<n>]:SYNC:MODE Syntax n >]:SYNC:MODE < mode > :OUTPut[< n >]:SYNC:MODE? :OUTPut[< Description Sets or queries whether the frequency mark function is enabled for the specified channel. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 67 Type Range Default <n> Discrete {1|2} <polarity> Discrete {NORMal|INVerted} NORMal Remarks • You can set the instrument to output normal sync signals (NORMal) or inverted sync signals (INVerted). Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 68 The query returns 0 or 1. Examples :OUTPut:TRIGger ON /*Enables the trigger output for CH1.*/ :OUTPut:TRIGger? /*Queries whether the trigger output is enabled for CH1. The query returns 1.*/ DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 69 :SYNChro Commands :SYNChro commands are used to set and query the base channel of the channel coupling and track function. 3.10.1 :SYNChro:BENChmark Syntax chan > :SYNChro:BENChmark < :SYNChro:BENChmark? Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 70 1 mHz to 250 MHz NOTE [1]: In Modulation and Burst output modes, the maximum frequency available of the sine wave is limited to 350 MHz for DG5502 Pro. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 71 10 V 2 mVpp to 10 1 mVpp to 5 (100 MHz, 250 MHz] 2.5 V 2 mVpp to 4 1 mVpp to 2 (250 MHz, 350 MHz] Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 72 100% depth, the modulation depth upper limit is limited by the peak on the output. • When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 73 :SOURce1:AM:DSSC? /*Queries the on/off status of the AM DSSC function for CH1. The query returns 1.*/ 3.11.1.3 [:SOURce[<n>]]:AM:INTernal:FREQuency Syntax n >]]:AM:INTernal:FREQuency {< frequency >|< lim_set >} [:SOURce[< n >]]:AM:INTernal:FREQuency? [< lim_query >] [:SOURce[< Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 74 >]]:AM:INTernal:FUNCtion < function > [:SOURce[< n >]]:AM:INTernal:FUNCtion? [:SOURce[< Description Sets or queries the AM modulating waveform for the specified channel. Parameter Name Type Range Default <n> Discrete {1|2} DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 75 CH1. The query returns SQU.*/ 3.11.1.5 [:SOURce[<n>]]:AM:INTernal:FUNCtion:ARBitrary Syntax n >]]:AM:INTernal:FUNCtion:ARBitrary < arb > [:SOURce[< n >]]:AM:INTernal:FUNCtion:ARBitrary? [:SOURce[< Description Sets or queries the modulating waveform (Arb) type of AM for the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 76 Arb, you can use this command to select the Arb type as the modulating waveform. • When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 77 The query returns INT or EXT. Examples :SOURce1:AM:SOURce INTernal /*Sets the AM modulation source to internal modulation source for CH1.*/ :SOURce1:AM:SOURce? /*Queries the AM modulation source for CH1. The query returns INT.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 78 :SOURce1:AM:STATe? /*Queries the on/off status of the AM modulation function for CH1. The query returns 1.*/ 3.11.2 [:SOURce[<n>]]:APPLy 3.11.2.1 [:SOURce[<n>]]:APPLy? Syntax [:SOURce[< n >]]:APPLy? Description Queries the waveform parameters for the specified channel. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 79 The return format of the Advanced waveform is related to the waveform type. The waveform parameters are expressed in scientific notation and the absent item is fixed to 0. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 80 Continuous Waveform Frequency ). For the range of <amplitude>, refer to Table 3.57 Range of Amplitude . The range of <offset> is limited by the current amplitude setting. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 81 • The range of <offset> is limited by the "Impedance" setting :OUTPut[<n>]:LOAD • When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. Return Format None. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 82 When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. Return Format None. Examples :SOURce1:APPLy:NOISe 100,2,1,90 /*Sets CH1 to output noise with 2 Vpp amplitude and 1 Vdc offset.*/ DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 83 100 Hz frequency, 3 Vpp amplitude, 2 Vdc offset, and 1° start phase.*/ 3.11.2.6 [:SOURce[<n>]]:APPLy:RAMP Syntax n >]]:APPLy:RAMP [{< frequency >|< lim_set >}[,{< amplitude >|< lim_set >}[, [:SOURce[< offset >|< lim_set >}[,{< phase >|< lim_set >}]]]] {< Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 84 Hz frequency, 1 Vpp amplitude, 2 Vdc offset, and 3° start phase.*/ 3.11.2.7 [:SOURce[<n>]]:APPLy:SINusoid Syntax n >]]:APPLy:SINusoid [{< frequency >|< lim_set >}[,{< amplitude >| [:SOURce[< lim_set >}[,{< offset >|< lim_set >}[,{< phase >|< lim_set >}]]]] < DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 85 >}[,{< offset >|< lim_set >}[,{< phase >|< lim_set >}]]]] < Description Sets the specified channel to output a square wave with the specified frequency, amplitude, offset, and phase. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 86 >}[,{< offset >|< lim_set >}[,{< phase >|< lim_set >}]]]] < Description Sets the specified channel to output a triangle wave with the specified frequency, amplitude, offset, and phase. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 87 ASK modulation function. 3.11.3.1 [:SOURce[<n>]]:ASKey:AMPLitude Syntax n >]]:ASKey:AMPLitude {< amplitude >|< lim_set >} [:SOURce[< n >]]:ASKey:AMPLitude? [< lim_query >] [:SOURce[< Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 88 [:SOURce[<n>]]:ASKey:INTernal:RATE Syntax n >]]:ASKey:INTernal:RATE {< rate >|< lim >} [:SOURce[< n >]]:ASKey:INTernal:RATE? [< lim >] [:SOURce[< Description Sets or queries the ASK modulation rate for the specified channel. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 89 [:SOURce[< n >]]:ASKey:POLarity? [:SOURce[< Description Sets or queries the ASK modulation polarity for the specified channel. Parameter Name Type Range Default <n> Discrete {1|2} <polarity> Discrete {POSitive|NEGative} POSitive Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 90 REAR: rear port. The instrument receives the external modulation signal from the rear-panel [AUX IN] connector. • When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 91 The query returns INT or EXT. Examples :SOURce1:ASKey:SOURce INTernal /*Sets the ASK modulation source to internal modulation source for CH1.*/ :SOURce1:ASKey:SOURce? /*Queries the ASK modulation source for CH1. The query returns INT.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 92 [:SOURce[<n>]]:BURSt commands are used to set the burst parameters such as burst type, gate polarity, burst count, start phase, and internal trigger period. 3.11.4.1 [:SOURce[<n>]]:BURSt:GATE:POLarity Syntax n >]]:BURSt:GATE:POLarity < polarity > [:SOURce[< DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 93 >]]:BURSt:INTernal:PERiod {< seconds >|< lim >} n >]]:BURSt:INTernal:PERiod? [< lim >] [:SOURce[< Description Sets or queries the burst period of internally-triggered N-Cycle bursts for the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 94 N-Cycle bursts for CH1. The query returns +1.000000000000000E-01.*/ 3.11.4.3 [:SOURce[<n>]]:BURSt:MODE Syntax n >]]:BURSt:MODE < mode > [:SOURce[< n >]]:BURSt:MODE? [:SOURce[< Description Sets or queries the burst type for the specified channel. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 95 Sets or queries the number of cycles (burst count) of the N-Cycle bursts for the specified channel. Parameter Name Type Range Default <n> Discrete {1|2} <cycles> Integer 1 to 1,000,000 Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 96 Name Type Range Default <n> Discrete {1|2} <phase> Real -360° to 360° 0° <lim> Discrete {MINimum|MAXimum} Remarks When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 97 The query returns 0 or 1. Examples :SOURce1:BURSt:STATe ON /*Enables the burst mode for CH1.*/ :SOURce1:BURSt:STATe? /*Queries whether the burst mode is enabled for CH1. The query returns 1.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 98 When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. Return Format The query returns the frequency deviation in scientific notation. For example, the query might return +1.000000000000000E+02, indicating that the frequency deviation is 100 Hz. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 99 150 Hz for CH1.*/ :SOURce1:FM:INTernal:FREQuency? /*Queries the frequency of the FM modulating waveform for CH1. The query returns +1.500000000000000E +02.*/ 3.11.5.3 [:SOURce[<n>]]:FM:INTernal:FUNCtion Syntax n >]]:FM:INTernal:FUNCtion < function > [:SOURce[< Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 100 :SOURce1:FM:INTernal:FUNCtion SQUare /*Sets the FM modulating waveform to Square for CH1.*/ :SOURce1:FM:INTernal:FUNCtion? /*Queries the FM modulating waveform for CH1. The query returns SQU.*/ 3.11.5.4 [:SOURce[<n>]]:FM:INTernal:FUNCtion:ARBitrary Syntax n >]]:FM:INTernal:FUNCtion:ARBitrary < arb > [:SOURce[< DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 101 ABSSINE|ABSSINEHALF|AMPALT|ATTALT|GAUSSPULSE|NEGRAMP|NPULSE| PPULSE|SINETRA|SINEVER|STAIRDN|STAIRUD|STAIRUP|TRAPEZIA|BANDLIMITED| BLASEIWAV|BUTTERWORTH|CHEBYSHEV1|CHEBYSHEV2|COMBIN|CPULSE| CWPULSE|DAMPEDOSC|DUALTONE|GAMMA|GATEVIBR|LFMPULSE|MCNOISE| NIMHDISCHARGE|PAHCUR|QUAKE|RADAR|RIPPLE|ROUNDHALF|STEPRESP| SWINGOSC|TV|VOICE|THREEAM|THREEFM|THREEPFM|THREEPM|THREEPWM| CARDIAC|EOG|EEG|EMG|PULSILOGRAM|RESSPEED|LFPULSE|TENS1|TENS2| TENS3|IGNITION|ISO167502SP|ISO167502VR|ISO76372TP1|ISO76372TP2A| ISO76372TP3A|ISO76372TP2B|ISO76372TP3B|ISO76372TP4|ISO76372TP5A| ISO76372TP5B|SCR|SURGE|AIRY|BESSELJ|BESSELY|CAUCHY|CUBIC|DIRICHLET| ERF|ERFC|ERFCINV|ERFINV|EXPFALL|EXPRISE|GAUSS|HAVERSINE|LAGUERRE| LAPLACE|LEGEND|LOG|LOGNORMAL|LORENTZ|MAXWELL|RAYLEIGH|VERSIERA| WEIBULL|X2DATA|COSH|COSINT|COT|COTHCON|COTHPRO|CSCCON|CSCPRO| CSCHCON|CSCHPRO|RECIPCON|RECIPPRO|SECCON|SECPRO|SECH|SINC|SINH| SININT|SQRT|TAN|TANH|ACOS|ACOSH|ACOTCON|ACOTPRO|ACOTHCON| ACOTHPRO|ACSCCON|ACSCPRO|ACSCHCON|ACSCHPRO|ASECCON|ASECPRO| ASECH|ASIN|ASINH|ATAN|ATANH|BARLETT|BARTHANN|BLACKMAN| BLACKMANH|BOHMANWIN|BOXCAR|CHEBWIN|FLATTOPWIN|HAMMING| HANNING|KAISER|NUTTALLWIN|PARZENWIN|TAYLORWIN|TRIANG|TUKEYWIN| ROUNDPM|ECG1|ECG2|ECG3|ECG4|ECG5|ECG6|ECG7|ECG8|ECG9|ECG10|ECG11| ECG12|ECG13|ECG14|ECG15|MODBESSELI0|SPHBESSELJ1|SPHBESSELJ2| ARCHAV|ARCHCV|ACOT|NEGHALFSINE|POSHWRSINE|NEGHWRSINE| POSFWRSINE|NEGFWRSINE|2NDOSR01|2NDOSR02|2NDOSR07|2NDOIR01| 2NDOIR02|2NDOIR07|DAMPEDSINE1|DAMPEDSINE3|DAMPEDSINE5| ISO167502VIT|ISO167502VRT|THREETONE|FOURTONE|FIVETONE|SIXTONE| SEVENTONE|EIGHTTONE|ISO167502LD1|ISO167502LD2|X3|POSRAMP| LOWERSEMICIRCLE|DISTORTION|GAUSSDERIV|GAUSSHERMITE1| GAUSSHERMITE2|GAUSSHERMITE3|GAUSSHERMITE4|GABOR1|GABOR3. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 102 [Mod In] connector. • When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. Return Format The query returns INT or EXT. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 103 :SOURce1:FM:STATe? /*Queries the on/off status of the FM modulation function for CH1. The query returns 1.*/ 3.11.6 [:SOURce[<n>]]:FREQuency [:SOURce[<n>]]:FREQuency commands are used to set the instrument's output frequency and dual-channel coupling mode. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 104 :SOURce1:FREQuency? /*Queries the frequency of the continuous waveform for CH1. The query returns +1.000000000000000E+06.*/ 3.11.6.2 [:SOURce[<n>]]:FREQuency:CENTer Syntax n >]]:FREQuency:CENTer {< frequency >|< lim_set >} [:SOURce[< n >]]:FREQuency:CENTer? [< lim_query >] [:SOURce[< DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 105 CH1. The query returns +5.000000000000000E+03.*/ 3.11.6.3 [:SOURce[<n>]]:FREQuency:COUPle:MODE Syntax n >]]:FREQuency:COUPle:MODE < mode > [:SOURce[< [:SOURce[< n >]]:FREQuency:COUPle:MODE? Description Sets or queries the type of the frequency coupling mode for the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 106 Description Sets or queries the frequency deviation of the frequency coupling for the specified channel. Parameter Name Type Range Default <n> Discrete {1|2} Remarks <offset> Real Refer to DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 107 • When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 108 The coupling function is disabled when the channel track function is enabled. The Channel Copy function is disabled after the coupling is enabled. • When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 109 Center Frequency = (Start Frequency + Stop Frequency)/2. Frequency Span = Stop Frequency - Start Frequency. • When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 110 Center Frequency = (Start Frequency + Stop Frequency)/2. Frequency Span = Stop Frequency - Start Frequency. • When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 111 Center Frequency = (Start Frequency + Stop Frequency)/2. Frequency Span = Stop Frequency - Start Frequency. • When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 112 The range of the hop frequency <frequency> is consistent with the range of the carrier frequency. • When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 113 +1.500000000000000E+02, indicating that the FSK rate is 150 Hz. Examples :SOURce1:FSKey:INTernal:RATE 150 /*Sets the FSK rate to 150 Hz for CH1.*/ :SOURce1:FSKey:INTernal:RATE? /*Queries the FSK rate for CH1. The query returns +1.500000000000000E+02.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 114 CH1. The query returns NEG.*/ 3.11.7.4 [:SOURce[<n>]]:FSKey:PORT Syntax n >]]:FSKey:PORT < port > [:SOURce[< n >]]:FSKey:PORT? [:SOURce[< Description Sets or queries the FSK external modulation port for the specified channel. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 115 [:SOURce[< n >]]:FSKey:SOURce? [:SOURce[< Description Sets or queries the FSK modulation source for the specified channel. Parameter Name Type Range Default <n> Discrete {1|2} <source> Discrete {INTernal|EXTernal} INTernal Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 116 • If the Sweep ( ), Burst [:SOURce[<n>]]:BURSt:STATe ), or Advanced [:SOURce[<n>]]:FUNCtion:ADVance[:STATe] ) function is currently enabled, it will be disabled automatically when the modulation function is enabled. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 117 The query returns the waveform name, for example, SQU. Examples :SOURce1:FUNCtion SQUare /*Sets the waveform type to Square for CH1.*/ :SOURce1:FUNCtion? /*Queries the waveform type for CH1. The query returns SQU.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 118 Arb (Advanced) to 10 ns for CH1.*/ :SOURce1:FUNCtion:ADVance:ARB:EDGE? /*Queries the edge time of the Arb (Advanced) for CH1. The query returns +1.00000000000000E-8.*/ 3.11.9.2 [:SOURce[<n>]]:FUNCtion:ADVance:ARB:FILTer Syntax [:SOURce[< n >]]:FUNCtion:ADVance:ARB:FILTer < type > n >]]:FUNCtion:ADVance:ARB:FILTer? [:SOURce[< DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 119 Advanced mode for CH1. The query returns STEP.*/ 3.11.9.3 [:SOURce[<n>]]:FUNCtion:ADVance:ARB:LOAD Syntax n >]]:FUNCtion:ADVance:ARB:LOAD < file_name > [:SOURce[< Description Loads the Arb file in the Advanced mode for the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 120 Name Type Range Default <n> Discrete {1|2} <sample_rate> Real 1 μSa/s to 1.25 GSa/s 1 kSa/s Remarks When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 121 :SOURce1:FUNCtion:ADVance:ARB:STATe 1 /*Enables the Arb function in the Advanced mode for CH1.*/ :SOURce1:FUNCtion:ADVance:ARB:STATe? /*Queries the on/off status of the Arb function in the Advanced mode for CH1. The query returns 1.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 122 3.11.10.2 [:SOURce[<n>]]:FUNCtion:ADVance:IQ:POWer Syntax n >]]:FUNCtion:ADVance:IQ:POWer {< value >|< lim >} [:SOURce[< n >]]:FUNCtion:ADVance:IQ:POWer? [< lim >] [:SOURce[< Description Sets or queries the output power of the IQ wave. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 123 Sets or queries the center frequency of the IQ wave in the Advanced mode for the specified channel. Parameter Name Type Range Default <n> Discrete <frequency> Real 0 to 500 MHz 100 MHz <lim> Discrete {MINimum|MAXimum} Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 124 ALL1: a sequence in which all bits are 1. ALL0: a sequence in which all bits are 0. PRBSn: set the type to PRBS9, PRBS11, PRBS15, PRBS16, PRBS20, PRBS21, or PRBS23. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 125 Return Format The query returns the data length in scientific notation. For example, the query might return +5.000000000000000E+03, indicating that the data length of the IQ waveform is 5000. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 126 IQ wave for CH1. The query returns +5.000000000000000E +03.*/ 3.11.10.7 [:SOURce[<n>]]:FUNCtion:ADVance:IQ:SOURce:ALPHa Syntax n >]]:FUNCtion:ADVance:IQ:SOURce:ALPHa {< alpha >|< lim >} [:SOURce[< n >]]:FUNCtion:ADVance:IQ:SOURce:ALPHa? [< lim >] [:SOURce[< DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 127 >]]:FUNCtion:ADVance:IQ:SOURce:CTYPe < type > [:SOURce[< n >]]:FUNCtion:ADVance:IQ:SOURce:CTYPe? [:SOURce[< Description Sets or queries the encoding type of the IQ waveform in the Advanced mode for the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 128 >]]:FUNCtion:ADVance:IQ:SOURce:FILTer? [:SOURce[< Description Sets or queries the filter type of the IQ wave in the Advanced mode for the specified channel. Parameter Name Type Range Default <n> Discrete DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 129 Sets or queries the oversampling of the IQ wave in the Advanced mode for the specified channel. Parameter Name Type Range Default <n> Discrete <over> Integer 1 to 16 <lim> Discrete {MINimum|MAXimum} Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 130 1, and CH2 cannot be operated. • When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. Return Format The query returns the modulation type, for example, QPSK. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 131 IQ modulation in the Advanced mode for CH1. The query returns 1.*/ 3.11.11 [:SOURce[<n>]]:FUNCtion:ADVance:MPULse (Optional) [:SOURce[<n>]]:FUNCtion:ADVance:MPULse commands are used to set or query the Multi-pulse waveform parameters in the Advanced mode. The Multi-pulse option needs to be installed. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 132 Name Type Range Default <n> Discrete {1|2} <delay> Real 5 μs to 1 s 500 ms Remarks When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 133 :SOURce1:FUNCtion:ADVance:MPULse:EDGE? /*Queries the edge time of the Multi-pulse waveform for CH1. The query returns 1.00000000000000E-8.*/ 3.11.11.4 [:SOURce[<n>]]:FUNCtion:ADVance:MPULse:HWIDth Syntax n >]]:FUNCtion:ADVance:MPULse:HWIDth < num >,< width > [:SOURce[< n >]]:FUNCtion:ADVance:MPULse:HWIDth? < num > [:SOURce[< Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 134 When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. Return Format The query returns the high level durations of all pulses separated by comma. For example, the query might return DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 135 The query returns FPT, TOP, CENT, or BOTT. Examples :SOURce1:FUNCtion:ADVance:MPULse:IDLE TOP /*Sets the idle level of the Multi-pulse waveform to the level at the top point of the waveform for CH1.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 136 +5.000000000000000E-06.*/ 3.11.11.8 [:SOURce[<n>]]:FUNCtion:ADVance:MPULse:LWIDth:ALL? Syntax n >]]:FUNCtion:ADVance:MPULse:LWIDth:ALL? [:SOURce[< Description Queries the low level durations of all pulses for the specified channel. Parameter Name Type Range Default <n> Discrete {1|2} DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 137 :SOURce1:FUNCtion:ADVance:MPULse:NUMBer 5 /*Sets the number of pulses of the Multi-pulse waveform to 5 for CH1.*/ :SOURce1:FUNCtion:ADVance:MPULse:NUMBer? /*Queries the number of pulses of the Multi-pulse waveform for CH1. The query returns 5.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 138 The query returns 1.*/ 3.11.11.11 [:SOURce[<n>]]:FUNCtion:ADVance:MPULse:TRIGger:SOURce Syntax n >]]:FUNCtion:ADVance:MPULse:TRIGger:SOURce < source > [:SOURce[< n >]]:FUNCtion:ADVance:MPULse:TRIGger:SOURce? [:SOURce[< Description Sets or queries the trigger mode of the Multi-pulse waveform for the specified channel. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 139 3.11.11.12 [:SOURce[<n>]]:FUNCtion:ADVance:MPULse:TRIGger:TIMer Syntax n >]]:FUNCtion:ADVance:MPULse:TRIGger:TIMer < time > [:SOURce[< n >]]:FUNCtion:ADVance:MPULse:TRIGger:TIMer? [:SOURce[< Description Sets or queries the internal trigger timer of the Multi-pulse waveform for the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 140 [:SOURce[< n >]]:FUNCtion:ADVance:MPULse:TRIGger:TTYPe? [:SOURce[< Description Sets or queries the external trigger type of the Multi-pulse waveform for the specified channel. Parameter Name Type Range Default <n> Discrete {1|2} DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 141 Multi-tone waveform parameters in the Advanced mode. The Multi-tone option needs to be installed. 3.11.12.1 [:SOURce[<n>]]:FUNCtion:ADVance:MTONe:APPLy Syntax n >]]:FUNCtion:ADVance:MTONe:APPLy [:SOURce[< Description Applies the Multi-tone settings to the specified channel. Parameter Name Type Range Default <n> Discrete {1|2} Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 142 :SOURce1:FUNCtion:ADVance:MTONe:LOW 2000000 /*Sets the start frequency of the Multi-tone function to 2 MHz for CH1.*/ :SOURce1:FUNCtion:ADVance:MTONe:LOW? /*Queries the start frequency of the Multi-tone function for CH1. The query returns +2.00000000000000E+06.*/ DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 143 >]]:FUNCtion:ADVance:MTONe:SPACing < frequency > n >]]:FUNCtion:ADVance:MTONe:SPACing? [:SOURce[< Description Sets or queries the spacing between tones (Spacing) of the Multi-tone waveform in the Advanced mode for the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 144 When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. Return Format The query returns the sample rate in scientific notation. For example, the query might return 1.250000E+09, indicating that the sample rate is 1.25 GSa/s. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 145 Multi-tone function for CH1. The query returns 1.*/ 3.11.12.7 [:SOURce[<n>]]:FUNCtion:ADVance:MTONe:TONE:PHASe Syntax [:SOURce[< n >]]:FUNCtion:ADVance:MTONe:TONE:PHASe < m >,{< phase >|< lim >} n >]]:FUNCtion:ADVance:MTONe:TONE:PHASe? < m >[,< lim >] [:SOURce[< Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 146 Sets or queries the gain of the specified tone of the Multi-tone waveform in the Advanced mode for the specified channel. Parameter Name Type Range Default <n> Discrete {1|2} <num> Integer 1 to 16 DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 147 1 to 16 <bool> Bool {0|1|OFF|ON} 1|ON Remarks • <m> specifies the tone number of the Multi-tone waveform. • When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 148 When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. Return Format None. Examples :SOURce1:FUNCtion:ADVance:PATTern:APPLy /*Applies the pattern generator settings to CH1.*/ 3.11.13.2 [:SOURce[<n>]]:FUNCtion:ADVance:PATTern:B4B5:STATe Syntax n >]]:FUNCtion:ADVance:PATTern:B4B5:STATe < bool > [:SOURce[< n >]]:FUNCtion:ADVance:PATTern:B4B5:STATe? [:SOURce[< DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 149 {ON|1|OFF|0} 0|OFF Remarks • The 8b/10b encoding can be enabled only when the data format of the input pattern or the imported file is set to KD symbol. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 150 8b/10b encoding of the pattern generator to NEGative for CH1.*/ :SOURce1:FUNCtion:ADVance:PATTern:B8B10:DISParity? /*Queries the disparity of the 8b/10b encoding of the pattern generator for CH1. The query returns NEG.*/ DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 151 >]]:FUNCtion:ADVance:PATTern:DATA? [:SOURce[< Description Sets or queries the code pattern of the pattern generator for the specified channel. Parameter Name Type Range Default <n> Discrete {1|2} <type> Discrete {BIN|HEX|SYMBol} Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 152 Name Type Range Default <n> Discrete {1|2} Remarks When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. Return Format The query returns BIN, HEX, or SYMB. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 153 >]]:FUNCtion:ADVance:PATTern:FILE:PATH < path > [:SOURce[< n >]]:FUNCtion:ADVance:PATTern:FILE:PATH? [:SOURce[< Description Sets or queries the file path of the file imported to the pattern generator for the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 154 3.11.13.10 [:SOURce[<n>]]:FUNCtion:ADVance:PATTern:SOURce Syntax n >]]:FUNCtion:ADVance:PATTern:SOURce < source > [:SOURce[< n >]]:FUNCtion:ADVance:PATTern:SOURce? [:SOURce[< Description Sets or queries the input data type of the pattern generator for the specified channel. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 155 Sets or queries the on/off status of the pattern generator in the Advanced mode for the specified channel. Parameter Name Type Range Default <n> Discrete {1|2} <bool> Bool {ON|1|OFF|0} 0|OFF Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 156 • When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. Return Format The query returns TTL, CMOS5.0, CMOS3.3, CMOS2.5, CMOS1.8, ECL, PECL, or USER. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 157 :SOURce1:FUNCtion:ADVance:PRBS:EDGE? /*Queries the PRBS edge time for CH1. The query returns +5.00000000000000E-9.*/ 3.11.14.2 [:SOURce[<n>]]:FUNCtion:ADVance:PRBS:RATE Syntax n >]]:FUNCtion:ADVance:PRBS:RATE {< rate >|< lim >} [:SOURce[< n >]]:FUNCtion:ADVance:PRBS:RATE? [< lim >] [:SOURce[< Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 158 The setting range of PRBS is from PRBS3 to PRBS32. The sequence length of PRBSn is 2 • When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 159 :SOURce1:FUNCtion:PRBS:STATe ON /*Enables the PRBS function in the Advanced mode for CH1.*/ :SOURce1:FUNCtion:PRBS:STATe? /*Queries the on/off status of the PRBS function in the Advanced mode for CH1. The query returns 1.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 160 Applies all waveform and loop settings to the sequence for the specified channel. Queries whether the waveform and loop setting modifications are applied to the sequence for the specified channel. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 161 When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. Return Format None. Examples :SOURce1:FUNCtion:ADVance:SEQuence:CLEar /*Clears all waveform and loop data of the sequence for CH1.*/ 3.11.15.4 [:SOURce[<n>]]:FUNCtion:ADVance:SEQuence:COUNt? Syntax n >]]:FUNCtion:ADVance:SEQuence:COUNt? [:SOURce[< Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 162 • When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. Return Format None. Examples :SOURce1:FUNCtion:ADVance:SEQuence:DELete 3 /*Deletes the third step of the sequence waveform for CH1.*/ DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 163 +1.000000000000000E-08.*/ 3.11.15.7 [:SOURce[<n>]]:FUNCtion:ADVance:SEQuence:FILTer Syntax n >]]:FUNCtion:ADVance:SEQuence:FILTer < filter > [:SOURce[< n >]]:FUNCtion:ADVance:SEQuence:FILTer? [:SOURce[< Description Sets or queries the filter mode of the sequence waveform for the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 164 Inserts a step to the specified position of the sequence waveform for the specified channel. Parameter Name Type Range Default <n> Discrete {1|2} <index> Integer 1 to 512 DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 165 ) is received during the playout of the current step. • MANual: An event jump occurs when a manual trigger signal is received during the playout of the current step. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 166 <sn> defines the specified step to go to. • NEXT enables the sequence to go to the next step. • FIRSt enables the sequence to go to the first step. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 167 NEXT, FIRSt, or LAST step to jump to. You can also use <sn> to self- define the step number. • This command is valid only when an event jump [:SOURce[<n>]]:FUNCtion:ADVance:SEQuence:ITEM:EVENt ) is active for the specified step. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 168 (representing the lengths of the sequence steps) separated by ",". Examples :SOURce1:FUNCtion:ADVance:SEQuence:ITEM:LENGth? 1 /*Queries the length of step 1 for CH1. The query returns 100.*/ DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 169 1 of the sequence waveform to 10 for CH1.*/ :SOURce1:FUNCtion:ADVance:SEQuence:ITEM:PERiod? 1 /*Queries the loop of step 1 of the sequence waveform for CH1. The query returns 10.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 170 2 of CH1.*/ :SOURce1:FUNCtion:ADVance:SEQuence:ITEM:WAIT? 2 /*Queries the waiting for trigger type for step 2 of CH1. The query returns TRG.*/ DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 171 • The parameter <wavename> is the name of the instrument's built-in waveform. Its range is {DC|ABSSINE|ABSSINEHALF|AMPALT|ATTALT|GAUSSPULSE| NEGRAMP|NPULSE|PPULSE|SINETRA|SINEVER|STAIRDN|STAIRUD|STAIRUP| TRAPEZIA|BANDLIMITED|BLASEIWAV|BUTTERWORTH|CHEBYSHEV1| CHEBYSHEV2|COMBIN|CPULSE|CWPULSE|DAMPEDOSC|DUALTONE|GAMMA| GATEVIBR|LFMPULSE|MCNOISE|NIMHDISCHARGE|PAHCUR|QUAKE|RADAR| RIPPLE|ROUNDHALF|STEPRESP|SWINGOSC|TV|VOICE|THREEAM|THREEFM| THREEPFM|THREEPM|THREEPWM|CARDIAC|EOG|EEG|EMG|PULSILOGRAM| RESSPEED|LFPULSE|TENS1|TENS2|TENS3|IGNITION|ISO167502SP|ISO167502VR| ISO76372TP1|ISO76372TP2A|ISO76372TP3A|ISO76372TP2B|ISO76372TP3B| ISO76372TP4|ISO76372TP5A|ISO76372TP5B|SCR|SURGE|AIRY|BESSELJ|BESSELY| CAUCHY|CUBIC|DIRICHLET|ERF|ERFC|ERFCINV|ERFINV|EXPFALL|EXPRISE|GAUSS| HAVERSINE|LAGUERRE|LAPLACE|LEGEND|LOG|LOGNORMAL|LORENTZ| MAXWELL|RAYLEIGH|VERSIERA|WEIBULL|X2DATA|COSH|COSINT|COT| Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 172 >]]:FUNCtion:ADVance:SEQuence:SRATe? [< lim >] Description Sets or queries the sample rate of the sequence waveform for the specified channel. Parameter Name Type Range Default <n> Discrete {1|2} DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 173 Multi-tone, Pattern, or IQ output modes will enable or disable the Advanced mode automatically. • When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. Return Format The query returns 0 or 1. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 174 100 μs for CH1.*/ :SOURce1:FUNCtion:ADVance:SEQuence:TIMer? /*Queries the internal trigger interval of the sequence for CH1. The query returns 1.00000000000000E-4.*/ 3.11.15.19 [:SOURce[<n>]]:FUNCtion:ADVance:SEQuence:TTYPe Syntax n >]]:FUNCtion:ADVance:SEQuence:TTYPe < type > [:SOURce[< DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 175 >]]:FUNCtion:ADVance[:STATe] < bool > n >]]:FUNCtion:ADVance[:STATe]? [:SOURce[< Description Sets or queries the on/off status of the Advanced mode. Parameter Name Type Range Default <n> Discrete {1|2} <bool> Bool {0|1|OFF|ON} 0|OFF Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 176 • The parameter <arb> is used to set the built-in Arb type. The range is {DC| ABSSINE|ABSSINEHALF|AMPALT|ATTALT|GAUSSPULSE|NEGRAMP|NPULSE| PPULSE|SINETRA|SINEVER|STAIRDN|STAIRUD|STAIRUP|TRAPEZIA|BANDLIMITED| BLASEIWAV|BUTTERWORTH|CHEBYSHEV1|CHEBYSHEV2|COMBIN|CPULSE| CWPULSE|DAMPEDOSC|DUALTONE|GAMMA|GATEVIBR|LFMPULSE|MCNOISE| NIMHDISCHARGE|PAHCUR|QUAKE|RADAR|RIPPLE|ROUNDHALF|STEPRESP| SWINGOSC|TV|VOICE|THREEAM|THREEFM|THREEPFM|THREEPM|THREEPWM| CARDIAC|EOG|EEG|EMG|PULSILOGRAM|RESSPEED|LFPULSE|TENS1|TENS2|TENS3| IGNITION|ISO167502SP|ISO167502VR|ISO76372TP1|ISO76372TP2A| ISO76372TP3A|ISO76372TP2B|ISO76372TP3B|ISO76372TP4|ISO76372TP5A| ISO76372TP5B|SCR|SURGE|AIRY|BESSELJ|BESSELY|CAUCHY|CUBIC|DIRICHLET| DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 177 [:SOURce[<n>]]:FUNCtion:PULSe:DCYCle Syntax n >]]:FUNCtion:PULSe:DCYCle {< percent >|< lim_set >} [:SOURce[< n >]]:FUNCtion:PULSe:DCYCle? [< lim_query >] [:SOURce[< Description Sets or queries the pulse duty cycle for the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 178 Sets or queries the period of the pulse waveform for the specified channel. Parameter Name Type Range Default <n> Discrete {1|2} Remarks <seconds> Real Refer to 1 ms <lim_set> Discrete {MAXimum|MINimum|DEFault} DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 179 Sets or queries the leading edge time of the pulse for the specified channel. Parameter Name Type Range Default <n> Discrete {1|2} <seconds> Real 1.4 ns to 1 s 1.4 ns Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 180 Sets or queries the trailing edge time of the pulse for the specified channel. Parameter Name Type Range Default <n> Discrete {1|2} <seconds> Real 1.4 ns to 1 s 1.4 ns <lim_set> Discrete {MAXimum|MINimum|DEFault} <lim_query> Discrete {MAXimum|MINimum} DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 181 Discrete {MAXimum|MINimum|DEFault} <lim_query> Discrete {MAXimum|MINimum} Remarks • Pulse width is the time from the 50% of a pulse's rising edge to the 50% of the next falling edge. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 182 [:SOURce[<n>]]:APPLy:RAMP • Sending overwrites the current symmetry setting and sets the symmetry to 99.9%. • When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 183 • Sending [:SOURce[<n>]]:APPLy:SQUare overwrites the current duty cycle setting and sets the duty cycle to 50%. • When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 184 When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. Return Format The query returns the square period in scientific notation. For example, the query might return +1.000000000000000E+00, indicating that the square period is 1 s. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 185 ) of different models, refer to Table 3.55 Range of Continuous Waveform Frequency • This setup command is valid only when the harmonic type [:SOURce[<n>]]:HARMonic[:TYPE] ) is set to Combine (COMBine). Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 186 ) and the frequency/period setting. • You can use <all> to query the amplitudes of all harmonics. • When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 187 <lim_query> Discrete {MINimum|MAXimum} Remarks • You can use <all> to query the phases of all harmonics. • When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 188 When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. Return Format The query returns the harmonic order in scientific notation. For example, the query might return +1.000000000000000E+01, indicating that the harmonic order is 10. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 189 1 Vpp. Examples :SOURce1:HARMonic:ORDer:AMPLitude 1 /*Sets the amplitude of the current harmonic component of the order harmonic to 1 Vpp for CH1.*/ :SOURce1:HARMonic:ORDer:AMPLitude? /*Queries the amplitude of the Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 190 :SOURce1:HARMonic:ORDer:PHASe? /*Queries the phase of the current harmonic in the order harmonic for CH1. The query returns +1.000000000000000E+01.*/ 3.11.21.7 [:SOURce[<n>]]:HARMonic[:TYPE] Syntax n >]]:HARMonic[:TYPE] < type > [:SOURce[< n >]]:HARMonic[:TYPE]? [:SOURce[< DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 191 >]]:MARKer:FREQuency? [< lim_query >] [:SOURce[< Description Sets or queries the mark frequency for the specified channel. Parameter Name Type Range Default <n> Discrete {1|2} Remarks <frequency> Real Refer to 550 Hz Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 192 The two channels cannot be set to the same channel, and the parameter <n> must be consistent with the base channel specified :SYNChro:BENChmark . Otherwise, the channel copy operation fails. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 193 • When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 194 When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. Return Format The query returns the start phase in scientific notation. For example, the query might return +5.000000000000000E+01, indicating that the start phase is 50°. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 195 CH1.*/ :SOURce1:PHASe:COUPle:MODE? /*Queries the type of the phase coupling mode for CH1. The query returns OFFS.*/ 3.11.25.3 [:SOURce[<n>]]:PHASe:COUPle:OFFSet Syntax [:SOURce[< n >]]:PHASe:COUPle:OFFSet < offset > Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 196 Description Sets or queries the phase ratio of the phase coupling for the specified channel. Parameter Name Type Range Default <n> Discrete {1|2} <ratio> Real 0.01 to 100 DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 197 • The coupling mode of the base channel cannot be enabled. You can :SYNChro:BENChmark to query the current base channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 198 [:SOURce[<n>]]:PM commands are used to set and query the PM parameters such as the phase deviation, modulating waveform frequency, modulation source, modulating waveform, and the on/off status of the PM modulation. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 199 :SOURce1:PM:DEViation? /*Queries the PM phase deviation for CH1. The query returns +5.000000000000000E+01.*/ 3.11.26.2 [:SOURce[<n>]]:PM:INTernal:FREQuency Syntax n >]]:PM:INTernal:FREQuency {< frequency >|< lim_set >} [:SOURce[< [:SOURce[< n >]]:PM:INTernal:FREQuency? [< lim_query >] Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 200 >]]:PM:INTernal:FUNCtion < function > [:SOURce[< n >]]:PM:INTernal:FUNCtion? [:SOURce[< Description Sets or queries the PM modulating waveform for the specified channel. Parameter Name Type Range Default <n> Discrete {1|2} DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 201 CH1. The query returns SQU.*/ 3.11.26.4 [:SOURce[<n>]]:PM:INTernal:FUNCtion:ARBitrary Syntax n >]]:PM:INTernal:FUNCtion:ARBitrary < arb > [:SOURce[< n >]]:PM:INTernal:FUNCtion:ARBitrary? [:SOURce[< Description Sets or queries the modulating waveform (Arb) type of PM for the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 202 Arb, you can use this command to select the Arb type as the modulating waveform. • When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 203 The query returns INT or EXT. Examples :SOURce1:PM:SOURce INTernal /*Sets the PM modulation source to internal modulation source for CH1.*/ :SOURce1:PM:SOURce? /*Queries the PM modulation source for CH1. The query returns INT.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 204 PSK rate, modulation phase, modulation polarity, modulation source, and the on/off status of the PSK modulation function. 3.11.27.1 [:SOURce[<n>]]:PSKey:INTernal:RATE Syntax n >]]:PSKey:INTernal:RATE {< rate >|< lim >} [:SOURce[< DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 205 >]]:PSKey:PHASe {< phase >|< lim_set >} [:SOURce[< n >]]:PSKey:PHASe? [< lim_query >] [:SOURce[< Description Sets or queries the PSK modulation phase for the specified channel. Parameter Name Type Range Default <n> Discrete {1|2} Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 206 Type Range Default <n> Discrete {1|2} <polarity> Discrete {POSitive|NEGative} POSitive Remarks • The PSK modulation polarity can be set to the following: POSitive: positive polarity. NEGative: negative polarity. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 207 The query returns FRON or REAR. Examples :SOURce1:PSKey:PORT FRONt /*Sets the PSK external modulation port to front port for CH1.*/ :SOURce1:PSKey:PORT? /*Queries the PSK external modulation port for CH1. The query returns FRON.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 208 CH1.*/ :SOURce1:PSKey:SOURce? /*Queries the PSK modulation source for CH1. The query returns INT.*/ 3.11.27.6 [:SOURce[<n>]]:PSKey:STATe Syntax n >]]:PSKey:STATe < bool > [:SOURce[< n >]]:PSKey:STATe? [:SOURce[< DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 209 [:SOURce[<n>]]:PWM:DEViation Syntax n >]]:PWM:DEViation {< deviation >|< lim_set >} [:SOURce[< n >]]:PWM:DEViation? [< lim_query >] [:SOURce[< Description Sets or queries the PWM width deviation for the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 210 Sets or queries the PWM duty cycle deviation for the specified channel. Parameter Name Type Range Default <n> Discrete {1|2} Remarks <percent> Real Refer to <lim_set> Discrete {MINimum|MAXimum|DEFault} DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 211 2 mHz to 1 MHz 100 Hz <lim_set> Discrete {MINimum|MAXimum|DEFault} <lim_query> Discrete {MINimum|MAXimum} Remarks • This command is available only when internal modulation source [:SOURce[<n>]]:PWM:SOURce ) is selected. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 212 SQUare: Square with 50% duty cycle. TRIangle: Triangle with 50% symmetry. RAMP: UpRamp with 100% symmetry. NRAMp: DnRamp with 0% symmetry. NOISe: white gaussian noise. ARB: arbitrary waveform. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 213 The parameter <arb> is used to set the built-in waveform type. The range is : ABSSINE|ABSSINEHALF|AMPALT|ATTALT|GAUSSPULSE|NEGRAMP|NPULSE| PPULSE|SINETRA|SINEVER|STAIRDN|STAIRUD|STAIRUP|TRAPEZIA|BANDLIMITED| BLASEIWAV|BUTTERWORTH|CHEBYSHEV1|CHEBYSHEV2|COMBIN|CPULSE| CWPULSE|DAMPEDOSC|DUALTONE|GAMMA|GATEVIBR|LFMPULSE|MCNOISE| NIMHDISCHARGE|PAHCUR|QUAKE|RADAR|RIPPLE|ROUNDHALF|STEPRESP| SWINGOSC|TV|VOICE|THREEAM|THREEFM|THREEPFM|THREEPM|THREEPWM| CARDIAC|EOG|EEG|EMG|PULSILOGRAM|RESSPEED|LFPULSE|TENS1|TENS2| TENS3|IGNITION|ISO167502SP|ISO167502VR|ISO76372TP1|ISO76372TP2A| ISO76372TP3A|ISO76372TP2B|ISO76372TP3B|ISO76372TP4|ISO76372TP5A| ISO76372TP5B|SCR|SURGE|AIRY|BESSELJ|BESSELY|CAUCHY|CUBIC|DIRICHLET| ERF|ERFC|ERFCINV|ERFINV|EXPFALL|EXPRISE|GAUSS|HAVERSINE|LAGUERRE| LAPLACE|LEGEND|LOG|LOGNORMAL|LORENTZ|MAXWELL|RAYLEIGH|VERSIERA| WEIBULL|X2DATA|COSH|COSINT|COT|COTHCON|COTHPRO|CSCCON|CSCPRO| Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 214 [:SOURce[< n >]]:PWM:SOURce? [:SOURce[< Description Sets or queries the PWM modulation source for the specified channel. Parameter Name Type Range Default <n> Discrete {1|2} <source> Discrete {INTernal|EXTernal} INTernal DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 215 Different settings of the pulse parameters (e.g. frequency, amplitude, offset, pulse width, duty cycle) will affect the output PWM modulated waveform. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 216 Sets or queries the sum ratio of the waveform summing function for the specified channel. Parameter Name Type Range Default <n> Discrete {1|2} <amplitude> Real 0% to 100% <lim_set> Discrete {MINimum|MAXimum|DEFault} <lim_query> Discrete {MINimum|MAXimum} DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 217 Sum frequency is the frequency of the waveform to be added to the current basic waveform. • When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 218 RAMP: UpRamp with 100% symmetry. NRAMp: DnRamp with 0% symmetry. NOISe: white gaussian noise. ARB: arbitrary waveform. • When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 219 The parameter <arb> is used to set the built-in waveform type. The range is : ABSSINE|ABSSINEHALF|AMPALT|ATTALT|GAUSSPULSE|NEGRAMP|NPULSE| PPULSE|SINETRA|SINEVER|STAIRDN|STAIRUD|STAIRUP|TRAPEZIA|BANDLIMITED| BLASEIWAV|BUTTERWORTH|CHEBYSHEV1|CHEBYSHEV2|COMBIN|CPULSE| CWPULSE|DAMPEDOSC|DUALTONE|GAMMA|GATEVIBR|LFMPULSE|MCNOISE| NIMHDISCHARGE|PAHCUR|QUAKE|RADAR|RIPPLE|ROUNDHALF|STEPRESP| SWINGOSC|TV|VOICE|THREEAM|THREEFM|THREEPFM|THREEPM|THREEPWM| CARDIAC|EOG|EEG|EMG|PULSILOGRAM|RESSPEED|LFPULSE|TENS1|TENS2| TENS3|IGNITION|ISO167502SP|ISO167502VR|ISO76372TP1|ISO76372TP2A| ISO76372TP3A|ISO76372TP2B|ISO76372TP3B|ISO76372TP4|ISO76372TP5A| ISO76372TP5B|SCR|SURGE|AIRY|BESSELJ|BESSELY|CAUCHY|CUBIC|DIRICHLET| ERF|ERFC|ERFCINV|ERFINV|EXPFALL|EXPRISE|GAUSS|HAVERSINE|LAGUERRE| LAPLACE|LEGEND|LOG|LOGNORMAL|LORENTZ|MAXWELL|RAYLEIGH|VERSIERA| WEIBULL|X2DATA|COSH|COSINT|COT|COTHCON|COTHPRO|CSCCON|CSCPRO| CSCHCON|CSCHPRO|RECIPCON|RECIPPRO|SECCON|SECPRO|SECH|SINC|SINH| SININT|SQRT|TAN|TANH|ACOS|ACOSH|ACOTCON|ACOTPRO|ACOTHCON| ACOTHPRO|ACSCCON|ACSCPRO|ACSCHCON|ACSCHPRO|ASECCON|ASECPRO| ASECH|ASIN|ASINH|ATAN|ATANH|BARLETT|BARTHANN|BLACKMAN| BLACKMANH|BOHMANWIN|BOXCAR|CHEBWIN|FLATTOPWIN|HAMMING| Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 220 • Waveform summing function is to sum the specified waveform on the basic waveform like Sine, Square, Ramp, and Arb (except DC) and then output the summed waveform. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 221 The maximum value of <time> is limited by the sweep type, trigger source, return time, sweep time, and stop hold time. = Sweep Time + Start Hold Time + Return Time + Stop Hold Time. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 222 Time + Return Time + Stop Hold Time. Linear Sweep: internal trigger source, + 1 ms ≤ 8,000 s; manual/ external trigger source, ≤ 250,000 s. Log/Step Sweep: ≤ 500 s. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 223 + 1 ms ≤ 8,000 s; manual/ external trigger source, ≤ 250,000 s. Log/Step Sweep: ≤ 500 s. • When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 224 It is characterized by "Start Frequency", "Stop Frequency", and "Sweep Time". STEP: step sweep. The instrument "steps" through a list of frequencies during the sweep. The period that the output signal dwells on each DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 225 The query returns 0 or 1. Examples :SOURce1:SWEep:STATe ON /*Enables the Sweep function for CH1.*/ :SOURce1:SWEep:STATe? /*Queries the on/off status of the Sweep function for CH1. The query returns 1.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 226 3.11.30.7 [:SOURce[<n>]]:SWEep:TIME Syntax n >]]:SWEep:TIME {< time >|< lim_set >} [:SOURce[< n >]]:SWEep:TIME? [< lim_query >] [:SOURce[< Description Sets or queries the sweep time for the specified channel. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 227 >]]:TRACk < track > [:SOURce[< n >]]:TRACk? [:SOURce[< Description Sets or queries the state of the channel track function for the specified channel. Parameter Name Type Range Default <n> Discrete {1|2} Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 228 3.11.32.1 [:SOURce[<n>]]:VOLTage Syntax n >]]:VOLTage {< amplitude >|< lim_set >} [:SOURce[< n >]]:VOLTage? [< lim_query >] [:SOURce[< Description Sets or queries the output amplitude for the specified channel. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 229 [:SOURce[< Description Sets or queries the type of the amplitude coupling mode for the specified channel. Parameter Name Type Range Default <n> Discrete {1|2} <mode> Discrete {OFFSet|RATio} RATio Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 230 • When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 231 :SOURce1:VOLTage:COUPle:RATio 2 /*Sets the amplitude ratio of the amplitude coupling to 2 for CH1.*/ :SOURce1:VOLTage:COUPle:RATio? /*Queries the amplitude ratio of the amplitude coupling for CH1. The query returns +2.000000000000000E+00.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 232 The query returns 0 or 1. Examples :SOURce1:VOLTage:COUPle:STATe ON /*Enables the amplitude coupling function for CH1.*/ :SOURce1:VOLTage:COUPle:STATe? /*Queries the on/off status of the amplitude coupling function. The query returns 1.*/ DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 233 3.11.32.7 [:SOURce[<n>]]:VOLTage:LOW Syntax n >]]:VOLTage:LOW {< voltage >|< lim_set >} [:SOURce[< n >]]:VOLTage:LOW? [< lim_query >] [:SOURce[< Description Sets or queries the low level for the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 234 Sets or queries the offset voltage for the specified channel. Parameter Name Type Range Default <n> Discrete {1|2} Remarks <voltage> Real Refer to 0 Vdc <lim_set> Discrete {MINimum|MAXimum|DEFault} DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 235 HighZ. • When [:SOURce[<n>]] or [<n>] is omitted, it is interpreted as CH1. Return Format The query returns VPP, VRMS, or DBM. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 236 :SYSTem:BEEPer:IMMediate /*Issues a single beep immediately.*/ 3.12.2 :SYSTem:BEEPer:STATe Syntax state > :SYSTem:BEEPer:STATe < :SYSTem:BEEPer:STATe? Description Sets or queries the on/off status of the beeper. Parameter Name Type Range Default <state> Bool {1|ON|0|OFF} 1|ON DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 237 The three IP configuration types cannot be all turned off at the same time. :SYSTem:COMMunicate:LAN:UPDate • After sending this command, execute apply the current network setting for the new parameters to take effect. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 238 The query returns 5000.*/ 3.12.3.3 :SYSTem:COMMunicate:LAN:DHCP[:STATe] Syntax bool > :SYSTem:COMMunicate:LAN:DHCP[:STATe] < :SYSTem:COMMunicate:LAN:DHCP[:STATe]? Description Sets or queries the on/off status of the DHCP mode. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 239 The format of <dns> is nnn.nnn.nnn.nnn; wherein, the first nnn ranges from 1 to 223 (excluding 127), and the other three range from 0 to 255. • You are recommended to ask your network administrator for an address available. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 240 The query returns a string. Examples :SYSTem:COMMunicate:LAN:DOMain? /*Queries the domain name. The query returns YYYrigollan.*/ 3.12.3.6 :SYSTem:COMMunicate:LAN:GATeway Syntax gateway > :SYSTem:COMMunicate:LAN:GATeway < :SYSTem:COMMunicate:LAN:GATeway? Description Sets or queries the default gateway. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 241 The parameter <name> is the specified hostname with a maximum length of 28 characters. The name must start with the letter from A to Z. It can contain letters, numbers (0-9), and hyphens (-). Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 242 The query returns the IP address, for example, 172.16.3.128. Examples :SYSTem:COMMunicate:LAN:IPADdress 172.16.3.128 /*Sets the IP address to 172.16.3.128.*/ :SYSTem:COMMunicate:LAN:IPADdress? /*Queries the current IP address. The query returns 172.16.3.128.*/ DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 243 Name Type Range Default Remarks <submask> ASCII string Refer to Remarks • The format of <submask> is nnn.nnn.nnn.nnn.; wherein, the range of "nnn" is from 0 to 255. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 244 The three IP configuration types cannot be all turned off at the same time. :SYSTem:COMMunicate:LAN:UPDate • After sending this command, execute apply the current network setting for the new parameters to take effect. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 245 LAN setting to the non-volatile memory and restarts the LAN drive program using the updated setting.*/ 3.12.3.13 :SYSTem:COMMunicate:USB:INFormation? Syntax :SYSTem:COMMunicate:USB:INFormation? Description Queries the instrument's USB information. Parameter None. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 246 The query returns the system date in character string. The year, month, and day are separated by "-". Examples :SYSTem:DATE 2022,05,01 /*Sets the system date to May 1, 2022.*/ :SYSTem:DATE? /*Queries the system date. The query returns 2022-05-01.*/ DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 247 Range Default <bool> Bool {1|ON|0|OFF} 0|OFF Remarks • This instrument allows you to lock all knobs and keys on the front panel to avoid danger due to misoperation. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 248 Examples :SYSTem:LANGuage ENGLish /*Sets the system language to English.*/ :SYSTem:LANGuage? /*Queries the system language. The query returns ENGL.*/ 3.12.8 :SYSTem:LICense:CATalog? Syntax :SYSTem:LICense:CATalog? Description Queries the options currently activated. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 249 MPULse: Multi-pulse output option. • SEQUence: Sequence output option. • 2RL: memory depth upgrade option. For DG5000 Pro series, the default memory depth is 64 Mpts/CH which can be upgraded to 128 Mpts/CH with the memory depth upgrade option is installed. •...
  • Page 250 To install the option, first purchase the required option to obtain the key, and then use the key to obtain the option license according to the following steps. http://www.rigol.com Log in to the RIGOL official website ( ), click SERVICE CENTRE > License Activation to enter the software license registration interface.
  • Page 251 To install the option, first purchase the required option to obtain the key, and then use the key to obtain the option license according to the following steps. http://www.rigol.com Log in to the RIGOL official website ( ), click SERVICE CENTRE > License Activation to enter the software license registration interface.
  • Page 252 Command System Return Format None. Examples :SYSTem:LICense:INSTall:UDISk "USB:/rigol/license.lic" /*Installs the option using the "license.lic" file in the "rigol" folder of the USB storage device.*/ 3.12.13 :SYSTem:PSTatus Syntax power > :SYSTem:PSTatus < :SYSTem:PSTatus? Description Sets or queries the power status of the instrument.
  • Page 253 0 to 59 Remarks There is a certain delay between the returned time value and the set time value due to the command response time and other factors. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 254 :SYSTem:TOUCh? /*Queries whether the touch screen is enabled. The query returns 0.*/ 3.12.17 :SYSTem:VERSion? Syntax :SYSTem:VERSion? Description Queries the version number of the SCPI used by the system. Parameter None. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 255 After the trigger count is complete, the trigger system enters the idle state. • It is only available for remote mode. :INITiate[<n>]:CONTinuous • The trigger count is valid only when is set to 0|OFF. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 256 20 s. : burst period burst : period of basic waveform (e.g. Sine and Square) wave : burst count cycle [1]: ⌈x⌉ indicates that x is rounded up. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 257 3.13.4 :TRIGger<n>:SLOPe Syntax n >:SLOPe < slope > :TRIGger< n >:SLOPe? :TRIGger< Description Sets or queries the edge type of the external trigger signal for the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 258 Sets or queries the trigger type for the specified channel. Parameter Name Type Range Default <n> Discrete {1|2} <source> Discrete {IMMediate|EXTernal|BUS|TIMer} IMMediate Description • This command is only available for the Burst mode or Sweep mode. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 259 Sets or queries the trigger timer for the specified channel. Parameter Name Type Range Default <n> Discrete {1|2} <timer> Real 1 μs to 8000 s <lim> Discrete {MINimum|MAXimum} Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 260 +1.000000000000000E-00, indicating that the trigger timer is 1 s. Examples :TRIGger1:TIMer 1 /*Sets the trigger timer to 1 s for CH1.*/ :TRIGger1:TIMer? /*Queries the trigger timer for CH1. The query returns +1.000000000000000E-00.*/ DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 261 Use the SCPI commands to realize the following functions: Output an arbitrary waveform (100 Hz frequency, 1 Vpp amplitude, 2 Vdc offset, and 3° start phase) from the CH1 output connector on the front panel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 262 0° start phase); select internal modulation source; set the modulating waveform to Sine, the modulation depth to 80%, and the modulation frequency to 200 Hz; enable the DSSC function. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 263 3 s, the return time to 0.1 s, the start frequency to 100 Hz, and the stop frequency to 1 kHz; enable the frequency mark function and set the mark frequency Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 264 :SOURce1:BURSt:STATe ON /*Enables the burst function for CH1.*/ :SOURce1:BURSt:MODE TRIGgered /*Sets the burst type to N-Cycle for CH1.*/ :TRIGger1:SOURce IMMediate /*Sets the trigger source to internal for CH1.*/ DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 265 :SOURce1:FUNCtion:ADVance:SEQUence:ITEM:JUMP 3,LAST /*Sets the event jump destination of step 3 to Last for CH1.*/ :SOURce1:FUNCtion:ADVance:SEQuence:APPLy /*Applies the settings of the CH1 sequence.*/ :OUTPut1:STATe ON /*Enables the output of CH1.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 266 Programming Preparations Before programming, you need to prepare the following tasks: http://www.rigol.com You can log in to the RIGOL official website ( ) to download the software. Then install the software according to the installation wizard. After Ultra Sigma is installed successfully, NI-VISA library will be completely installed automatically.
  • Page 267 Programming Examples 3. Click Show Block Diagram in the Window menu to create event structure. 4. Add events, including connecting instrument, write operation, read operation, and exit. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 268 Programming Examples a. Connect the instrument (including error processing): DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 269 Programming Examples b. Write operation (including error judgment): Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 270 Programming Examples c. Read operation (including error processing): DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 271 Programming Examples d. Exit: Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 272 Write to write the command into the instrument. If the command is a query command, click Read and the returned value is displayed in the Return field. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 273 4. Click Project > Project1 Properties to open the Project1 – Project Properties dialog box. In the dialog box, click on the General tab and select Form1 from the drop-down list under Startup Object. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 274 C/C++ tab, select Code Generation from the drop-down list under Category. Choose Debug Multithreaded DLL from the drop-down list under Use run-time library. Click OK to close the dialog box. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 275 Select Library files from the drop-down list under Show directories for. Double click the empty space under Directories to enter the specified path of Library files: C:\Program Files\IVI Foundation\VISA\WinNT\lib\msc. Click OK to close the dialog box. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 276 Open the Data item in the Combo Box attribute and input the following command *IDN? manually. c. Open the General item in the Edit Box attribute and select Disabled. d. Name Button as Send and Read. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 277 #include <visa.h> of the VISA library in the header file and then add the following codes: ViSession defaultRM, vi; char buf [256] = {0}; CString s,strTemp; char* stringTemp; ViChar buffer [VI_FIND_BUFLEN]; Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved. DG5000 Pro Programming Guide...
  • Page 278 PC, enter a command (for example, *IDN?) and click Send and Read to execute the command. Then, the reading results will be returned. DG5000 Pro Programming Guide Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.

This manual is also suitable for:

Dg5252 proDg5352 proDg5502 pro