Rigol DP2000 Series Programming Manual

Rigol DP2000 Series Programming Manual

Programmable linear dc power supply
Hide thumbs Also See for DP2000 Series:
Table of Contents

Advertisement

Quick Links

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Rigol DP2000 Series

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

    4.2.1 :APPLy..........................IEEE488.2 Commands....................... 4.3.1 *CLS..........................4.3.2 *ESR?..........................4.3.3 *ESE..........................22 4.3.4 *IDN?..........................23 4.3.5 *OPC..........................23 4.3.6 *OPT?..........................4.3.7 *PSC..........................25 4.3.8 *RCL..........................26 4.3.9 *RST..........................4.3.10 *SAV..........................27 4.3.11 *SRE..........................4.3.12 *STB?..........................4.3.13 *TRG..........................4.3.14 *TST?..........................Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 4 4.7.8 :MEMory:STORe......................43 4.7.9 :MEMory:VALid?......................:OUTPut Commands......................4.8.1 :OUTPut:CVCC?......................45 4.8.2 :OUTPut:MODE?......................4.8.3 :OUTPut:OCP:ALAR?....................4.8.4 :OUTPut:OCP:QUES?....................4.8.5 :OUTPut:OCP:CLEar....................4.8.6 :OUTPut:OCP:DELay....................4.8.7 :OUTPut:OCP[:STATe]....................4.8.8 :OUTPut:OCP:VALue....................50 4.8.9 :OUTPut:OVP:ALAR?....................4.8.10 :OUTPut:OVP:QUES?....................4.8.11 :OUTPut:OVP:CLEar....................4.8.12 :OUTPut:OVP[:STATe]....................4.8.13 :OUTPut:OVP:VALue....................54 Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 5 :STATus:OPERation[:EVENt]?...................70 4.10.4 :STATus:PRESet......................4.10.5 :STATus:QUEStionable:ENABle................71 4.10.6 :STATus:QUEStionable[:EVENt]?................71 4.10.7 :STATus:QUEStionable:INSTrument:ENABle............72 4.10.8 :STATus:QUEStionable:INSTrument[:EVENt]?............ 4.10.9 :STATus:QUEStionable:INSTrument:ISUMmary[<n>]:CONDition?.... 4.10.10 :STATus:QUEStionable:INSTrument:ISUMmary[<n>]:ENABle..... 4.10.11 :STATus:QUEStionable:INSTrument:ISUMmary[<n>][:EVENt]?....76 4.11 :SYSTem Commands......................4.11.1 :SYSTem:BEEPer:IMMediate..................77 4.11.2 :SYSTem:BEEPer[:STATe]................... 4.11.3 :SYSTem:BRIGhtness....................78 4.11.4 :SYSTem:COMMunicate:GPIB[:RDEVice]:ADDRess..........78 4.11.5 :SYSTem:COMMunicate:LAN..................79 4.11.5.1 :SYSTem:COMMunicate:LAN:APPLy............Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 6 :SYSTem:RWLock......................94 4.11.16 :SYSTem:SAMPling.....................95 4.11.17 :SYSTem:SAVer......................96 4.11.18 :SYSTem:SENSe......................4.11.19 :SYSTem:SYNC[:STATe]....................97 4.11.20 :SYSTem:TMODe......................98 4.11.21 :SYSTem:TLOCk......................4.11.22 :SYSTem:VERSion?....................4.12 :TIMEr Commands......................100 4.12.1 :TIMEr:CYCLEs......................100 4.12.2 :TIMEr:CHANNel...................... 4.12.3 :TIMEr:ENDState.......................102 4.12.4 :TIMEr:GROUPs:NUM?................... 4.12.5 TIMEr:GROUP:INDEx....................4.12.6 :TIMEr:GROUP:PARAmeter................... 4.12.7 :TIMEr:GROUP:DELete....................105 Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 7 :TRIGger Commands...................... 4.13.1 :TRIGger:IN[:ENABle]....................118 4.13.2 :TRIGger:IN:IMMEdiate..................119 4.13.3 :TRIGger:IN:RESPonse....................120 4.13.4 :TRIGger:IN:SOURce....................4.13.5 :TRIGger:IN:TYPE..................... 4.13.6 :TRIGger:OUT:POLArity..................4.13.7 :TRIGger:OUT:SOURce................... 4.13.8 :TRIGger:OUT[:ENABle]..................123 Programming Examples......................125 Programming Preparations..................125 LabVIEW Programming Example................Visual Basic Programming Example................130 VisualC++ Programming Example................Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 8 ............Table 4.9 Ranges and default values of voltage/current corresponding to each channel of DP2031 series ....................18 Table 4.33 Range and default value of overvoltage/overcurrent protection ..45 Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 9: Document Overview

    This manual is your guide to control DP2000 series power supply by sending SCPI commands via remote interface. DP2000 series can communicate with the PC via the USB, LAN, or RS232/GPIB interface. http:// For the latest version of this manual, download it from the official website of RIGOL ( www.rigol.com Publication Number PGH09100-1110 Software Version 00.00.01...
  • Page 10 : 32 V/2 A, 32 V/2 A, 6 V/10 A (optional) Note[1]: The CH3 of DP2000 series has two ranges: 6 V/5 A and 6 V/10 A (optional). When it switches to 6 V/10 A, both CH1 and CH2 switch to 32 V/2 A.
  • Page 11: Scpi Introduction

    "|". When using the command, you must select one of the parameters. 2. Vertical Bar | The vertical bar is used to separate multiple parameters. When using the command, you must select one of the parameters. 3. Square Brackets [ ] Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 12 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, time > :TIMEr:TEMPlet:INTErval < Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 13 All the commands are case-insensitive. They can all be in upper case or in lower case. If abbreviation is used, you must input all the capital letters in the command. For example, :STSTem:BRIGhtness? can be abbreviated as :STST:BRIG? Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 14: Scpi Status Register

    (such as :STATus:QUEStionable[:EVENt]? *CLS ) or by sending the clear status command ( *RST The reset command will not clear bits in event registers. Querying an event Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 15 SUMMARY registers report the status of each channel to the channel questionable status register, which in turn reports the channel status to bit13 (ISUM bit) of the Questionable status register. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 16: Questionable Status Register

    (INSTrument summary) summaries the questionable output state of any of the three output channels. :STATus:QUEStionable[:EVENt]? Sending will read the register. To use bit13, you must Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 17: Table 3.1 Definitions Of The Bits In The Questionable Status Register And The

    SUMMARY register. The definitions of the bits in the channel questionable status SUMMARY register and the decimal values corresponding to their binary weights are as shown in the table below. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 18: Table 3.2 Definitions Of The Bits In The Channel Questionable Status Register And

    VOLTage current mode and the voltage is unregulated. The power supply is operating in constant CURRent voltage mode and the current is unregulated. Overvoltage protection occurs. Overcurrent protection occurs. Over-temperature protection occurs. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 19: Standard Event Register

    Device error. A self-test or calibration error occurred. Execution error, including trigger ignore, initialization ignore, setting conflict, data overrange, data too long, and invalid parameter value. Command error. A command syntax error occurred. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 20: Status Byte Register

    (bits must be enabled in the enable register). The power supply is requesting service. One or more bits are set in the operation OPER event register (bits must be enabled in the enable register). Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 21: Command System

    Syntax ch >[,< ch >[,< ch >]] :ANALyzer:COMMon:MEASure:TYPE < :ANALyzer:COMMon:MEASure:TYPE? Description Sets or queries the analysis object of the common analysis function. Parameter Name Type Range Default {CH1_V|CH1_C|CH1_P|CH2_V| <ch> Discrete CH2_C|CH2_P|CH3_V|CH3_C| CH3_P} Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 22: Analyzer:current:measure:type

    CH1 and CH2.*/ :ANALyzer:CURRent:MEASure:TYPE? /*Queries the analysis object of pulse current analysis. The query returns CH1,CH2.*/ 4.1.3 :ANALyzer:CURRent:THRE Syntax ch >,< type >,< bool >,< val > :ANALyzer:CURRent:THRE < Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 23: Analyzer:save:route

    1 A for CH1 pulse current analysis.*/ :ANALyzer:CURRent:THRE? CH1,UP /*Queries the positive pulse threshold for CH1 pulse current analysis. The query returns 1,1.0000.*/ 4.1.4 :ANALyzer:SAVE:ROUTe Syntax dest > :ANALyzer:SAVE:ROUTe < :ANALyzer:SAVE:ROUTe? Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 24: Analyzer:save:state

    The query returns C:/RA.ROF.*/ 4.1.5 :ANALyzer:SAVE:STATe Syntax bool > :ANALyzer:SAVE:STATe < :ANALyzer:SAVE:STATe? Description Sets or queries whether to save the logged data. Parameter Name Type Range Default <bool> Bool {1|0|ON|OFF} Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 25: Analyzer:state

    <bool> Bool {0|1|ON|OFF} Remarks None. Return Format The query returns 0 or 1. Examples :ANALyzer:STATe ON /*Turns on the analyzer.*/ :ANALyzer:STATe? /*Queries the on/off state of the analyzer. The query returns 1.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 26: Analyzer:type

    Table 4.9 Ranges and default values of voltage/current corresponding to each channel of DP2031 series Voltage/Current Voltage/Current Channel (Range) Available Range Default Value DP2031 Range1 0 V~32 V/0 V~3 A 0 V/0.1 A Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 27: Apply

    • <volt> and <curr> determine the voltage and current of the specified channel respectively. If you specify only one value for the parameter, the power supply Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 28: Ieee488.2 Commands

    4.3.1 *CLS Syntax *CLS Description Clears all event registers. Parameter None. Remarks • You can also send command that queries the event register :STATus:QUEStionable[:EVENt]? *ESR? ) to clear the corresponding event register. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 29: Esr

    The query returns a decimal value, which corresponds to the binary-weighted sum of the bits set in the event register of the Standard Event register. For example, the query may return 20. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 30: Ese

    When <enable value> is set to 0, executing this command will clear the enable register of the Standard Event register. *PSC • You can also send (*PSC 1) to clear the enable register of the Standard Event register at the next power-on. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 31: Idn

    Description Queries the instrument’s identification string. Parameter None. Remarks None. Return Format The query returns the ID string in the format of Rigol Technologies,<model>,<serial number>,<software version>. • <model>: the model number. • <serial number>: the serial number. • <software version>: the software version.
  • Page 32: Opt

    Syntax *OPT? Description Queries the installation status of the options. Parameter None. Remarks • The options available for DP2000 include CH3 10 A high range mode and 7.5 kSa/s high-speed sampling option. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 33: Psc

    *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.
  • Page 34: Rcl

    You can also send to recall a previously stored instrument state from the internal memory. Return Format None. Examples *RCL 5 /*Recalls the state file named RIGOL5.RSF stored in the internal memory.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 35: Rst

    ( ), this command is invalid (not overwrite the previous file). :MEMory:STORe • You can send to save the current status to internal/external memory. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 36: Sre

    The query returns a decimal value, which corresponds to the binary-weighted sum of the bits to be enabled in the enable register of the Status Byte register. For example, the query might return +24. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 37: Stb

    SUMMARY register of the Status Byte register. For example, the query might return +72. Examples *STB? /*Queries the SUMMARY register of the Status Byte register. The query returns +72.*/ 4.3.13 *TRG Syntax *TRG Description Generates an event trigger. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 38: Tst

    The power supply performs a power-on self-test. This commands queries the self-test result. Return Format Queries the result of the self-test that the instrument performed. The query returns +0 if it passes and +1 if it fails. Examples None. 4.3.15 *WAI Syntax *WAI Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 39: Instrument Commands

    • The parameters 1, 2, and 3 represent CH1, CH2, and CH3 respectively. • This command uses numbers to substitute the channel identifiers :INSTrument[:SELEct] :INSTrument[:SELEct] . It functions the same as :INSTrument[:SELect] Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 40: Instrument[:Select]

    :INST CH2 /*Selects CH2 as the current channel.*/ :INST? /*Queries the channel currently selected. The query returns CH2:32V/3A.*/ 4.4.3 :INSTrument[:SELEct] Syntax source > :INSTrument[:SELEct] < :INSTrument[:SELEct]? Description Selects the channel to be programmed or queries the channel currently selected. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 41: Lic Commands

    For each instrument, the license is unique. • To acquire the license, you need to purchase the desired option to get the key and then use the key to generate the option license following the steps below. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 42: Lic:install

    Command System www.rigol.com Log in to the RIGOL official website ( ), and click SERVICE CENTRE > SERVICE > License Activation to enter the software license registration interface. In the software license registration interface, input the correct key, serial number (tap >...
  • Page 43: Measure Commands

    Command System www.rigol.com Log in to the RIGOL official website ( ), and click SERVICE CENTRE > SERVICE > License Activation to enter the software license registration interface. In the software license registration interface, input the correct key, serial number (tap >...
  • Page 44: Measure[:Scalar]:Current[:Dc]

    If <source> is omitted, the command queries the current measured at the output terminal of the specified channel. :MEASure[:SCALar]:ALL[:DC]? You can also send to query the voltage, current, and power measured at the output terminal of the specified channel at the same time. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 45: Measure[:Scalar]:Power[:Dc]

    The query returns the power measured on the output terminal of the specified channel, for example, 0.100. Examples :MEAS:POWE? CH1 /*Queries the power measured on the output terminal of CH1. The query returns 0.100.*/ 4.6.4 :MEASure[:SCALar][:VOLTage][:DC]? Syntax source >] :MEASure[:SCALar][:VOLTage][:DC]? [< Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 46: Memory Commands

    3. Bitmap File (BMP) stores the screen capture image file. 4. Log File (ROF) stores the waveform data collected in real time at the current sample rate when the Analyzer is running and the Logger is turned on. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 47: Memory:catalog

    > :MEMory:CDIRectory < :MEMory:CDIRectory? Description Sets or queries the current directory. Parameter Name Type Range Default <directory_name Remarks ASCII string Refer to > Remarks • The parameter <directory_name> must be valid. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 48: Memory:delete

    Command System • Valid external directories include the external memory (D:/ and E:/) and the folders (such as D:/RIGOL) in the external memory. Return Format The query returns the current directory, for example, C:/. Examples :MEMory:CDIRectory C:/ /*Sets the current directory to C disk.*/ :MEMory:CDIRectory? /*Queries the current directory.
  • Page 49: Memory:disk

    This command is valid only when the file has been stored in the specified storage location. *RCL • You can also use to read the specified state file stored in internal memory. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 50: Memory:lock

    The query returns 0 or 1. Examples :MEM:LOCK NEW.RSF,ON /*Locks the file named NEW.RSF in C disk.*/ :MEM:LOCK? NEW.RSF /*Queries whether the file named NEW.RSF in C disk is locked. The query returns 1.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 51: Memory:mdirectory

    Description Saves the file including instrument state file (.RSF) and Arb file (.RTF) with the specified filename in the current directory. Parameter Name Type Range Default Remarks <filename> ASCII string Refer to Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 52: Memory:valid

    :MEM:STOR NEW.RSF /*Saves a state file named NEW in the current directory.*/ :MEM:VAL? NEW.RSF /*Queries whether the the state file named NEW is stored in the current directory. The query returns 1.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 53: Output Commands

    1 mV to 6.6 V/1 mA to 11 A 6.6 V/11 A 4.8.1 :OUTPut:CVCC? Syntax source >] :OUTPut:CVCC? [< Description Queries the output mode (CV, CC, or UR) for the specified channel. Parameter Name Type Range Default <source> Discrete {CH1|CH2|CH3} Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 54: Output:mode

    UR mode is the unregulated mode between CV mode and CC mode. • If <source> is omitted, the command queries the output mode of the current channel. Return Format The query returns CV, CC, or UR. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 55: Output:ocp:alar

    :OUTPut:OCP:ALAR? CH1 /*Queries whether an overcurrent protection (OCP) event occurred on CH1.*/ 4.8.4 :OUTPut:OCP:QUES? Syntax source >] :OUTPut:OCP:QUES? [< Description Queries whether an overcurrent protection (OCP) event occurred on the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 56: Output:ocp:clear

    If <source> is omitted, the command clears an OCP event occurred on the current channel. [:SOURce[<n>]]:CURRent:PROTection:CLEar • You can also send to clear an OCP event that occurred on the specified channel and enable the channel output. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 57: Output:ocp:delay

    The query returns the OCP delay, for example, 200ms. Examples :OUTPut:OCP:DELay CH1 200 /*Sets the OCP delay to 200 ms for CH1.*/ :OUTPut:OCP:DELay? CH1 /*Queries the OCP delay for CH1. The query returns 200ms.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 58: Output:ocp[:State]

    Syntax source >,]{< value >|< lim >} :OUTPut:OCP:VALue [< :OUTPut:OCP:VALue? [< source >][,< lim >] lim >] :OUTPut:OCP:VALue? [< Description Sets or queries the overcurrent protection (OCP) level of the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 59: Output:ovp:alar

    :OUTP:OCP:VAL? CH1 /*Queries the OCP level of CH1. The query returns 5.0000.*/ 4.8.9 :OUTPut:OVP:ALAR? Syntax source >] :OUTPut:OVP:ALAR? [< Description Queries whether an overvoltage protection (OVP) event occurred on the specified channel. Parameter Name Type Range Default <source> Discrete {CH1|CH2|CH3} Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 60: Output:ovp:ques

    You can send to clear the OVP event that occurred on the specified channel. Return Format The query returns 1 or 0. Examples :OUTP:OVP:QUES? CH1 /*Queries whether an OVP event occurred on CH1.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 61: Output:ovp:clear

    :OUTP:OVP:CLE CH1 /*Clears an OVP event that occurred on CH1.*/ 4.8.12 :OUTPut:OVP[:STATe] Syntax source >,]< bool > :OUTPut:OVP[:STATe] [< source >] :OUTPut:OVP[:STATe]? [< Description Sets or queries the on/off state of the overvoltage protection (OVP) function of the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 62: Output:ovp:value

    Sets or queries the overcurrent protection (OVP) level for the specified channel. Parameter Name Type Range Default <source> Discrete {CH1|CH2|CH3} Table 4.33 Range and default value Please refer to <value> Real of overvoltage/overcurrent protection <lim> Discrete {MINimum|MAXimum} Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 63: Output:pair

    OFF: CH1 and CH2 are independent of each other. • PARallel: CH1 and CH2 are connected in parallel (internal). • SERies: CH1 and CH2 are connected in series (internal). Return Format The query returns the connection mode, for example, SERIES. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 64: Output[:State]

    :OUTP CH1,ON /*Enables the output for CH1.*/ :OUTP? CH1 /*Queries whether the CH1 output is enabled. The query returns 1*/ 4.8.16 :OUTPut:TRACk[:STATe] Syntax :OUTPut:TRACk[:STATe] < bool > :OUTPut:TRACk[:STATe]? Description Sets or queries the on/off state of tracking function. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 65: Source Commands

    4.9.1 [:SOURce[<n>]]:CURRent[:LEVel][:IMMediate] [:AMPLitude] Syntax n >]]:CURRent[:LEVel][:IMMediate][:AMPLitude] {< current >| [:SOURce[< lim >|< amp >} < n >]]:CURRent[:LEVel][:IMMediate][:AMPLitude]? [< lim >] [:SOURce[< Description Sets or queries the current of the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 66: Source[]]:Current[:Level]

    4.9.2 [:SOURce[<n>]]:CURRent[:LEVel] [:IMMediate]:STEP[:INCRement] Syntax n >]]:CURRent[:LEVel][:IMMediate]:STEP[:INCRement] {< numeric [:SOURce[< value >|< def >} n >]]:CURRent[:LEVel][:IMMediate]:STEP[:INCRement]? [< def >] [:SOURce[< Description Sets or queries the step size of current for the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 67: Source[]]:Current:protection:clear

    :CURR:STEP? /*Queries the step size for the selected channel. The query returns 0.1000.*/ 4.9.3 [:SOURce[<n>]]:CURRent:PROTection:CLEar Syntax n >]]:CURRent:PROTection:CLEar [:SOURce[< Description Clears an OCP event that occurred on the specified channel and enables the output of the corresponding channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 68: Source[]]:Current:protection[:Level]

    >]]:CURRent:PROTection[:LEVel] {< current >|< lim >} [:SOURce[< n >]]:CURRent:PROTection[:LEVel]? [< lim >] [:SOURce[< Description Sets or queries the overcurrent protection (OCP) level for the specified channel. Parameter Name Type Range Default <n> Integer {1|2|3} Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 69: Source[]]:Current:protection:state

    [:SOURce[< n >]]:CURRent:PROTection:STATe? [:SOURce[< Description Sets or queries the on/off state of the overcurrent protection (OCP) function for the specified channel. Parameter Name Type Range Default <n> Integer {1|2|3} <bool> Bool {ON|OFF|1|0} Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 70: Source[]]:Current:protection:tripped

    You can also send to query whether an OCP event has occurred on the specified channel. [:SOURce[<n>]]:CURRent:PROTection:CLEar • You can send to clear an OCP event that occurred on the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 71: Source[]]:Voltage[:Level][:Immediate][:Amplitude]

    When UP or DOWN is selected, the command steps up or down the voltage by the step size set in [:SOURce[<n>]]:VOLTage[:LEVel][:IMMediate]:STEP[:INCRement] :APPLy • You can also send to set the voltage and current for the specified channel. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 72: Source[]]:Voltage[:Level]

    • <voltage> is the step size specified. DEFault is the default value. The default values of <voltage> are shown in the table below: Channel Default 0.001 V 0.001 V 0.001 V Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 73: Source[]]:Voltage:protection:clear

    If [:SOURce[<n>]] or [<n>] is omitted, the command clears an OVP event occurred on the current channel. :OUTPut:OVP:CLEar • You can send command to clear an OVP event that occurred on the specified channel. Return Format None. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 74: [:Source[]]:Voltage:protection[:Level]

    The query returns the OVP level of the specified channel, for example, 8.800. Examples :VOLT:PROT 8.8 /*Sets the OVP level to 8.8 V for the selected channel.*/ :VOLT:PROT? /*Queries the OVP level for the selected channel. The query returns 8.800.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 75: [:Source[]]:Voltage:protection:state

    :VOLT:PROT:STAT ON /*Enables the OVP function for the current channel.*/ :VOLT:PROT:STAT? /*Queries the on/off state of the OVP function of the current channel. The query returns 1.*/ 4.9.12 [:SOURce[<n>]]:VOLTage:PROTection:TRIPped? Syntax n >]]:VOLTage:PROTection:TRIPped? [:SOURce[< Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 76: Status Commands

    :STATus commands are used to set and query the Questionable Status register and Operation Status register. 4.10.1 :STATus:OPERation:CONDition? Syntax :STATus:OPERation:CONDition? Description Queries the value of the condition register of the Operation Status register. Parameter None. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 77: Status:operation:enable

    Operation Status register. For example, the query might return +16. Examples STATus:OPERation:ENABle 16 /*Enables bit4 in the enable register.*/ :STATus:OPERation:ENABle? /*Queries the enabled bits. The query returns +16.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 78: Status:operation[:Event]

    Sets the enable registers of the Questionable Status register to their power-on defaults. Parameter None. Remarks None. Return Format None. Examples :STATus:PRESet /*Sets the enable registers of the Questionable Status register to their power-on defaults.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 79: Status:questionable:enable

    :STAT:QUES:ENAB? /*Queries the enabled bits in the enable register of the Questionable Status register. The query returns +17.*/ 4.10.6 :STATus:QUEStionable[:EVENt]? Syntax :STATus:QUEStionable[:EVENt]? Description Queries the enable register of the Questionable Status register. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 80: Status:questionable:instrument:enable

    Status Byte register. • When <enable value> is set to 0, executing this command will clear the enable register of the Questionable Status register. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 81: Status:questionable:instrument[:Event]

    Questionable Status register. For example, the query may return +10. Examples :STAT:QUES:INST? /*Queries the event register of the channel Questionable Status register. The query returns +10.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 82: Status:questionable:instrument:isummary[]:Condition

    The query returns +0, +1, +2, or +3. Examples :STAT:QUES:INST:ISUM1:COND? /*Queries the output mode of CH1. The query returns +1.*/ 4.10.10 :STATus:QUEStionable:INSTrument:ISUMmary[<n>]:ENABl Syntax n >]:ENABle < enable value > :STATus:QUEStionable:INSTrument:ISUMmary[< n >]:ENABle? :STATus:QUEStionable:INSTrument:ISUMmary[< Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 83 (OCP, overcurrent protection) in the enable register of the Questionable Status SUMMARY register for CH1.*/ :STAT:QUES:INST:ISUM1:ENAB? /*Queries the enabled bits in the enable register of the Questionable Status SUMMARY register for CH1. The query returns +9.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 84: Status:questionable:instrument:isummary[][:Event]

    Questionable Status SUMMARY register. For example, the query might return +1. Examples :STAT:QUES:INST:ISUM1? /*Queries the value of the event register of the Questionable Status SUMMARY register for CH1. The query returns +1.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 85: System Commands

    Return Format None. Examples None. 4.11.2 :SYSTem:BEEPer[:STATe] Syntax bool > :SYSTem:BEEPer[:STATe] < :SYSTem:BEEPer[:STATe]? Description Sets or queries the on/off state of the beeper. Parameter Name Type Range Default <bool> Bool {ON|OFF|1|0} OFF|0 Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 86: System:brightness

    The query returns an integer, for example, 60. Examples :SYST:BRIG 60 /*Sets the screen brightness to 60%.*/ :SYST:BRIG? /*Queries the screen brightness. The query returns 60.*/ 4.11.4 :SYSTem:COMMunicate:GPIB[:RDEVice]:ADDRess Syntax gpibaddress > :SYSTem:COMMunicate:GPIB[:RDEVice]:ADDRess < Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 87: System:communicate:lan

    Syntax :SYSTem:COMMunicate:LAN:APPLy Description Applies the network parameters currently set. Parameter None. Remarks The new setting is valid only when this command is executed after the LAN parameters are set. Return Format None. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 88: System:communicate:lan:autoip[:State]

    The three IP configuration modes cannot be set to "OFF" at the same time. :SYSTem:COMMunicate:LAN:APPLy • After sending the command, execute apply the network parameters currently set. Return Format The query returns 1 or 0. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 89: System:communicate:lan:dhcp[:State]

    Return Format The query returns 1 or 0. Examples :SYST:COMM:LAN:DHCP ON /*Enables the DHCP mode.*/ :SYST:COMM:LAN:DHCP? /*Queries the on/off state of DHCP. The query returns 1.*/ 4.11.5.4 :SYSTem:COMMunicate:LAN:DNS Syntax :SYSTem:COMMunicate:LAN:DNS < dns > Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 90: System:communicate:lan:ipaddress

    :SYST:COMM:LAN:DNS 172.16.3.2 /*Sets the DNS address to 172.16.3.2.*/ :SYST:COMM:LAN:DNS? /*Queries the current DNS address. The query returns 172.16.3.2.*/ 4.11.5.5 :SYSTem:COMMunicate:LAN:IPADdress Syntax ip > :SYSTem:COMMunicate:LAN:IPADdress < :SYSTem:COMMunicate:LAN:IPADdress? Description Sets or queries the IP address. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 91: System:communicate:lan:gateway

    :SYST:COMM:LAN:DNS? /*Queries the current IP address. The query returns 172.16.3.128.*/ 4.11.5.6 :SYSTem:COMMunicate:LAN:GATEway Syntax gateway > :SYSTem:COMMunicate:LAN:GATEway < :SYSTem:COMMunicate:LAN:GATEway? Description Sets or queries the default gateway. Parameter Name Type Range Default Remarks <gateway> ASCII string Refer to Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 92: System:communicate:lan:mac

    The MAC address (48 bits, namely 6 bytes) is usually expressed in hexadecimal form, for example, 00-2A-A0-AA-E0-56. Return Format The query returns the MAC address, for example, 00-2A-A0-AA-E0-56. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 93: System:communicate:lan:manualip[:State]

    Return Format The query returns 1 or 0. Examples :SYST:COMM:LAN:MAN ON /*Enables the Manual IP mode.*/ :SYST:COMM:LAN:MAN? /*Queries the on/off state of Manual IP. The query returns 1.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 94: System:communicate:lan:smask

    :SYST:COMM:LAN:SMAS 255.255.255.0 /*Sets the subnet mask to 255.255.255.0.*/ :SYST:COMM:LAN:SMAS? /*Queries the subnet mask. The query returns 255.255.255.0.*/ 4.11.6 :SYSTem:COMMunicate:RLSTate Syntax mode > :SYSTem:COMMunicate:RLSTate < :SYSTem:COMMunicate:RLSTate? Description Sets the power supply to remote, local mode, or remote lock mode. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 95: System:communicate:rs232

    :SYSTem:COMMunicate:RLSTate? /*Queries the operation mode. The query returns REMote.*/ 4.11.7 :SYSTem:COMMunicate:RS232 4.11.7.1 :SYSTem:COMMunicate:RS232:BAUD Syntax baud > :SYSTem:COMMunicate:RS232:BAUD < :SYSTem:COMMunicate:RS232:BAUD? Description Sets or queries the baud rate of the RS232 interface. The unit is Baud. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 96: System:communicate:rs232:Dbit

    The query returns 7 or 8. Examples :SYST:COMM:RS232:DBIT 8 /*Sets the data bit of the RS232 interface to 8.*/ :SYST:COMM:RS232:DBIT? /*Queries the data bit of the RS232 interface. The query returns 8.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 97: System:communicate:rs232:Pbit

    :SYST:COMM:RS232:PBIT? /*Queries the parity check. The query returns ODD.*/ 4.11.7.4 :SYSTem:COMMunicate:RS232:SBIT Syntax n > :SYSTem:COMMunicate:RS232:SBIT < :SYSTem:COMMunicate:RS232:SBIT? Description Sets or queries the stop bit of RS232. Parameter Name Type Range Default <n> Discrete {1|2} Remarks None. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 98: System:error[:Next]

    The query returns the name and content of the error message, for example, -113,"Undefined header; keyword cannot be found”. If no error has occurred, the query returns 0,“No error”. Examples None. 4.11.9 :SYSTem:KLOCk:STATe Syntax :SYSTem:KLOCk:STATe < bool > :SYSTem:KLOCk:STATe? Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 99: System:language:type

    :SYST:KLOC:STAT? /*Queries the on/off state of remote lock. The query returns 1.*/ 4.11.10 :SYSTem:LANGuage:TYPE Syntax type > :SYSTem:LANGuage:TYPE < :SYSTem:LANGuage:TYPE? Description Sets or queries the system language. Parameter Name Type Range Default <type> Discrete {EN|CH|DE|ES|FR} Remarks None. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 100: System:local

    At this point, all the front-panel keys can be used. :SYSTem:REMote • You can send to return the power supply from local mode to remote mode. Return Format None. Examples None. 4.11.12 :SYSTem:POWEron Syntax poweron > :SYSTem:POWEron < Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 101: System:print

    Description Queries the byte stream of the current screen image. Parameter None. Remarks None. Return Format The query returns the hexadecimal string of the screen image in bitmap (*.bmp) format. Examples None. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 102: System:remote

    Return Format None. Examples None. 4.11.15 :SYSTem:RWLock Syntax bool >] :SYSTem:RWLock[:STATe] [< Description Enables or disables remote lock. Parameter Name Type Range Default <bool> Bool {1|0|ON|OFF} 0|OFF Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 103: System:sampling

    AUTO Remarks • DP2000 series power supply provides three current sampling modes for CH1 and CH2. You can select “High Curr”, “Low Curr”, or “AUTO”, and the default is “AUTO”. HIGH: The power supply uses the high range current mode.
  • Page 104: System:saver

    :SYSTem:SAMPling? /*Queries the sampling mode. The query returns HIGH.*/ 4.11.17 :SYSTem:SAVer Syntax bool > :SYSTem:SAVer < :SYSTem:SAVer? Description Sets or queries the on/off state of the screen saver function. Parameter Name Type Range Default <bool> Bool {1|0|ON|OFF} Remarks None. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 105: System:sense

    Examples :SYSTem:SENS CH1,ON /*Enables the Sense function of CH1./ :SYSTem:SENS? CH1 /*Queries the on/off state of the Sense function for CH1. The query returns 1.*/ 4.11.19 :SYSTem:SYNC[:STATe] Syntax bool > :SYSTem:SYNC[:STATe] < Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 106: System:tmode

    Default <trackmode> Discrete {SYNC|INDE} INDE Remarks The tracking function is available for the specified channels (CH1 and CH2). You can select the track mode as required. This command functions the same :OUTPut:TRACk[:STATe] Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 107: System:tlock

    The touch screen cannot be used. Return Format The query returns 1 or 0. Examples :SYSTem:TLOCk ON /*Locks the touch screen.*/ :SYSTem:TLOCk? /*Queries whether the touch screen is locked. The query returns 1.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 108: System:version

    >[,< value >] :TIMEr:CYCLEs < :TIMEr:CYCLEs? Description Sets or queries the repetition cycle for the channel currently selected. Parameter Name Type Range Default <cycle> Discrete {N|I} <value> Integer 1 to 99999 Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 109: Timer:channel

    > :TIMEr:CHANNel < :TIMEr:CHANNel? Description Sets or queries the channel currently edited. Parameter Name Type Range Default <ch> Discrete {CH1|CH2|CH3} Remarks None. Return Format The query returns CH1, CH2, or CH3. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 110: Timer:endstate

    :TIME:ENDS LAST /*Sets the end state to “LAST”.*/ :TIME:ENDS? /*Queries the end state. The query returns LAST.*/ 4.12.4 :TIMEr:GROUPs:NUM? Syntax :TIMEr:GROUPs:NUM? Description Queries the number of output groups in the Arb editor. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 111: Timer:group:index

    If there is no data inserted in the current row, it automatically goes to the last group of data in the editor. Return Format The query returns the index number of the group currently edited, for example, 25. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 112: Timer:group:parameter

    Return Format The query returns a string starting with #. For example, the query might return #90000000431,0.500,1.0000,1.000;2,5.500,2.0000,1.000;; wherein, #9000000043 is the data block header, and 1,0.500,1.0000,1.000;2,5.500,2.0000,1.000; are the specified Arb parameters. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 113: Timer:group:delete

    <Groupcount> is the number of groups to be deleted. If not specified, it is 1 by default. Return Format None. Examples :TIMEr:GROUP:INDEx 25 /*Sets the index number of the group currently edited to 25./ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 114: Timer:run

    :TIMEr:RUN SINGle /*Sets the run type to single.*/ :TIMEr:RUN? /*Queries the run type. The query returns SINGle.*/ 4.12.9 :TIMEr[:STATe] Syntax bool > :TIMEr[:STATe] < :TIMEr[:STATe]? Description Sets or queries the run/stop state of the generator. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 115: Timer:templet:construct

    :TIME? /*Queries the run/stop state of the generator. The query returns 1.*/ 4.12.10 :TIMEr:TEMPlet:CONSTruct Syntax :TIMEr:TEMPlet:CONSTruct Description Sets the Arb parameters based on the template currently selected and the parameters set. Parameter None. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 116: Timer:templet:fallrate

    Examples :TIME:TEMP:FALLR 5 /*Sets the fall index of ExpFall to 5.*/ :TIME:TEMP:FALLR? /*Queries the fall index of ExpFall currently set. The query returns 5.*/ 4.12.12 :TIMEr:TEMPlet:INTErval Syntax value > :TIMEr:TEMPlet:INTErval < :TIMEr:TEMPlet:INTErval? Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 117: Timer:templet:invert

    When the invert function is enabled, the instrument will first invert the waveform and then set the waveform parameters. • The invert function is available for Sine, Pulse, and Ramp templates only. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 118: Timer:templet:maxvalue

    2 A.*/ :TIME:TEMP:MAXV 5 /*Sets the maximum voltage to 5 V for the selected template.*/ :TIME:TEMP:MAXV? /*Queries the maximum voltage value for the template currently selected. The query returns 5.000.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 119: Timer:templet:minvalue

    :TIME:TEMP:MINV? /*Queries the minimum current for the template currently selected. The query returns 0.1000.*/ 4.12.16 :TIMEr:TEMPlet:OBJect Syntax obj >[,< value >| MINimum | MAXimum ] :TIMEr:TEMPlet:OBJect < MINimum | MAXimum ] :TIMEr:TEMPlet:OBJect? [ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 120: Timer:templet:period

    :TIME:TEMP:OBJ? /*Queries the editing object and the corresponding constant current or voltage value. The query returns V,2.0000.*/ 4.12.17 :TIMEr:TEMPlet:PERIod Syntax value > :TIMEr:TEMPlet:PERIod < :TIMEr:TEMPlet:PERIod? Description Sets or queries the Period of the waveform. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 121: Timer:templet:points

    :TIME:TEMP:PERI? /*Queries the Period for the selected template. The query returns 15.000.*/ 4.12.18 :TIMEr:TEMPlet:POINTs Syntax value > :TIMEr:TEMPlet:POINTs < :TIMEr:TEMPlet:POINTs? Description Sets or queries the total number of points. Parameter Name Type Range Default <value> Integer 1 to 512 Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 122: Timer:templet:riserate

    The larger the rise index is, the wider the range of the parameters will be. Return Format The query returns an integer between 0 and 10, for example, 5. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 123: Timer:templet:select

    :TIME:TEMP:SEL UP /*Selects the Stair Up template.*/ :TIME:TEMP:SEL? /*Queries the template currently selected. The query returns UP.*/ 4.12.21 :TIMEr:TEMPlet:SYMMetry Syntax value > :TIMEr:TEMPlet:SYMMetry < :TIMEr:TEMPlet:SYMMetry? Description Sets or queries the Symmetry of Ramp. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 124: Timer:templet:width

    The actual available range of <value> is related to the period currently set :TIMEr:TEMPlet:PERIod ). The positive pulse width cannot be larger than the period. Return Format The query returns a real number, for example, 14.000. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 125: Timer:templet:stair

    :TIMEr:TEMPlet:STAIr? /*Queries the number of steps between the maximum and minimum for StairUp. The query returns 30.*/ 4.12.24 :TIMEr:TRIG Syntax trig > :TIMEr:TRIG < :TIMEr:TRIG? Description Sets or queries the Trigger Source. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 126: Trigger Commands

    4.13.1 :TRIGger:IN[:ENABle] Syntax :TRIGger:IN[:ENABle] < d >,< bool > d > :TRIGger:IN[:ENABle]? < Description Sets or queries the on/off state of the trigger input function for the specified data line. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 127: Trigger:in:immediate

    D1. The query returns 1.*/ 4.13.2 :TRIGger:IN:IMMEdiate Syntax :TRIGger:IN:IMMEdiate Description As soon as the trigger system is initiated, the analog hardware will send the trigger signal immediately. Parameter None. Remarks None. Return Format None. Examples None. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 128: Trigger:in:response

    :TRIG:IN:RESP D1,ON /*Sets the output response of D1 trigger input to OutOn.*/ :TRIG:IN:RESP? D1 /*Queries the output response of D1 trigger input. The query returns ON.*/ 4.13.4 :TRIGger:IN:SOURce Syntax d >,< ch > :TRIGger:IN:SOURce < d > :TRIGger:IN:SOURce? < Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 129: Trigger:in:type

    > :TRIGger:IN:TYPE? < Description Sets or queries the trigger type of the trigger input for the specified data line. Parameter Name Type Range Default <d> Discrete {D1|D2|D3|D4} <type> Discrete {RISE|FALL|HIGH|LOW} RISE Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 130: Trigger:out:polarity

    POSitive: The selected data line outputs 3.3 V high level signal when the control source is turned on. • NEGative: The selected data line outputs low level signal (CMOS level) when the control source is turned on. Return Format The query returns POSITIVE or NEGATIVE. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 131: Trigger:out:source

    The query returns CH1.*/ 4.13.8 :TRIGger:OUT[:ENABle] Syntax d >,< bool > :TRIGger:OUT[:ENABle] < d > :TRIGger:OUT[:ENABle]? < Description Sets or queries the on/off state of the trigger output function for the specified data line. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 132 The query returns 0 or 1. Examples :TRIG:OUT D1,ON /*Enables the trigger output function of D1.*/ :TRIG:OUT? D1 /*Queries the on/off state of the D1 trigger output function. The query returns 1.*/ Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 133: Programming Examples

    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 134 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.
  • Page 135 Programming Examples a. Connect the instrument (including error processing): b. Write operation (including error judgment): Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 136 Programming Examples c. Read operation (including error processing): Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 137 Programming Examples d. Exit: Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 138: Visual Basic Programming Example

    2. Click Project > Add Module to open the Add Module dialog box. In the dialog box, click the Existing tab to search for the visa32.bas file in the include folder under the NI-VISA installation path and add the file. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 139 Dim list As Long Dim nmatches As Long Dim matches As String * 200 'Reserve the obtained device number Dim s32Disp As Integer ' Obtain the usb resource of visa Call viOpenDefaultRM(defrm) Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 140: Visualc++ Programming Example

    1. Create a MFC project based on a dialog box. 2. Click Project > Settings to open the Project Setting dialog box. In the dialog box, click the C/C++ tab, select Code Generation from the drop-down list under Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 141 C:\Program Files\IVI Foundation\VISA\WinNT\include. Click OK to close the dialog box. 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: Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 142 Open the Data item in the Com box attribute and input the following command manually: *IDN? c. Open the General item in the Edit Box attribute and select Disabled. d. Name Button as Send and Read. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 143 #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]; ViRsrc matches="buffer"; Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
  • Page 144 9. Save, compile, and run the project to obtain a single exe file. When the instrument is correctly connected to the PC, enter a command (for example, *IDN?) and click Send and Read to execute the command. Then, the reading results will be returned. Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.

This manual is also suitable for:

Dp2031

Table of Contents