RIGOL is a registered trademark of RIGOL Technologies, Inc.
Publicatio n Number
PGH03102-1110
Notices
RIGOL products are protected by patent law in and outside of P.R.C.
RIGOL reserves the right to modify or change parts of or all the specifications and pricing policies at
company’s sole decision.
Information in this publication replaces all previously corre sp onding material.
RIGOL shall not be liable for losses caused by either incidental or consequential in connection with
the furnishing, use or performance of this manual as well as any information contained.
Any part of this document is forbidden to be copied or photocopied or rearranged without prior written
approval of RIGOL.
Product Certification
RIGOL guarantees this product conforms to the national and industrial standards in China as well as the
ISO9001:2008 standard and the ISO14001:2004 standard. Other international standard conformance
certification is in progress.
Contact Us
If you have any problem or requirement when using our products, please contact RIGOL Technologies, Inc.
or your local distributors, or visit: www.rigol.com.
DP800 Programming Guide I
Page 4
RIGOL
Safety Requirement
General Safety Summary
Please review the following safety precautions carefully before putting the instrument into operation so as
to avoid any personal injuries or damages to the instrument and any product connected to it. To prevent
potential hazards, please use the instrument only specified by this manual.
Use Proper Power Cord.
Only the power cord designed for the instrument and author ized by local country could be used.
Ground The Instrument.
The instrument is grounded through the Protective Earth lead of the power cord. To avoid electric shock, it
is essential to connect the earth terminal of power cord to the Protective Earth terminal before any inpu ts or
outputs.
Observe All Terminal Ratings.
To avoid fire or shock hazard, observe all ratings and markers on the instrument and check your manual for
more information about ratings before connecting.
Use Proper Overvoltage Protection.
Make sure that no overvoltage (such as that caused by a thunderstorm) can reach the product, or else the
operator might expose to danger of electrical shock.
Do Not Operate Without Covers.
Do not operate the instrument with covers or panels removed.
Use Proper Fuse.
Please use the specif ied fuses.
Avoid Circuit or Wire Exposure.
Do not touch exposed junctions and components when the unit is powered.
Do Not Operate With Suspected Failures.
If you suspect damage occurs to the instrument, have it inspected by qualified service personnel before
further operations. Any maintenance, adjustment or replacement especially to circuits or accessories must
be performed by RIGOL authorized personnel.
Keep Well Ventilation.
Inadequate ventilati on may cause inc reasing of temperatur e or damages to th e devic e. So please k eep well
ventilated and inspe ct the intake and fan regularly.
Do Not Operate in Wet Conditions.
In order to avoid short circuiting to the interior of the device or electric shock, please do not operate in a
humid environment.
Do Not Operate in an Explosive Atmosphere.
In order to avoid damages to the device or personal injuri es, it is important to oper ate the device away from
an explosive atmosphere.
Keep Product Surfaces Clean and Dry.
To avoid the influence of dust and/or moisture in air, please keep the surface of device clean and dry.
Electrostatic Prevention.
Operate in an electrostatic discharge protective area environment to avoid damages induced by static
II DP800 Programming Guide
Page 5
RIGOL
discharges. Always ground both the internal and external conduct ors of the cable to release static before
connecting.
Handling Sa fety.
Please handle with care during transportation to avoid damages to buttons, knob interfaces and other parts
on the panels.
DP800 Programming Guide III
Page 6
RIGOL
WARNING
CAUTION
DANGER
indicates an injury or hazard may immediately happen.
WARNING
indicates an injury or hazard may be accessible potentially.
CAUTION
Hazardous
Safety
Protective
Chassis
Test
Safety Terms and Symbols
Terms in this Manual. These terms may appear in this manual:
Warning statements indicate the conditions or practices that could result in injury or loss of life.
Caution statements indicate the conditions or practices that could result in damage to this
product or other property.
Terms on the Product. These terms may appear on the Product:
indicates a potential damage to the instrument or other property might occur.
Symbols on the Product. These symbols may appear on the product:
Voltage
Warning
Earth
Terminal
Ground
Ground
IV DP800 Programming Guide
Page 7
RIGOL
Document Overview
This manual introduces how to program the power supply over remote interfaces in details.
Main Topics in this Manual:
Chapter 1 Programming Overview
This chapter introduces how to build the remote communication between the power supply and PC and how
to control the power supply remotely. Besides, it also provides a brief introduction of the SCPI commands.
Chapter 2 Command System
This chapter introduces the syntax, function, parameter and using instruction of each DP800 command in
A-Z order.
Chapter 3 Application Examples
This chapter provides the application examples of the main functions of the power supply. In the application
examples, a series of commands are combined to realize the basic functions of the power supply.
Chapter 4 Programming Demos
This chapter introduces how to program and control DP800 using various development tools, such as Visual
C++, Visual Basic and LabVIEW.
Chapter 5 Appendix
This chapter provides various information, such as the command list and factory setting list.
Tip
For the newest version of this manual, please download it from
www.rigol.com.
Format Conventions in this Manual:
1 Button
The function key at the front panel is denoted by the format of “Button Name (Bold) + Text Box” in the
manual, for example, Utility denotes the “System Auxiliary Function Setting” key.
2 Menu
The menu item is denoted by the format of “Menu Word (Bold) + Character Shading” in the manual,
for example, SysInfo denotes the “System Information” item under Utility.
3 Operation Step
The next step of the operation is denoted by an arrow “” in the manual. For example, Utility
System denotes pressing Utility at the front panel and then pressing System.
DP800 Programming Guide V
Page 8
RIGOL
Content Conventions in this Manual:
DP800 series programmable linear DC power supply includes the following models. The programmable
ranges of the voltage and current for each model are as listed below. Unless otherwise noted, in this
manual, DP831A is taken as an example to illustrate the using method of e ach DP800 series command.
DP831A
Channel Voltage Range Voltage Default Current Range Current Default
CH1 0V to 8.4V 0V 0A to 5.3A 5A
CH2 0V to 32V 0V 0A to 2.1A 2A
CH3 -32V to 0V 0V 0A to 2.1A 2A
DP832A/DP832
Channel Voltage Range Voltage Default Current Range Current Default
CH1 0V to 32V 0V 0A to 3.2A 3A
CH2 0V to 32V 0V 0A to 3.2A 3A
CH3 0V to 5.3V 0V 0A to 3.2A 3A
VI DP800 Programming Guide
Page 9
Contents
RIGOL
Guaranty and Declaration ......................................................................................................... I
Safety Requirement .................................................................................................................. II
General Safety Summary ............................................................................................................. II
Safety Terms and Symbols .......................................................................................................... IV
Document Overview .................................................................................................................. V
Appendix D: Any Question or Comment? .................................................................................. 5-10
X DP800 Programming Guide
Page 13
Chapter 1 Programming Overview RIGOL
Chapter 1 Programming Overview
This chapter introduces how to build the remote communication between the PC and ins trument and
provides an overview of the syntax, symbol, parameter type and abbreviation rules of the SCPI commands.
Main topics of this chapter:
To Build Remote Communication
Remote Control Methods
SCPI Command Overview
DP800 Programming Guide 1-1
Page 14
RIGOL Chapter 1 Programming Overview
LAN USB Device RS232
To Build Remote Communication
You can build the remote communication between DP800 and PC over USB, LAN, RS232 or GPIB (option,
can be extended via the USB-GPIB interface converter) interface.
Note: the end mark of the command sent through RS232 interface is "\r\n".
Operation Steps:
1 Install the Ultra Sigma common PC software
Download the Ultra Sigma common PC software from
instructions.
2 Connect the instrument and PC and configure the interface parameters of the instrument
DP800 supports USB, LAN, RS232 and GPIB (option, can be extended via the USB-GPIB interface
convert er) communicatio n interfaces, as shown in the figure below.
www.rigol.com and install it according to the
Figure 1-1 DP800 Communication Interfaces
(1) Use the USB interface: connect the USB Device interface at the rear panel of DP800 and the USB
Host interface of the PC using USB cable.
(2) Use the LAN interface:
Make sure that your PC is connected to the local network.
Make sure whether your local network supports DHCP or auto IP mode. If not, you need to
acquire the network interface parameters available, including the IP address, subnet mask,
gateway and DNS.
Connect DP800 to the local network using network cable.
Press Utility I/O LAN to configure the IP address, s ubnet mask, gateway an d DNS of
the instrument.
(3) Use the RS232 interface:
Connect the RS232 interface with the PC or data terminal equipment (DTE) using RS232
cable.
Press Utility I/O RS232 to set interface parameters (baud rate, parity and etc) that
match the PC or terminal equipment.
1-2 DP800 Programming Guide
Page 15
Chapter 1 Programming Overview RIGOL
(4) Use the GPIB interface:
Connect the USB-GPIB interface converter to the USB Device interface at the rear panel of
DP800 to extend a GPIB interface.
Connect the instrument with your PC using GPIB cable.
Press Utility I/O GPIB to set the GPIB address of the instrument.
3 Check whether the connection is successful
Run the Ultra Sigma, search for resource, right-click the resource name and selec t “SCPI Panel Control”
in the pop-up menu. E nter the correct co mmand in the pop-up SCPI control panel and click Send Command, Read Response or Send&Read to check whe ther the connection is successful, as
shown in the figure below (take the USB interface as an example).
DP800 Programming Guide 1-3
Page 16
RIGOL Chapter 1 Programming Overview
Remote Control Methods
1 User-defined Programming
You can program and control the instrument using the SCPI (Standard Commands for Programmable
Instruments) commands listed in chapter 2
(such as Visual C++, Visual Basic and LabVIEW). For details, refer to the introductions in chapter 4
Programming Demos.
2 Send SCPI Commands via the PC Software
You can control the power supply remotely by sending SCPI commands via the PC software (Ultra
Sigma) provided by RIGOL
Automation Explorer” of NI (National Instruments Corporation) or the “Agilent IO Libraries Suite” of
Agilent (Agilent Technologies, Inc.).
. Besides, you can also control the instrument using the “Measurement &
Command System in various development environments
SCPI Command Overview
SCPI (Standard Comm ands for Programmable Instruments) is a standardized instrument programming
language that is built upon the standard IEEE488.1 and IEEE 488.2 and conforms t o various standards
(such as the floating point operation rule in IEEE754 standard, ISO646 7-bit coded character for
information intercha nge (equivalent to ASCll programming)). This section introduces the syntax, symbols,
parameters and abbreviation rules of the SCPI commands.
Syntax
SCPI commands present a hierarchical tree structure and contain multiple sub-systems, each of consists of
a root keyword and one or more sub-keywords. The command string usually starts with ":"; the keywords
are separated by ":" and are followed by the parameter settings available; "?" is added at the end of the
command string to indicate query; the command and parameter are separated by "space".
For example,
:SYSTem:COMMunicate:LAN:IPADdress <ip>
:SYSTem:COMMunicate:LAN:IPADdress?
SYSTem is the root keyword of the command. COMMunicate, LAN and IPADdress are the second-level,
third-level and forth-level keywords respectively. The command string starts with ":" which separates the
multiple-level keywords. <ip> represents the parameters av ailable for setting. "?" represents query and the
power supply returns the response information (the output value or internal setting value of the instrument)
when recieving a query command. The command :SYSTem:COMMunicate:LAN:IPADdress and parameter
<ip> are separated by space.
"," is generally used for separating multiple parameters contained in the same command, for example,
:DELAY:PARAmeter <secnum>,{ON|OFF},<time>
1-4 DP800 Programming Guide
Page 17
Chapter 1 Programming Overview RIGOL
Symbol Description
The following four symbols are not the content of SCPI commands and will not be sent with the commands.
They are usually used to describe the parameters in the commands.
1Braces { }
Usually, multiple optional parameters are enclosed in the braces and one of the parameters must be
selected when sending the command. For example, :DISPlay:MODE {NORMal|WAVE|DIAL}.
2 Vertical Bar |
The vertical bar is used to separate multiple parameters and one of the parameters must be selected
when sending the command. For example, :DISPlay:MODE {NORMal|WAVE|DIAL}.
3 Square Brackets [ ]
The content (command keyword) enclosed in the square brackets can be omitted. When the
parameter is omitted, the instrument will set the parameter to its default. For example, for
the :MEASure[:VOLTage][:DC]? command, sending any of the four commands below can achieve the
same effect.
:MEASure?
:MEASure:DC?
:MEASure:VOLTage?
:MEASure:VOLTage:DC?
4 Triangle Brackets < >
The parameter enclosed in the tri ang le br ack ets m us t be replac ed by an ef fec tive valu e. F o r examp le,
send the :ANALyzer:CURRTime <value> command in :ANALyzer:CURRTime 5 form.
Parameter Type
The parameters of the commands introduced in this manua l contains 5 types: bool, integer, real number,
discrete and ASCII character string.
1Bool
The parameter could be OFF or ON. For example, :RECorder[:STATe] {ON|OFF}.
2 Integer
Unless otherwise noted, the parameter can be any integer within the effective value range. Note that
do not set the parameter to a decimal; otherwise, errors will occur. For example, in
the :SYSTem:BRIGhtness <brightness> command, <brightness> can be any integer from 0 to 100.
3 Real Number
Unless otherwise noted, the parameter can be any real number within the effective value range.
For example, for CH1 of DP831A, the ranges of <volt> and <curr> in the :APPLy
{CH1|CH2|CH3},<volt>,<curr> command are 0 to 8.4V and 0 to 5.3A respectively.
4 Discrete
The parameter could only be one of specified values or characters. For example, in
the :ANALyzer:OBJect {V|C|P} command, the parameter can be V, C or P.
5 ASCII Character String
The parameter should be the combinations of ASCII characters. For example, in the :MMEMory:STORe
<file_name> command, <file_name> is the filename of the f ile to be saved and can include Chinese
characters, English characters and numbers.
DP800 Programming Guide 1-5
Page 18
RIGOL Chapter 1 Programming Overview
Besides, many commands conta in the MINimum and MAXimum parameters which are used to set the
parameter to its minimum or maximum value. For example, MINimum and MAXimum in
the :SYSTem:BRIGhtness {<brightness>|MINimum|MAXimum} command are used to set the brightness to
the minimum or maximum.
Command Abb r eviation
All the commands are case-insensitive and you can use any of them. If abbreviation is used, all the capital
letters in the comman d must be written c ompletely. For example, the :ANALyzer:ANALyze command can be
abbreviated to :ANAL:ANAL.
1-6 DP800 Programming Guide
Page 19
Chapter 2 Command System RIGOL
Parameter Type
Units Available
Default Unit
[1]
Voltage
V, mV
V
Power
W, mW
W
Chapter 2 Command System
This chapter introduces the syntax, function, parameter and using instruction of each DP800 command in
A-Z order.
Explanation: In this command system, setting commands relating to the time, voltage, current and power
parameters can be sent with units. Unless otherwise noted, the units available and the default unit of each
parameter are as shown in the table below.
Time s
s
Current A, mA A
[1]
Note
: For the :TRIGger:OUT:PERIod [D0|D1|D2|D3,]<value> command (setting the period of the
square waveform of trigger output), <value> is a time parameter an d th e u nits a v ailable are s, ms and us.
The default unit is s.
DP800 Programming Guide 2-1
Page 20
RIGOL Chapter 2 Command System
:ANALyzer Commands
The :ANALyzer commands are used to set th e analyzer parameter s, execute an alysis and qu ery the analysis
results.
Description Set the voltage/current of the specified channel.
Query the voltage/current of the specified channel.
Parameter
Name Type Range Default
{CH1|CH2|CH3} Discrete CH1|CH2|CH3 None
<volt> Real Refer to the “Explanation”
<curr> Real Refer to the “Explanation”
Explanation <volt> and <curr> can be omitted. If both of them are omitted, the command
will select the desired channel; if only one of them is omitted, the command
will set the voltage of the specified channel.
The p arameter r anges and def aults of each channel for diff erent models are as
listed in the table below.
Channel <volt> Range <volt> Default <curr> Range <curr> Default
CH1 0V to 8.4V 0V 0A to 5.3A 5A
CH2 0V to 32V 0V 0A to 2.1A 2A
CH3 -32V to 0V 0V 0A to 2.1A 2A
Channel <volt> Range <volt> Default <curr> Range <curr> Default
CH1 0V to 32V 0V 0A to 3.2A 3A
CH2 0V to 32V 0V 0A to 3.2A 3A
CH3 0V to 5.3V 0V 0A to 3.2A 3A
If [,CURRent|VOLTage] is omitted in the query command, the command
queries the voltage and current of the specified channel.
Return Format If [,CURRent|VOLTage] is not omitted, the query returns the voltage or current, for
example, 5.000; if the parameter is omitted, the query returns the label, voltage
and current of the specified channel (separated by commas), for example,
CH1,5.000,1.0000.
Example :APPL CH1,5,1 /*Set the voltage and current of CH1*/
:APPL? CH1 /*Query the voltage and current of CH1 and the query returns
CH1,5.000,1.0000*/
2-6 DP800 Programming Guide
Page 25
Chapter 2 Command System RIGOL
:DELAY Commands
The :DELAY commands are used to set the delayer parameters (the number of groups, number of cycles,
end state and etc) as well as enable or disable the delayer.
Description Set the number of cycles of the delayer.
Query the number of cycles of the delayer.
Parameter
Name Type Range Default
{N|I} Discrete N|I N
<value> Integer 1 to 99999 1
Explanation The number of cycles refers to the number of times that the instrument
performs delay output according to the preset state. Wherein, I represents
infinite number of cycles; N represents finite number of cycles, the number of
cycles is specified by <value> and when this parameter is omit ted, the number
of cycles is set to 1 by default.
The total number of groups in each delay output = the number of groups × the
number of cycles; wherein, the numb er of groups is s et by the
:DELAY:GROUPs
command.
The power supply will terminate the delay er funct ion when the to tal number of
groups of delays is finished. At this point, the state of the power supply
depends on the setting of the
:DELAY:ENDStatecommand.
Return Format The query returns I or N,<value>, for example, N,100.
Example :DELAY:CYCLE I /*Set the number of cycles to “Infinite” */
:DELAY:CYCLE N /*Set the number of cycles to 1*/
:DELAY:CYCLE N,100 /*Set the number of cycles to 100*/
:DELAY:CYCLE? /*Query the curr ent number of cycles and the query returns
N,100*/
Related
Commands
DP800 Programming Guide 2-7
:DELAY:ENDState
:DELAY:GROUPs
Page 26
RIGOL Chapter 2 Command System
depends on the setting of the :DELAY:ENDStatecommand.
:DELAY:ENDState
Syntax :DELAY:ENDState {ON|OFF|LAST}
:DELAY:ENDState?
Description Set the end state of the delayer to On, Off or Last.
Query the end state of the delayer.
Parameter
Name Type Range Default
{ON|OFF|LAST} Discrete ON|OFF|LAST OFF
Explanation The end state refers to the state of the instrument when the delayer stops.
ON: output on , the instrument tur ns on the output automatically; OFF: output
off, the instrume nt turns off the output automatically; LAST: last state, the
instrument stops at the output state of the last group.
The total number of groups in each delay output = the number of groups × the
number of cycles. Wherei n, the number of grou ps is set by the
command and the number of cycles is set by the
:DELAY:CYCLEs command.
:DELAY:GROUPs
Return Format The query returns ON, OFF or LAST.
Example :DELAY:ENDS LAST /*Set the end state to Last*/
:DELAY:ENDS? /*Query the current end state and the query r eturns LAST */
Related
Commands
:DELAY:GROUPs
:DELAY:CYCLEs
:DELAY:GROUPs
Syntax :DELAY:GROUPs <value>
:DELAY:GROUPs?
Description Set the number of output groups of the delayer.
Query the number of output groups of the delayer.
Parameter
Name Type Range Default
<value>Integer 1 to 2048 1
Explanation The number of output groups refers to the number of times that the
instrument turns on or off the output a ccording to the preset state.
The total number of groups in each delay output = the number of groups × the
number of cycles. Wherein, the number of cycles is set by the
command.
The power supply will terminate the delay er funct ion when the to tal number of
groups of delays is finished. At this point, the state of the power supply
Return Format The query returns an integer from 1 to 2048.
Example :DELAY:GROUP 125 /*Set the number of groups to 125*/
:DELAY:GROUP? /*Query the current number of groups and the query
returns 125*/
Related
Commands
:DELAY:CYCLEs
:DELAY:ENDState
:DELAY:CYCLEs
2-8 DP800 Programming Guide
Page 27
Chapter 2 Command System RIGOL
:DELAY:PARAmeter
Syntax :DELAY:PARAmeter <secnum>,{ON|OFF},<time>
:DELAY:PARAmeter? <firnum>,<timercount>
Description Set the delayer parameters of the specified groups.
Query the delayer parameters of the specified groups.
Parameter
Name Type Range Default
<secnum> Integer 0 to 2047 None
{ON|OFF} Bool ON|OFF
OFF (even group);
ON (odd group)
<time> Integer 1 to 99999 1s
<firnum> Integer 0 to 2047 None
<timercount> Integer 1 to 2048 None
Explanation <secnum> is the group number of the delayer parameters; {ON|OFF} is the
output state; <time> is the delay time.
<firnum> is the group number of the first group of delayer parameters to be
queried; <timercount> is the total number of groups of delayer parameters to
be queried.
Return Format
For example, #90000000151,ON,1;2,OFF,1; wherein, #90000 is the data block
header; 00015
is the number of bytes followed; 1,ON,1;2,OFF,1; are the delayer
parameters returned. The format of each group of parameters is “number,output
state,delay time”, multiple groups of return values are separated by semicolons and
parameters of the same group are separated by commas.
Example :DELAY:PARA 1,ON,2 /*Set the state of the first group to ON and the time to 2s*/
:DELAY:PARA? 3,2 /*Q uery two groups of delay er parameters starting from the
third group*/
/*The query returns #90000000153,ON,1;4,OFF,1;*/
:DELAY[:STATe]
Syntax :DELAY[:STATe] {ON|OFF}
:DELAY[:STATe]?
Description Enable or disable the delay output function.
Query the state of the delay output function.
Parameter
Explanation Enabling the delayer will change the output state of the channel. Make sure
Return Format The query returns ON or OFF.
Example :DELAY ON /*Enabl e the delay output*/
DP800 Programming Guide 2-9
Name Type Range Default
{ON|OFF} Bool ON|OFF OFF
that the devices connected to the power supply will not be affected before
enabling the delayer.
The delayer parameters cannot be modified when the delayer is enabled.
:DELAY? /*Query the status of the delay output and the query returns ON*/
Page 28
RIGOL Chapter 2 Command System
:DELAY:STATe:GEN
Syntax :DELAY:STATe:GEN {01P|10P}
:DELAY:STATe:GEN?
Description Select the pattern used when generating state automatically.
Query the pattern used when generating state automatically.
Parameter
Name Type Range Default
{01P|10P} Discrete 01P|10P 01P
Explanation 01P: 0 1 pattern. The state is set to “Off” and “On” alternately.
10P: 1 0 pattern. The state is set to “On” and “Off” alternately.
Return Format The query returns 01P or 10P.
Example :DELAY:STAT:GEN 10P /*Select 1 0 pattern*/
:DELAY:STAT:GEN? /*Query the pattern used when generating state
Description Set the stop condition of the delayer.
Query the stop condition of the delayer.
Parameter
Name Type Range Default
{NONE|<V|>V|
<C|>C|<P|>P}
Discrete NONE|<V|>V|<C|>C|<P|>P NONE
0 to the maximum
<value> Real
voltage/current/power of the
current channel
Explanation This command sets a stop condition. The power supply monitors the output
voltage, current and po wer during delay output and stops the delay output
when state that fulfills this condition is detected.
{NONE|<V|>V|<C|>C|<P|>P} can set the stop condi tion to “None”, “<Volt”,
“>Volt”, “<Curr”, “>Curr”, “<Power” or “>Power”. <value> is used to set the
voltage, current or power of the stop condition and when it is omitted, the
corresponding value will be set to 0.
Return Format The query returns NONE or “stop condition,value”, for example, >V,8.000.
Example :DELAY:STOP >V,8 /*Set the stop condition to “>Volt” and the voltage to 8V*/
:DELAY:STOP? /*Query the current stop condition and the query
Description Set the method used to generate time automatically as well as the corresponding
on/off delay time or the time base value and step value.
Query the method used t o generate time au tomatically as well as the correspon ding
parameters.
Parameter
Name Type Range Default
{FIX|INC|DEC} Discrete FIX|INC|DEC FIX
<value0> Integer Refer to the “Explanation” 1s
<value1> Integer Refer to the “Explanation” 1s
Explanation When FIX (fixed time) is selected, <value0> and <value1> are used to set the
on/off delay time and the range is from 1s to 99999s. When both of the
parameters are omitted, the on/off delay time will be set to 1s; when only one
of the parameters is omitted, the on delay time will be set.
When INC (monotonic increase) or DEC (monotonic decline) is selected,
<value0> and <value1> are used to set the time base value and step value.
The time increases or declines gradually from the time base value at the
specified step to generate time. The two fulfills the relation: time base value +
number of output groups*step value≤99999s. When both of the two
parameters are omit ted , th e ti me base value and step v al ue will both be set to
1s; when only one of the par ameters is omitted, th e time base valu e will be set.
Return Format Fix: the query returns FIX,<value0>,<value1>, for exa mple, FIX,1,2;
INC: the query returns INC,<value0>,<value1>, for example, INC,2,5;
DEC: the query returns DEC,<value0>,<value1>, for example, DEC,200,5.
Example :DELAY:TIM E :G EN I NC,2,5 /*Monotonic increase, the time base value is 2s and
the step is 5s*/
:DELAY:TIME:GEN? /*Query the method used to generate time automatically
and the parameters; the query returns INC,2,5*/
DP800 Programming Guide 2-11
Page 30
RIGOL Chapter 2 Command System
:DISPlay Command
Syntax :DISPlay:MODE {NORMal|WAVE|DIAL}
:DISPlay:MODE?
Description Set the display mode to normal, wave or dial.
Query the current display mode.
Parameter
{NORMal|WAVE|DIAL}Discrete NORMal|WAVE|DIALNORMal
Name Type Range Default
Explanation NORMal: normal mode. The parameters (such as the voltage and curren t) of all
the channels are displayed in number format.
WAVE: waveform mode. The parameters (such as the voltage and current) of
the channel currently selected are displayed in both waveform and number
formats.
DIAL: dial mode. The parameters (such as the voltage and current) of the
channel currently selected are displayed in both dial and number format s.
Return Format The query returns NORMAL, WAVE or DIAL.
Example :DISP:MODE WAVE /*Select the waveform display mode*/
:DISP:MODE? /*Query the current display mode and the query returns WAVE */
2-12 DP800 Programming Guide
Page 31
Chapter 2 Command System RIGOL
IEEE488.2 Common Commands
Command List:
*IDN?
*RCL
*RST
*SAV
*TST?
*IDN?
Syntax *IDN?
Description Query the ID character string of the instrument.
Return Format The query returns the ID character string of the instrument, for example, RIGOL
The :MEMory commands are used to save, delete, read or lock the file stored in the specified storage
location in the internal memory. DP800 allows four kinds of files to be saved in the internal memory.
1. State File (RSF): store the current system state, including the voltage, current, OVP, OCP and track
function status of each channel as well as the system parameters.
2. Record File (ROF): store the output voltage, current and power of each channel when the recorder is
enabled (for the channel of which the output is disabled, the correspo nding recorded data will be 0).
3. Timer File (RTF): store the timer parameters edited (the voltage, current and time of each group of
parameters).
4. Delay File (RDF): store the delayer parameters edited (the state and time of each group of
parameters).
Explanation The read and delete operations are only available when the specified storage
location contains a valid file.
Return Format The query returns YES or NO.
Example :MEM:VAL? RSF,5 /*Query whether the state file storage location 5 contains a
valid file and the query ret urns YES*/
2-20 DP800 Programming Guide
Page 39
Chapter 2 Command System RIGOL
:MMEMory Commands
The :MMEMory commands are used to store the file to the specified external storage directory, read or
delete the specified file in the external memory as well as query the disk information of the external
memory.
Description Set the current monitor condition of the monitor.
Query the current monitor condition of the monitor.
Parameter
Name Type Range Default
{<C|>C|NONE} Discrete <C|>C|NONE NONE
{AND|OR|NONE} Discrete AND|OR|NONE NONE
Explanation After setting the current moni tor condition, sending
:MONItor:CURRent[:VALue] command can set the cur rent value.
the
You can set the current monitor condition to “<Curr” ot “>Curr”.
The actual monitor condition is the logic c ombination of the voltage, current
and power. You need to set the logic relation between the current monitor
condition and the voltage/power monitor conditions; you can set the logic
relation to “AND”, “OR” or “None”; wherein, “None” indicates that no logic
relation will be set.
Return Format The query returns “condition,logic relation”, for example, <C,AND.
Example :MONI:CURR:COND <C,AND /*Set the current monitor condition to “<Curr”
and the logic relation to “AND” */
:MONI:CURR:COND? /*Query the current monitor condition and the
Explanation When the monitor is enabled and t he channel output state meets the monitor
condition set, the instrument will turn off the output, display the corresponding
prompt message or sound the beeper according to the stop mode selected.
Return Format The query returns ON or OFF.
Example :MONI ON /*Enable the monitor*/
:MONI? /*Query the state of the monitor and the query returns ON*/
Description Set the voltage monitor condition of the monitor.
Query the voltage monitor condition of the monitor.
Parameter
Name Type Range Default
{<V|>V|NONE} Discrete <V|>V|NONE NONE
{AND|OR|NONE} Discrete AND|OR|NONE NONE
Explanation After setting the voltage monitor condition, se nding
:MONItor:VOLTage[:VALue] <value> command can set the voltage value.
the
You can set the voltage monitor condition to “<Volt” ot “>Volt”.
The actual monitor condition is the logic combination of the voltage, current
and power. You need to set the logic relation between the voltage monitor
condition and the current/power monitor conditions; you can set the logic
relation to “AND”, “OR” or “None”; wherein, “None” indicates tha t no logic
relation will be set.
Return Format The query returns “condition,logic relation”, for exampl e, <V,AND.
Example :MONI:VOLT:COND <V,AND /*Set the voltage monitor condition to “<Volt” and
logic relation to “AND”*/
:MONI:VOLT:COND? /*Query the current voltage monitor condition and
Description Query the current output mode of the specified channel.
Parameter
Name Type Range Default
{CH1|CH2|CH3} Discrete CH1|CH2|CH3 None
Explanation The output modes of the power supply include CV (Constant Voltage), CC (Constant
Current) and UR. In CV mode, the output voltage equals the voltage setting value
and the output curr ent is determined by the load; in CC mode, the output current
equals the current s etting value and the output voltage is determined by the load;
UR is the critical mode between CV and CC.
Return Format The query returns C V, CC or UR.
Example :OUTP:MODE? CH1 /*Query the output mode of CH1 and the query returns CV*/
:OUTPut:OCP:CLEAR
Syntax :OUTPut:OCP:CLEAR {CH1|CH2|CH3}
Description Clear the overcurrent protection occurred on the specified channel.
Parameter
Example :OUTP:OCP:QUES? CH1 /*Query whether overcurrent protection currently
Name Type Range Default
{CH1|CH2|CH3} Discrete CH1|CH2|CH3 None
occurred on CH1 and the query returns YES*/
:OUTP:OCP:CLEAR CH1 /*Clear the overcurrent protection occurred on CH1*/
:OUTP:OCP:QUES? CH1 /*The query returns NO*/
Related
Commands
DP800 Programming Guide 2-31
:OUTPut:OCP:VALue
:OUTPut:OCP:QUES?
Page 50
RIGOL Chapter 2 Command System
:OUTPut:OCP:QUES?
Syntax :OUTPut:OCP:QUES? {CH1|CH2|CH3}
Description Query whether overcurrent protection occurs to the specified channel currently,
namely the output current exceeds the overcurrent protection limit and the output
turns off automatically.
Parameter
Name Type Range Default
{CH1|CH2|CH3} Discrete CH1|CH2|CH3 None
Explanation You can clear the overcurrent protection occurred on the specified channel using
:OUTPut:OCP:CLEAR command.
the
Return Format The query returns YES or NO.
Example :OUTP:OCP:QUES? CH1 /*Query whether overcurrent protection occurs to CH1
Description Set the overcurrent protection limit of the specifi ed channel.
Query the overcurrent protection limit of the specified channel.
Parameter
Name Type Range Default
{CH1|CH2|CH3} Discrete CH1|CH2|CH3 None
<value> Real
Current range of the
current channel
Maximum current of
the current channel
Explanation When the overcurrent protection function is enabled, the output will turn off
automatically when the output current exceeds the overcurr ent protection limit
currently set. You can send the
:OUTPut:OCP:QUES? command to query whether
overcurrent protection occurs to the specified channel currently.
Return Format The query returns the overcurrent protection limit, for example, 5.0000.
Example :OUTP:OCP:VAL CH1,5
:OUTP:OCP:VAL? CH1
Related
Commands
:OUTPut:OCP:QUES?
:OUTPut:OCP[:STATe]
:OUTPut:OVP:CLEAR
Syntax :OUTPut:OVP:CLEAR {CH1|CH2|CH3}
Description Clear the overvoltage protection occurred on the specified channel.
Parameter
Name Type Range Default
{CH1|CH2|CH3} Discrete CH1|CH2|CH3 None
Example :OUTP:OVP:QUES? CH1 /*Query whether overvoltage protection currently
occurred on CH1 and the query returns YES*/
:OUTP:OVP:CLEAR CH1 /*Clear the overvoltage protection occurred on CH1*/
:OUTP:OVP:QUE S? CH1 /*The query returns NO*/
Related
Commands
:OUTPut:OVP:QUES?
:OUTPut:OVP:VALue
DP800 Programming Guide 2-33
Page 52
RIGOL Chapter 2 Command System
Return Format
The query returns ON or OFF.
:OUTPut:OVP:QUES?
Syntax :OUTPut:OVP:QUES? {CH1|CH2|CH3}
Description Query whether overvoltage protection occurs to the specified channel, namely the
output voltage exceeds the overvoltage protection limit and the output turns off
automatically.
Parameter
Name Type Range Default
{CH1|CH2|CH3} Discrete CH1|CH2|CH3 None
Explanation You can clear the overvoltage protection occurred on the specified channel using
:OUTPut:OVP:CLEAR command.
the
Return Format The query returns YES or NO.
Example :OUTP:OVP:QUES? CH1
Related
Command
:OUTPut:OVP:CLEAR
:OUTPut:OVP[:STATe]
Syntax :OUTPut:OVP[:STATe] {CH1|CH2|CH3},{ON|OFF}
:OUTPut:OVP[:STATe]? {CH1|CH2|CH3}
Description Enable or disable the overvoltage protection function of the specified channel.
Query the status of the overvoltage protect ion function of the specified channel.
Parameter
Explanation When the overvoltage protection functio n i s enabled, the output will turn off
automatically when the output voltage exceeds the overvoltage protection limit
currently set (
command to query whether overvoltage protection occurs to the specified channel
currently.
Name Type Range Default
{CH1|CH2|CH3} Discrete CH1|CH2|CH3 None
{ON|OFF} Bool ON|OFF OFF
:OUTPut:OVP:VALue). You can send the :OUTPut:OVP:QUES?
Example :OUTP:OVP CH1,ON /*Enable the overvoltage protection function of CH1*/
Related
Commands
2-34 DP800 Programming Guide
:OUTP:OVP? CH1 /*Query the status of the overvoltage protection function
Description Set the overvoltage protection limit of the specified cha nnel.
Query the overvoltage protection limit of the specified channel.
Parameter
Name Type Range Default
{CH1|CH2|CH3} Discrete CH1|CH2|CH3 None
<value> Real
Voltage range of the
current channel
Maximum voltage of
the current channel
Explanation When the overvoltage protection functio n i s enabled, the output will turn off
automatically when the output voltage exceeds the overvoltage protection limit
currently set. You can send the
:OUTPut:OVP:QUES? command to query whether
overvoltage protection occurs to the specified channel currently.
Return Format The query returns the overvoltage protection limit, for example, 8.800.
Example :OUTP:OVP:VAL CH1,8.8 /*Set the overvoltage protection limit of CH1 to 8.8V*/
:OUTP:OVP:VAL? CH1 /*Query the overvoltage protection limit of CH1 and the
query returns 8.800*/
Related
Commands
:OUTPut:OVP[:STATe]
:OUTPut:OVP:QUES?
:OUTPut[:STATe]
Syntax :OUTPut[:STATe] [{CH1|CH2|CH3},]{ON|OFF}
:OUTPut[:STATe] ? [{CH1|CH2|CH3}]
Description Enable or disable the output of the specified channel.
Query the output status of the specified channel.
Parameter
Name Type Range Default
{CH1|CH2|CH3} Discrete CH1|CH2|CH3 None
Explanation Make sure that the current setting will not affect the device connected to the power
supply before enabling the channel output.
Return Format The query returns ON or OFF.
Example :OUTP CH1,ON /*Enable the output of CH1*/
:OUTP? CH1 /*Query the current output status of CH1 and the query returns
ON*/
DP800 Programming Guide 2-35
Page 54
RIGOL Chapter 2 Command System
:OUTPut:TRACk
Syntax :OUTPut:TRACk {CH1|CH2|CH3},{ON|OFF}
:OUTPut:TRACk? [{CH1|CH2|CH3}]
Description Enable or disable the track function of the specified channel.
Query the status of the track function of the specified channel.
Parameter
Name Type Range Default
{CH1|CH2|CH3} Discrete CH1|CH2|CH3 None
{ON|OFF} Bool ON|OFF OFF
Explanation This command is only applicable to channels supporting the track function:
CH2 and CH3 of DP831A as well as CH1 and CH2 of DP832A/DP832. For
channels that do not support the track function, the query returns NONE.
For two channels supporting the track function, when the track function of one
channel (the tracked channel) is enabled, the vo ltage setting v alue of the other
channel (the tracking channel, the track status label (for example,
) is
displayed in the display area corresponding to this channel and the voltage
value can not be set) will change accordingly when the voltage setting val ue of
this channel is change d.
By default, the track function is disabled and it is usually used to provide
symmetric voltage for the calculation amplifier or other circuits.
The track function only tracks the voltage setting value and the actual output
voltage will not be affected.
Return Format The query returns ON or OFF. For channels that do not support the track function,
Note: When [n] is omitted, the operation is performed on the user-preset state currently selected by
default.
:PRESet[:APPLy]
Syntax :PRESet[:APPLy]
Description Restore the instrument to default value or user-preset value.
Explanation
Related
Command
Sending this command is equivalent to pressing Preset at the front panel, namely
recalling the default value or user-preset value related to the key (depend on
The :SOURce commands are used to set the voltage, cu rrent, OVP and OCP of the specified channel. Their
functions are equivalent to that of
straightforward method to program the power supply over the remote interfaces, the :SOURce commands
give you more flexibility to change individual parameters.
Explanation This command is only available when the manual IP configuration mode is
enabled.
You are recommended to ask your network administrator for an address
available.
Return Format The query returns the DNS address, for example, 172.16.3.2.
Example :SYST:COMM:LAN:DNS 172.16.3.2
:SYST:COMM:LAN:DNS?
Related
:SYSTem:COMMunicate:LAN:MANualip[:STATe]
Command
None
2-54 DP800 Programming Guide
Page 73
Chapter 2 Command System RIGOL
Return Format
The query returns the IP address, for example, 172.16.3.128.
:SYSTem:COMMunicate:LAN:GATEway
Syntax :SYSTem:COMMunicate:LAN:GATEway <gateway>
:SYSTem:COMMunicate:LAN:GATEway?
Description Set the default gateway.
Query the current default gateway.
Parameter
Name Type Range Default
The format is nnn.nnn.nnn.nnn;
<gateway>
ASCII character
string
the first nnn ranges from 1 to 223
(except 127), the other three range
from 0 to 255
Explanation This command is only available when the manual IP confi guration mode is
enabled.
You are recommended to ask your network administrator for a gateway
address available.
Return Format The query returns the default gateway, for example, 172.16.3.1.
Example :SYST:COMM:LAN:GATE 172.16.3.1
:SYST:COMM:LAN:GATE?
Related
:SYSTem:COMMunicate:LAN:MANualip[:STATe]
Command
:SYSTem:COMMunicate:LAN:IPADdress
Syntax :SYSTem:COMMunicate:LAN:IPADdress <ip>
:SYSTem:COMMunicate:LAN:IPADdress?
None
Description Set the IP address.
Query the current IP address.
Parameter
Name Type Range Default
The format is nnn.nnn.nnn.nnn;
<ip>
ASCII character
string
the first nnn ranges from 1 to 223
(except 127), the other three range
from 0 to 255
Explanation This command is only available when the manual IP configuration mode is
enabled.
You are recommended to ask your network administrator for an address
available.
Example :SYST:COMM:LAN:IPAD 172.16.3.128
:SYST:COMM:LAN:IPAD?
Related
:SYSTem:COMMunicate:LAN:MANualip[:STATe]
Command
None
DP800 Programming Guide 2-55
Page 74
RIGOL Chapter 2 Command System
:SYSTem:COMMunicate:LAN:MAC?
Syntax :SYSTem:COMMunicate:LAN:MAC?
Description Query the MAC address.
Explanation The MAC (Media Access Control) address is also called hardware address and is
used to define the location of the network device. For a power supply, the MAC
address is unique and is usually used to recognize the instrument when assigning IP
address for the instrument. 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.
Description Set the data bit of the RS232 interface.
Query the data bit of the RS232 interface.
Parameter
Name Type Range Default
{5|6|7|8} Discrete 5|6|7|8 8
Return Format The query returns 5, 6, 7 or 8.
Example :SYST:COMM:RS232:DATAB 8
:SYST:COMM:RS232:DATAB?
:SYSTem:COMMunicate:RS232:FLOWCrl
Syntax :SYSTem:COMMunicate:RS232:FLOWCrl {ON|OFF}
:SYSTem:COMMunicate:RS232:FLOWCrl?
Description Enable or disable the hardware flow control.
Query the status of the hardware flow control.
Parameter
Explanation This power suppl y uses RTS/CTS hardware flow control mode. The instrument
monitors the status of the CTS pin. When the status is “True”, the instrument sends
data; when the status is “False”, the instrument stops sending data. The instrument
sets the CTS pin to “False” when the input buffer area is almost full and sets the CTS
pin to “True” when the input buffer area is available again.
Description Set the parity mode to “None”, “Odd” or “Even”.
Query the current pa rity mode.
Parameter
Return Format The query returns NONE, ODD or EVEN.
Example :SYST:COMM:RS232 :PARI OD D
:SYST:COMM:RS232:PARI?
Name Type Range Default
{NONE|ODD|EVEN} Discrete NONE|ODD|EVEN NONE
2-58 DP800 Programming Guide
Page 77
Chapter 2 Command System RIGOL
:SYSTem:COMMunicate:RS232:STOPBit
Syntax :SYSTem:COMMunicate:RS232:STOPBit {1|2}
:SYSTem:COMMunicate:RS232:STOPBit?
Description Set the stop bit to 1 or 2.
Query the current stop bit.
Parameter
Name Type Range Default
{1|2}Discrete 1|21
Return Format The query returns 1 or 2.
Example :SYST:COMM:RS232:STOPB 2
:SYST:COMM:RS232:STOPB?
:SYSTem:CONTrast
Syntax :SYSTem:CONTrast {<value>|MINimum|MAXimum}
:SYSTem:CONTrast? [{MINimum|MAXimum}]
Description Set the contrast of the screen.
Query the contrast of the screen.
Parameter
Name Type Range Default
<value>Integer 1 to 100 25 (factory setting)
Return Format The query returns an integer, for example, 50.
Example :SYST:CONT 50
:SYST:CONT?
:SYSTem:ERRor?
Syntax :SYSTem:ERRor?
Description Query and clear the error messages in the error queue.
Explanation Sending the
*RST command will clear the error queue.
Return Format The query returns the number and content of the error message, for example,
-113,"Undefined hea de r; keyw o rd cannot be found".
Related
*RST
Command
DP800 Programming Guide 2-59
Page 78
RIGOL Chapter 2 Command System
:SYSTem:LANGuage:TYPE
Syntax :SYSTem:LANGuage:TYPE {EN|CH}
:SYSTem:LANGuage:TYPE?
Description Set the system language t o English or Chinese.
Query the system language.
Parameter
Name Type Range Default
{EN|CH} Discrete EN|CH CH
Return Format The query returns English or Chinese.
Example :SYST:LANG:TYPE EN
:SYST:LANG:TYPE?
:SYSTem:LOCal
Syntax :SYSTem:LOCal
Description The power supply returns from remote mode to local mode.
Explanation
When the instrument is i n remote mode, th e f ron t p anel keys are locked and
displayed in the status bar in the user interface; when this command is sent, the
instrument returns to local mode, the front panel keys are available and
status bar in the user interface disappears.
:SYSTem:LOCK
Syntax :SYSTem:LOCK {ON|OFF}
:SYSTem:LOCK?
is
in the
Description Lock (ON) or unlock (OFF) the front p anel.
Query whether the fr ont panel is locked.
Parameter
Name Type Range Default
{ON|OFF} Bool ON|OFF OFF
Explanation DP800 allows users to lock the front panel keys to avoid danger caused by
mis-operation. When the front panel is locked,
is displayed in the status bar in
the user interface.
Return Format The query returns ON or OFF.
2-60 DP800 Programming Guide
Page 79
Chapter 2 Command System RIGOL
:SYSTem:OTP
Syntax :SYSTem:OTP {ON|OFF}
:SYSTem:OTP?
Description Enable or disable the over-temperature protection (OTP) function.
Query the status of the over-temperature protection function.
Parameter
Name Type Range Default
{ON|OFF} Bool ON|OFF ON
Explanation When the OTP function is enabled, the instrument turns off the output automatically
when the temperature inside the instrument reaches the limit.
Return Format The query returns ON or OFF.
Example :SYST:OTP ON
:SYST:OTP?
:SYSTem:POWEron
Syntax :SYSTem:POWEron {DEFault|LAST}
:SYSTem:POWEron?
Description Set the instrument config uration to be used at power-on to “Default” or “Last”.
Query the instrument configuration to be used at power-on.
Parameter
Explanation LAST: the instrument uses the system configuration before the last power-off at
power-on. DEFault: the instrument uses the factory values at p ower-on (except those
parameters that will not be affected by reset; refer to
Description Set the number of cycles of the timer.
Query the current number of cycles of the timer.
Parameter
Name Type Range Default
{N|I} Discrete N|I N
<value> Integer 1 to 99999 1
Explanation The number of cycles is defined as the number of times that the instrument
performs timing output according to the preset voltage/current.
The total number of groups in e ach timing output = the number of groups ×
the number of cycles; wherein, the number of groups is set by
:TIMEr:GROUPs command.
the
The power supply will terminate the ti mer function when the total number of groups
of outputs is finished. At this point, the state of the power supply depends on the
setting of the
:TIMEr:ENDState command.
Return Format The query returns I or N,<value>, for example, N,20.
Example :TIME:CY CLE N,20
:TIME:CYCLE?
Related
Commands
:TIMEr:ENDState
:TIMEr:GROUPs
2-64 DP800 Programming Guide
Page 83
Chapter 2 Command System RIGOL
:TIMEr:ENDState
Syntax :TIMEr:ENDState {OFF|LAST}
:TIMEr:ENDState?
Description Set the end state of the timer to “Off” or “Last”.
Query the current end state of the timer.
Parameter
Name Type Range Default
{OFF|LAST}Discrete OFF|LAST OFF
Explanation The end state refers to the state of the instrument after it finishes outputting
the total number of groups of voltage/current values when the number of
cycles is a specified value.
OFF: the instrument turns off the output automatically after finishing the
output.
LAST: the instrument stops at the output state of the last group after finishing
the output.
The total number of groups in e ach timing output = the number of groups ×
the number of cycles; wherein, the number of groups is set by
:TIMEr:GROUPs command and the number of cycles is set by
the
:TIMEr:CYCLEs command.
the
Return Format The query returns OFF or LAST.
Example :TIME :EN DS LAST
:TIME:ENDS?
Related
Commands
:TIMEr:CYCLEs
:TIMEr:GROUPs
DP800 Programming Guide 2-65
Page 84
RIGOL Chapter 2 Command System
:TIMEr:GROUPs
Syntax :TIMEr:GROUPs <value>
:TIMEr:GROUPs?
Description Set the number of output groups of the timer.
Query the current number of output groups of the timer.
Parameter
Name Type Range Default
<value> Integer 1 to 2048 1
Explanation The number of groups is defined as the number of groups of preset
voltage/current values that the pow er supply outputs in each cycle.
The total number of groups in e ach timing output = the number of groups ×
the number of cycles; wherein, the number of cycles is set by
:TIMEr:CYCLEs command.
the
The power supply will terminate the ti mer function when the total number of groups
of outputs is finished. At this point, the state of the power supply depends on the
setting of the
:TIMEr:ENDState command.
Return Format The query returns an integer from 1 to 2048, for example, 25.
Description Set the timer parameters of the specified group.
Query the timer parameters of the specified groups.
Parameter
Name Type Range Default
<secnum> Integer 0 to 2047 None
The voltage range and default value of the current
<volt> Real
channel; refer to the “Explanation” of :APPLy
Command
The current range and defaul t value of the current
<curr> Real
channel; refer to the “Explanation” of :APPLy
Command
<time> Real 1s to 99999s 1s
<firnum> Integer 0 to 2047 None
<timercount> Integer 1 to 2048 None
Explanation <secnum> is the group number of the timer parameters; <volt>, <curr> and
<time> are the voltage, current and time of the timer parameters.
<firnum> is t he group number of the first group of timer parameters to be
queried. <timercount> is the total number of groups of timer parameters to b e
queried.
Return Format
For example, #90000000381,8.000,1.0000,10;2,6.000,1.0000,10; wherein,
#90000 is the data block header; 00038
repr esents the number of bytes following;
1,8.000,1.0000,10;2,6.000,1.0000,10; are the timer par ameters returned. The
format of each group of parameters is “number,voltage,current,time” and multiple
groups of return values are separated by semicolons.
Example :TIME:PARA 1,8,1,10
:TIME:PARA 2,6,1,10
:TIME:PARA? 1,2 /*Query two groups of timer parameters starting from the first
Description Enable or disa b le the timing output function.
:TIMEr[:STATe] {ON|OFF}
:TIMEr[:STATe]?
Query the status of the timing output function.
Parameter
Name Type Range Default
{ON|OFF} Bool ON|OFF OFF
Explanation Enabling the timer will change the output state of the channel; make sure that
the change in the output state will not affect the device connected to the
power supply before enabling the timer.
The timing output is valid only when both the timer and the channel output are
enabled.
When the timer is enabled, the timer parameters cannot be modified.
Return Format The query returns ON or OFF.
Example :TIME ON /*Enable the timing output*/
:TIME? /*Query the status of the timing output and the query returns ON*/
:TIMEr:TEMPlet:CONSTruct
Syntax :TIMEr:TEMPlet:CONSTruct
Description Send this command and the instrument will create the timer parameters according
to the templet currently selected and the parameters set.
:TIMEr:TEMPlet:FALLRate
Syntax :TIM Er:TEMPlet:FALLRate <value>
:TIMEr:TEMPlet:FALLRate?
Description Set the fall inde x of ExpFall.
Query the fall index of ExpFall.
Parameter
Name Type Range Default
<value> Integer 0 to 10 0
Explanation When the templet currently selected is ExpRise or ExpFall, the timer parameters
created cannot reach the maximum or minimum due to the characteristic of the
exponential function. The range of the timer parameters created is related to the
rise index or fall index currently set. The larger the rise index or fall index is, the
larger the range of the timer parameters will be.
Return Format The query returns an integer from 0 to 10, for example, 5.
Example :TIME:TEMP:FALLR 5
:TIME:TEMP:FALLR?
Related
:TIMEr:TEMPlet:SELect
Command
2-68 DP800 Programming Guide
Page 87
Chapter 2 Command System RIGOL
:TIMEr:TEMPlet:INTErval
Syntax :TIMEr:TEMPlet:INTErval <value>
:TIMEr:TEMPlet:INTErval?
Description Set the time interval.
Query the current time interval.
Parameter
Name Type Range Default
<value> Integer 1 to 99999 1
Explanation The interval refers to the time required for the instrument to output each group of
timer parameters created using the templet currently selected.
Return Format The query returns an integer from 1 to 99999, for example, 15.
Example :TIME:TEMP:INTE 15
:TIME:TEMP:INTE?
Related
:TIMEr:TEMPlet:SELect
Command
:TIMEr:TEMPlet:INVErt
Syntax :TIMEr:TEMPlet:INVErt {ON|OFF}
:TIMEr:TEMPlet:INVErt?
Description Enable or disable the invert of the templet currently selected.
Query whether the invert of the templet currently selected is enabled.
Parameter
Explanation When the invert is enabled, the instrument will first turn the preset waveform
Name Type Range Default
{ON|OFF} Bool ON|OFF OFF
upside down and then create timer parameters.
Return Format The query returns ON or OFF.
Example :TIME:TEMP:INVE ON
:TIME:TEMP:INVE?
Related
:TIMEr:TEMPlet:SELect
Command
DP800 Programming Guide 2-69
Page 88
RIGOL Chapter 2 Command System
:TIMEr:TEMPlet:MAXValue
Syntax
Description Set the maximum voltage or current of the templet currently selected.
Description Select the editing object of the templet and set the current or voltage.
Query the editing object of the templet as well as the corresponding current or
voltage.
Parameter
Name Type Range Default
{V|C} Discrete V|C V
<value> Real
Voltage or current range of the
channel currently selected
0
Explanation When V is selected, the editing object is set to voltage and <val> sets the curr ent
value; when C is selected, the editing ob ject is set to current and <val> sets the
voltage value.
Return Format The query returns the editing object an d the v ol tage or curr ent v alue, f or exampl e,
V,2.0000.
Example :TIME:TEMP:OBJ V,2
:TIME:TEMP:OBJ?
Related
:TIMEr:TEMPlet:SELect
Command
:TIMEr:TEMPlet:PERIod
Syntax :TIMEr:TEMPlet:PERIod <value>
:TIMEr:TEMPlet:PERIod?
Description Set the period of Square.
Query the period of Square.
Parameter
Name Type Range Default
<value> Integer 2 to 99999 10
Example :TIME:TEMP:PERI 15
:TIME:TEMP:PERI?
Related
Commands
:TIMEr:TEMPlet:SELect
:TIMEr:TEMPlet:WIDTh
DP800 Programming Guide 2-71
Page 90
RIGOL Chapter 2 Command System
:TIMEr:TEMPlet:POINTs
Syntax :TIMEr:TEMPlet:POINTs <value>
:TIMEr:TEMPlet:POINTs?
Description Set the total number of points.
Query the total n umber of points.
Parameter
Name Type Range Default
<value> Integer 10 to 2048 10
Explanation The total number of points refers to the number of group s of timer par ameters
created using the templet currently selected.
When the total number of points (denoted by P) a nd the current number of
output groups (denoted by G) are different, P groups of parameters will be
created using the templet; then, the number of output groups will change to P
automatically.
Return Format The query returns an integer from 10 to 2048, for example, 50.
Example :TIME:TEMP:POINT 50
:TIME:TEMP:POINT?
Related
:TIMEr:TEMPlet:SELect
Command
:TIMEr:TEMPlet:RISERate
Syntax :TIMEr:TEMPlet:RISERate <value>
:TIMEr:TEMPlet:RISERate?
Description Set the rise index of ExpRise.
Query the rise index of ExpRise.
Parameter
Name Type Range Default
<value> Integer 0 to 10 0
Explanation When the templet currently selected is ExpRise or ExpFall, the timer parameters
created cannot reach the maximum or minimum due to the characteristic of the
exponential function. The range of the timer parameters created is related to the
rise index or fall index currently set. The larger the rise index or fall index is, the
larger the range of the timer parameters will be.
Return Format The query returns an integer from 0 to 10, for example, 5.
Description Set the trigger condition of the trigger output of the specified data line.
Query the trigger condition of the trigger output of the specified data line.
Parameter
Name Type Range Default
[D0|D1|D2|D3] Discrete D0|D1|D2|D3 D0
{OUTOFF|OUTON|
>V|<V|=V|>C|<C|=C|
>P|<P|=P|AUTO}
Discrete
OUTOFF|OUTON|
>V|<V|=V|>C|<C|=C|
>P|<P|=P|AUTO
OUTOFF
0.5*maximum
Voltage/current/power
<value> Real
range of the channel
currently selected
voltage/current/
power of the
channel currently
selected
Explanation If [D0|D1|D2|D3] is omitted, the command sets the trigger condition of the
trigger output of the data line currently selected.
When OUTOFF, OUTON or AUTO is selected, <value> is omitted; when >V, <V,
=V, >C, <C, =C, >P, <P or =P is selected, <value> is the corresponding
voltage, current or power.
Return Format
When the condition is set to OUTOFF, OUTON or AUTO, the query returns OUTOFF,
OUTON or AUTO; when the condition is set to >V, <V, =V, >C, <C, =C, >P, <P or
=P, the query returns the condition and the voltage/current/power, for
Example :TRIG:OUT:COND D1,>V,8.8 /*Set the trigger condition of the trigger output of
D1 to >V and set the voltage to 8.8V*/
:TRIG:OUT:COND? D1 /* Query the trigger condition of the trigger output of
D1 and the query re turns >V,8.800*/
DP800 Programming Guide 2-77
Page 96
RIGOL Chapter 2 Command System
{ON|OFF}
Bool
ON|OFF
OFF
:TRIGger:OUT:DUTY
Syntax :TRIGger:OUT:DUTY [D0|D1|D2|D3,]<value>
:TRIGger:OUT:DUTY? [D0|D1|D2|D3]
Description Set the duty cycle of the square waveform of the trigger output on the specified
data line.
Query the duty cycle of the square waveform of the trigger output on the specified
data line.
Parameter
Name Type Range Default
[D0|D1|D2|D3] Discrete D0|D1|D2|D3 D0
<value> Integer 10 to 90 50
Explanation If [D0|D1|D2|D3] is omitted, the command sets the duty cycle of the square
waveform of the trigger output on the data line currently selected.
Duty cycle is defined as the perce ntage that the high level takes up within a
whole square waveform period.
Return Format The query returns an integer from 10 to 90.
Example :TRIG:OUT:DUTY D1,60 /*Set the duty cycle of the square waveform of the
trigger output on D1 to 60%*/
:TRIG:OUT:DUTY? D1 /*Query the duty cycle of the square waveform of the
Description Enable or disa b le the trigger output function of the specified data line.
Query the status of the trigger output function of the specified data line.
Parameter
Name Type Range Default
[D0|D1|D2|D3] Discrete D0|D1|D2|D3 D0
Explanation If [D0|D1|D2|D3] is omitted, the command enables or disables the trigger
output function of the data line currently selected.
When the trigger output functio n is enabled, the specified data line outputs
level or square waveform according to the setting of the output signal when
the output signal of the control source meets the trigger condition set.
Return Format The query returns Dn,ON or Dn,OFF; wherein, n=0, 1, 2 or 3.
Example :TRIG:IN D1,ON /*Enable the trigger output function o f D1 */
:TRIG:IN? D1 /*Query the status of the trigger output function of D1 and the
query returns D1,ON*/
2-78 DP800 Programming Guide
Page 97
Chapter 2 Command System RIGOL
D1 /* Query the polarity of the trigger output signal of
:TRIGger:OUT:PERIod
Syntax :TRIGger:OUT:PERIod [D0|D1|D2|D3,]<value>
:TRIGger:OUT:PERIod? [D0|D1|D2|D3]
Description
Set the period of the square waveform of the trigger output on the specified data line.
Query the period of the square waveform of the trigger output on the specified data
line.
Parameter
Name Type Range Default
[D0|D1|D2|D3] Discrete D0|D1|D2|D3 D0
<value> Real 0.0001 to 2.5 1
Explanation If [D0|D1|D2|D3] is om itted, the command sets the period o f the square wavef orm of
the trigger output on the data line currently selected.
Return Format The query returns a value from 0.0001 to 2.5.
Example :TRIG:OUT:PERI D1,0.005 /*Set the period of the square waveform of the trigger
output on D1 to 5ms*/
:TRIG:OUT:PERI? D1 /*Query the period of the square waveform of the trigger
Description Set the control source of the trigger output of the specified data line.
Query the control s ource of the trigger output of the specified data line.
Parameter
Name Type Range Default
[D0|D1|D2|D3] Discrete D0|D1|D2|D3 D0
{CH1|CH2|CH3} Discrete CH1|CH2|CH3 CH1
Explanation If [D0|D1|D2|D3] is omitted, the command sets the control source of the
trigger output of the data line currently selected.
Any channel can be selected as the control source of the trigger output.
Return Format The query returns the control source, for example, CH1.
Example :TRIG:IN:SOUR D1,CH1 /* Set the control source of D1 to CH1*/
:TRIG:IN:SOUR? D1 /* Query the control source of D1 and the query returns
CH1*/
2-80 DP800 Programming Guide
Page 99
Chapter 3 Application Examples RIGOL
Chapter 3 Application Examples
This chapter provides some application examples of the SCPI commands. A series of SCPI commands are
combined to realize the main functions of the power supply.
Note:
1 The examples in this chapter ar e based on DP831A. For other m odels, the r anges of s ome par ameters
might be different. When using the commands, please make proper adjustment according to the
model of your instrument.
2 Before using the examples in this chapter, please select the desired communication interface (USB,
LAN, RS232 or GPIB) and make correct connections (refer to the introductions in
Communication). Besides, you have to install Ultra Sigma or other PC software fo r sending command s
on your PC.
3 The content enclosed in “/*” and “*/” after each command is anno tation for easier understanding and
is not a part of the command.
Main topics of this chapter:
CV Output
Track Function
To Build Remote
Timing Output
Delay Output
To Use the Recorder
To Use the Analyzer
To Use the Monitor
To Use the Trigger
DP800 Programming Guide 3-1
Page 100
RIGOL Chapter 3 Application Examples
CV Output
Requirement
Use the SCPI commands to realize the following functions:
CH1 CV output; set the output voltage to 5V , the output current to 5A and the overcurrent protection limit to
5.3A.
Method 1
1 *IDN? /*Query the ID character string of the power supply to check whe ther the
remote communication is normal*/
2 :INST CH1 /*Select CH1*/
3 :CURR 5 /*Set the current to 5A*/
4 :CURR:PROT 5.3 /*Set the overcurrent protection limit of CH1 to 5.3A*/
5 :CURR:PROT:STAT ON /*Enable the overcurrent protection function of CH1*/
6 :VOLT 5 /*Set the voltage to 5V*/
7 :OUTP CH1,ON /*Enable the output of CH1*/
Method 2
1 *IDN? /*Query the ID character string of the power supply to check whe ther the
remote communication is normal*/
2 :CURR:PROT 5.3 /*Set the overcurrent protection limit of CH1 to 5.3A*/
3 :CURR:PROT:STAT ON /*Enable the overcurrent protection function of CH1*/
4 :APPL CH1,5,5 /*Select CH1, set the voltage to 5V and current to 5A*/
5 :OUTP CH1,ON /*Enable the output of CH1*/
Track Function
Some channels of DP800 support the track function, including CH2 and CH3 of DP831A as well as CH1 and
CH2 of DP832A/DP832.
Requirement
Use the SCPI commands to realize the following functions by taking DP831A as an example:
Enable the track function of CH3; change the voltage setting value of CH3 from -5V to -30V; at this point,
the voltage setting value of CH2 changes accordingly.
Method
1 *IDN? /*Query the ID character string of the power supply to check whe ther the
remote communication is normal*/
2 :OUTP:TRAC CH3,ON /*Enable the track function of CH3*/
3 :APPL CH3,-5,1 /*Set the voltage of CH3 to -5V and the current t o 1A*/
4 :APPLy? CH2,VOLTage /*Query the voltage of CH2 and the query re turns 5.000*/
5 :APPL CH3,-30,1 /*Change the voltage of CH3 to -30V*/
6 :APPLy? CH2,VOLTage /*Query the voltage of CH2 and the query re turns 30.000*/
3-2 DP800 Programming Guide
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.