RIGOL is a registered trademark of RIGOL TECHNOLOGIES, INC.
Publication Number
PGA19108-1110
Software Version
00.04.03.SP2
Software upgrade might change or add product features. Please acquire the latest version of the manual
from RIGOL website or contact RIGOL to upgrade the software.
Notices
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.
Information in this publication is subject to change without notice.
RIGOL shall not be liable for either incidental or consequential losses 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, photocopied, or rearranged without prior written
approval of RIGOL.
Product Certification
RIGOL guarantees that 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
certifications are in progress.
Contact Us
If you have any problem or requirement when using our products or this manual, pleas e contact RIGOL.
E-mail: service@rigol.com
Website: www.rigol.com
MSO1000Z/DS1000Z Programming Guide I
RIGOL
Tip
RIGOL
Number of
Channels
Number of
Channels
MSO1104Z-S
100 MHz
4216
MSO1074Z-S
70 MHz
4216
MSO1104Z
100 MHz
4
--
16
MSO1074Z
70 MHz
4
--
16
DS1104Z-S Plus
100 MHz
4216
[1]
DS1074Z-S Plus
70 MHz
4216
[1]
DS1104Z Plus
100 MHz
4
--
16
[1]
DS1074Z Plus
70 MHz
4
--
16
[1]
DS1054Z
50 MHz
4
--
--
Document Overview
This manual provides guidance on how to use the SC PI commands in programming to realize remote
control of RIGOL MSO1000Z/DS1000Z series digital oscilloscope through the remote interface.
MSO1000Z/DS1000Z can communicate with a PC through the USB or the LAN bus.
Main Topics in this Manual:
Chapter 1 Programming Overview
This chapter introduces how to build the remote communication between MSO1000Z/DS1000Z series
digital oscilloscope and the PC. It also introduces the remote control methods as well as the syntax,
symbols, parameters and abbreviation rules of the SCPI commands.
Chapter 2 Command System
This chapter introduces the syntax, function, parameter and us ing instruction of each command.
Chapter 3 Programming Demos
This chapter lists some programming demos to illustrate how to use comm ands to realize the common
functions of the oscilloscope in the development environments of Excel, Matlab, LabVIEW, Visual Basic 6.0
and Visual C++ 6.0.
For the newest version of this manual, please download it from
official website (www.rigol.com).
Format Conventions in this Manual:
1. Key
The function key at the front panel is denoted by the format of "Key Name (Bold) + Text Box" in the
manual. For example, Utility denotes the "Utility" key at the front panel.
2. Menu
The menu item is denoted by the format of "Menu Word (Bold) + Character Shading" in the manual.
For example, System denotes the "System" 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.
Content Conventions in this Manual:
MSO1000Z/DS1000Z series includes the following models. Unless otherwise noted, this manual takes
MSO1104Z-S as an example to illustrate the command system of MSO1000Z/DS1000Z series.
Model Analog Bandwidth
Analog
Signal Source
Number of
Digital Channels
[1]
Note
II MSO1000Z/DS1000Z Programming Guide
: Need to be upgraded to MSO using the MSO upgrade option.
Contents RIGOL
Contents
Guaranty and Declaration ......................................................................................................... I
Document Overview ................................................................................................................. II
Visual C++ Programming Demo ............................................................................................... 3-15
VIII MSO1000Z/DS1000Z Programming Guide
Chapter 1 Programming Overview RIGOL
Chapter 1 Programming Overview
This chapter introduces how to build the remote communication between MSO1000Z/DS1000Z series
digital oscilloscope and the PC. It also introduces the remote control methods as well as the syntax,
symbols, parameters and abbreviation rules of the SCPI commands.
Main topics of this chapter:
To Build Remote Communication
Remote Control Methods
SCPI Command Overview
MSO1000Z/DS1000Z Programming Guide 1-1
RIGOL Chapter 1 Programming Overview
1
2
To Build Remote Communication
This oscilloscope can communicate with a PC through the USB or the LAN bus. This section introduces how
to control the oscilloscope remotely through the USB interface using Ultra Sigma in details.
Operation Steps:
1. Install the Ultra Sigma common PC software
Download the Ultra Sigma common PC software from RIGOL official website (
install it according to the instructions.
2. Connect the instrument and PC and configure the interface parameters of the instrument
MSO1000Z/DS1000Z can communicate with a PC through the USB or the LAN bus. This manual takes
the USB interface as an example.
(1) Connect the devices
Connect the USB Device interface at the real pan el of th e osc illoscope and the USB H ost in terf ace
of the PC using a USB ca bl e .
(2) Install the USB driver
This oscilloscope is a USB-TMC device. After you connect the oscilloscope to the PC and turn both
on for the first time (the oscilloscope is automatically configured to the USB interface; at the same
time, make sure that Utility IO Setting USB Device is set to "Computer"), the Found New Hardware Wizard as shown in the figure below is displayed on the PC. Please install the
"USB Test and Measurement D evice (IVI)" driver following the directions in the wizard. The steps
are as follows.
www.rigol.com) and
1-2 MSO1000Z/DS1000Z Programming Guide
Chapter 1 Programming Overview RIGOL
3 4 5
6
MSO1000Z/DS1000Z Programming Guide 1-3
RIGOL Chapter 1 Programming Overview
7
(3) Search for device resource
Start up the Ultra Sigma and the software will automatically search for the instrument resources
currently connected to the PC. You can also click
(4) View the device res o ur ces
The resources found will appear under the "RIGOL Online Resource" directory and the model
number and USB interface information of the instrument will also be displayed.
For example, MSO1104Z (USB0::0x1AB1::0x04CE::DS1ZD170800001::INSTR).
(5) Control the instrument remotely
Right click the resource name "MSO1104Z (USB0::0x1AB1::0x04CE::DS1ZD170800001::INSTR)"
and select "SCPI Panel Control" to turn on the remote command control panel through which you
can send commands and read data.
to search for the resources.
Remote Control Methods
1. User-defined Programming
Users can use SCPI (Standard Commands for Programmable Instruments) commands to program and
control the oscilloscope. For details, refer to the introductions in "Chapter 3 Programming Demos".
2. Send SCPI Commands via PC Software
You can control the oscilloscope remotely by sending SCPI commands via PC software. Ultra Sigma
provided by RIGOL is recommended
.
1-4 MSO1000Z/DS1000Z Programming Guide
Chapter 1 Programming Overview RIGOL
SCPI Command Overview
SCPI (Standard Comm ands for Programmable Instruments) is a standardized instrument programming
language that is built upon the standard IEEE 488.1 and IEEE 488.2 and conforms to various standards
(such as the float ing point operation rule in IEEE 754 standard, ISO 646 7-bit coded character for
information intercha nge (equivalent to ASCII programming)). The SCPI commands provide a hierarchical
tree structure and consist of multiple subsystems. Each com mand subsystem consists of a root keyword
and one or more sub-keywords.
Syntax
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 keywords and the first parameter are separated by space.
For example,
:ACQuire:TYPE <type>
:ACQuire:TYPE?
ACQuire is the root keyword of the command. TYPE is the second-level keyword. The command string starts
with ":" which is also used t o separate the multiple-level keywords. <type> represents the parameters
available for setting. "?" represents query. The command keywords :ACQuire:TYPE and parameter <type>
are separated by a space.
"," is generally used for separating multiple parameters contained in the same command, for example,
[:TRACe[<n>]]:DATA:VALue volatile,<points>,<data>
Symbol Description
The following symbols will not be sent with the commands.
1.Braces {}
The parameters enclosed in the braces are optional and are usually separated by the vertical bar "|".
When using the command, one of the parameters must be selected.
2.Vertical Bar |
The vertical bar is used to separate multiple parameters and one of the parameters must be selected
when using the command.
3.Square Brackets []
The content in the square brackets can be omitted.
4.Triangle Brackets <>
The parameter enclosed in the triangle brackets must be replaced by an effective value.
Parameter Type
1. Bool
The parameter could be ON, OFF, 1, or 0. For example,
:MEASure:ADISplay <bool >
:MEASure:ADISplay?
Wherein,
<bool> can be set to {{1|ON}|{0|OFF}}.
MSO1000Z/DS1000Z Programming Guide 1-5
RIGOL Chapter 1 Programming Overview
The query returns 1 or 0.
2. Discrete
The parameter could be any of the values listed. For example,
:ACQuire:TYPE <type>
:ACQuire:TYPE?
Wherein,
<type> can be set to NORMal|AVERages|PEAK|HRESolution.
The query returns the abbreviations (NORM, AVER, PEAK, or HRES).
3. Integer
Unless otherwise noted, the parameter can be any integer (NR1 format) within the effective value
range. Note that do not set the parameter to a decimal, otherwise errors will occur. For example,
:DISPlay:GBRightne ss <br i ghtne ss >
:DISPlay:GBRightness?
Wherein,
<brightness> can be set to any integer between 0 and 100.
The query returns an integer between 0 and 100.
4. Real
The parameter can be any real number within the effective value range and this command accepts
decimal (NR2 format) and scientific notation (NR3 format) parameter input. For example,
:TRIGger:TIMeout:TIMe <NR3>
:TRIGger:TIMeout:TIMe?
Wherein,
<NR3> can be set to any real number between 1.6e-08 (namely 16ns) to 1e+01 (namely 10s).
The query returns a real number in scientific notation.
5. ASCII String
The parameter should be the combinations of ASCII characters.
For example,
:SYSTem:OPTion:INSTall <license>
Wherein,
<license> can be set to PDUY9N9QTS9PQSWPLAETRD3UJHYA.
Command Abbreviation
All the commands are case-insensitive and you can use any of them. If abbreviation is used, all the capital
letters in the command must be written completely. For example,
:MEASure:ADISplay? can be abbreviated to :MEAS:ADIS?.
1-6 MSO1000Z/DS1000Z Programming Guide
Chapter 2 Command System RIGOL
Chapter 2 Command System
This chapter introduces the syntax, function, parameter, and using instruction of each MSO1000Z/DS1000Z
command.
1. Unless otherwise noted, this manual takes MSO1104Z-S as an example to introduce the commands.
2. Unless otherwise noted, the descriptions and commands related to the digital channels in this manual
are only applicable to MSO1000Z and DS1000Z Plus with the MSO upgrade option.
3. For parameter setting commands (for example, the time, frequency, and amplitude), the oscilloscope
can only accept numbers and set the parameters using the default units; it cannot recognize the units
sent with the parameters. For the def ault unit of each parameter, please refer to the descr iption in each
command in the following introductions.
MSO1000Z/DS1000Z Programming Guide 2-1
RIGOL Chapter 2 Command System
Syntax
:AUToscale
at the front panel.
recorded waveform, this command is invalid.
Syntax
:CLEar
panel.
Command
:STOP
waveform, these commands are invalid.
:AUToscale
Description Enable the waveform auto setting function. The oscilloscope will automatically adjust the
vertical scale, horizontal timebase, and trigger mode according to the input signal to
realize optimum waveform display . This command is equivalent to pressing the AUTO key
Explanation Theoretically, wav eform auto setting function requires that the frequency of sine is no
lower than 41Hz; the duty cycle should be greater than 1% and the amplitude must
be at least 20mVpp for square (the probe ratio is 1X).
When the pass/fail function is enabled (see the
this command, the oscilloscope will disable the pass/fail function firstly and then
execute the waveform auto setting function.
When the waveform record function is enabled or during the playback of the
:MASK:ENABle command), if you sent
:CLEar
Description Clear all the waveforms on the screen. If the oscilloscope is in the RUN state, waveform
will still be displayed. This command is equivalent to pressing the CLEAR key at the front
Related
:DISPlay:CLEar
:RUN
:STOP
Syntax :RUN
Description The :RUN command starts the oscilloscope and the :STOP command stops the
oscilloscope. These commands are equivalent to pressing the RUN/STOP key at the
front panel.
Explanation When the waveform record function is ena bled or during the playback of the recorded
2-2 MSO1000Z/DS1000Z Programming Guide
Chapter 2 Command System RIGOL
Syntax
:SINGle
the :TRIGger:SWEep SINGle command.
recorded waveform, this command is invalid.
:STOP
Syntax
:TFORce
the FORCE key in the trigger control area at the front panel.
:SINGle
Description Set the oscilloscope to the single trigger mode. This command is equivalent to any of the
following two operations: pressing the SINGLE key at the front panel and sending
Explanation In the single trigger mode, the oscilloscope triggers once when the trigger conditions
are met and then stops.
When the waveform record function is enabled or during the playback of the
Related
Commands
:TFORce
:RUN
:TFORce
Description Generate a trigger signal forcefully. This command is only applicable to the normal and
single trigger modes (see the
:TRIGger:SWEep command) and is equivalent to pressing
MSO1000Z/DS1000Z Programming Guide 2-3
RIGOL Chapter 2 Command System
:ACQuire:AVERages?
Description
Set or query the number of averages under the average acquisition mode.
Name
Type
Range
Default
waveform to the waveform changes.
:ACQuire:AVERages? /*The query returns 128*/
:ACQuire Commands
The :ACQuire commands are used to set and qu ery the memory depth, acquisition mode and the number of
averages as well as query the current sample rate of the oscilloscope.
not included and you can refer to the complete introducti ons of the command s in t he text according to the keywords.
: In the "Command List" in this manual, the parameters in the setting commands and the query commands are
:ACQuire:AVERages
Syntax :ACQuire:AVERages <c ount>
[1]
:
Parameter
<count> Integer 2n (n is an integer from 1 to 10) 2
Explanation You can sent the :ACQuire:TYPE command to set the acquisition mode.
In the average acquisition mode, greater number of averages can lower the noise
and increase the vertical resolution, but will also slow the response of the displayed
Return
The query returns an integer between 2 and 1024.
Format
Example
:ACQuire:AVERages 12 8 /*Set the number of averages to 128*/
2-4 MSO1000Z/DS1000Z Programming Guide
Chapter 2 Command System RIGOL
:ACQuire:MDEPth?
Name
Type
Range
Default
according to the current sample rate.
Format
:ACQuire:MDEPth? /*The query returns 12000*/
Command
:ACQuire:MDEPth
Syntax :ACQuire:MDEPth <mdep>
Description Set or query the memory depth of the oscilloscope (namely the number of waveform
points that can be stored in a single trigger sample). The default unit is pts (points).
Parameter
<mdep>
Discrete Refer to Explanation
Explanation For the analog channel:
― When a single channel is enabled, the range of <mdep> is {AUTO|12000|
120000|1200000|12000000|24000000}. Wherein, 24000000 (pts) is an
optional memory depth.
― When dual channels are enabled, the range of <mdep> is {AUTO|6000|60000|
600000|6000000|12000000}. Wherein, 12000000 (pts) is an optional memory
depth.
― When three/four channels are enabled, the range of <mdep> is {AUTO|3000|
30000|300000|3000000|6000000}. Wherein, 6000000 (pts) is an optional
memory depth.
For the digital channel:
― When 8 channels are enabled, the range of <mdep> is {AUTO|12000|120000|
1200000|1200 0000|24000000} . Wherein, 24000000 (pts) is an optional
memory depth.
― When 16 chan nels are enabled, the range of <mdep> is {AUTO|6000|60000|
600000|60000 00|12000000} . Wherein, 12000000 (pts) is an optional memory
depth.
The following equation des cribes the relationship among memory depth, sample
rate, and waveform length:
Memory Depth = Sample Rate x Waveform Length
Wherein, the Waveform Length is the product of the horizontal timebase (set by
:TIMebase[:MAIN]:SCALe command) times the number of grids in the horizontal
the
direction on the screen (12 for MSO1000Z/DS1000Z).
When AUTO is selected, the oscilloscope will select the memory depth automatically
AUTO
Return
Example
Related
The query returns the actual number of points (integer) or AUTO.
:ACQuire:MDEPth 12000 /*Set the memory depth to 12000pts*/
:ACQuire:SRATe?
MSO1000Z/DS1000Z Programming Guide 2-5
RIGOL Chapter 2 Command System
:ACQuire:TYPE?
Description
Set or query the acquisition mode of the oscilloscope.
Name
Type
Range
Default
<type>
Discrete
{NORMal|AVERages|PEAK|HRESolution}
NORMal
storage rate of the acquisition memory.
Format
:ACQuire:TYPE? /*The query returns AVER*/
:ACQuire:TYPE
Syntax :ACQuire:TYPE <type>
Parameter
Explanation
Return
Example
NORMal
: in this mode, the oscilloscope samples the signal at equal time interval to
rebuild the waveform. For most of the waveforms, the best display effect can be
obtained using this mode.
AVERages: in
this mode, the oscilloscope averages the waveforms from multiple
samples to reduce the random noise of the input signal and improve the vertical
resolution. The number of av er ages can be s et by th e
:ACQuire:AVERages command.
Greater number of av erages can lower the noise and increase the vertical resolution,
but will also slow the response of the displayed wa v ef orm to th e wav eform changes.
PEAK (Peak Detect): in this mode, the oscilloscope acquires the maximum and
minimum values of the signal within the sample interval to get the envelope of the
signal or the narrow pulse of the signal that might be lost. In this mode, signal
confusion can be prevented but the noise displayed would be larger.
HRESolution (High Resolution): this mode uses a kind of ultra-sample technique to
average the neighboring points of the sample waveform to reduce the random noise
on the input signal and generate much smoother waveforms on the screen. This is
generally used when the sample rate of the digital converter is higher than the
The query returns NORM, AVER, PEAK, or HRES.
:ACQuire:TYPE AVERages /*Select the average acquisition mode*/
2-6 MSO1000Z/DS1000Z Programming Guide
Chapter 2 Command System RIGOL
Syntax
:ACQuire:SRATe?
Description
Query the current sample rate. The default unit is Sa/s.
Explanation Sample rate is the sample frequency of the oscilloscope, namel y the wavef orm points
sampled per second.
The foll owing equation describes the relationship among memory depth, sample
rate, and waveform length:
Memory Depth = Sample Rate x Waveform Length
Wherein, the Memory Depth can be set us ing the
the Waveform Length is the product of the horizontal timebase (set by
:TIMebase[:MAIN]:SCALe command) times the number of the horizontal scales
the
:ACQuire:MDEPth command, and
Return
The query returns the sample rate in scientific nota tion.
MSO1000Z/DS1000Z Programming Guide 2-7
RIGOL Chapter 2 Command System
Syntax
:CALibrate:QUIT
Description
Exit the self-calibration at any time.
Command
Syntax
:CALibrate:STARt
send the :CALibrate:QUIT command to quit the self-calibration.
:CALibrate Commands
Command List:
:CALibrate:QUIT
:CALibrate:STARt
:CALibrate:QUIT
Related
:CALibrate:STARt
:CALibrate:STARt
Description The oscilloscope starts to execute self-calibration.
Explanation The self-calibration operation can make the oscilloscope quickly reach its optimum
working state to obtain the most accurate measurement values.
During the self-calibration, all the channels of the oscilloscope must be disconnected
from the inputs.
The functions of most of the keys are disabled during the self-calibration. You can
2-8 MSO1000Z/DS1000Z Programming Guide
Chapter 2 Command System RIGOL
:CHANnel<n>:BWLimit?
Description
Set or query the bandwidth limit p arameter of the specified channel .
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
--
Discrete
OFF
frequency components .
Format
:CHANnel1:BWLimit? /*The query returns 20M*/
:CHANnel<n> Commands
The :CHANnel<n> commands are used to set or query the vertical system parameters of the analog
channels, such as the bandwidth limit, coupling, vertical scale, and vertical offset.
Explanation OFF: disable the bandwidth limit and the high frequency components of the signal
under test can pass the channel.
20M: enable the bandwidth limit and the high frequency components of the signal
under test that exceed 20 MHz are attenuated.
Enabling the bandwidth limit can reduce the no ise, but can also attenuate the high
Return
Example
The query returns 20M or OFF.
:CHANnel1:BWLimit 20M /*Enable the 20MHz bandwidth limit*/
MSO1000Z/DS1000Z Programming Guide 2-9
RIGOL Chapter 2 Command System
:CHANnel<n>:COUPling?
Description
Set or query the coupling mode of the specified channel.
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
--
<coupling>
Discrete
{AC|DC|GND}
DC
GND: the DC and AC components of the signal under test a re both blocked.
Format
:CHANnel1:COUPling? /*The query returns AC*/
:CHANnel<n>:DISPlay?
Description
Enable or disable the specified channel or query the status of the specified channel.
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
--
CH2 to CH4: 0|OFF
Format
:CHANnel1:DISPlay? /*The query returns 1*/
:CHANnel<n>:COUPling
Syntax :CHANnel<n>:COUPling <coupling>
Parameter
Explanation AC: the DC components of the signal under test are blocked.
DC:t he DC and AC components of the signal under test can both pass the channel.
Return
Example
The query returns AC, DC, or GND.
:CHANnel1:COUPling AC /*Select the AC coupling mode*/
:CHANnel<n>:DISPlay
Syntax :CHANnel<n>:DISPlay <bool>
Parameter
<bool> Bool {{1|ON}|{0|OFF}}
Return
Example
The query returns 1 or 0.
:CHANnel1:DISPlay ON /*Enable CH1*/
CH1: 1|ON
2-10 MSO1000Z/DS1000Z Programming Guide
Chapter 2 Command System RIGOL
:CHANnel<n>:INVert?
Name
Type
Range
Default
<bool>
Bool
{{1|ON}|{0|OFF}}
0|OFF
invert is turned on, the waveform voltage values are inverted.
Format
:CHANnel1:INVert? /*The query returns 1*/
:CHANnel<n>:OFFSet?
Description
Set or query the vertical offset of the specified channel. The default unit is V.
Description Enable or disable the waveform invert of the specified channel or query the sta tus of the
waveform invert of the specified channel.
Parameter
<n> Discrete {1|2|3|4} --
Explanation When waveform invert is turned off, the wave form display is normal; when waveform
Return
Example
The query returns 1 or 0.
:CHANnel1:INVert ON /*Enable the waveform invert of CH1*/
:CHANnel<n>:OFFSet
Syntax :CHANnel<n>:OFFSet <offset>
Parameter
<n> Discrete {1|2|3|4} --
<offset> Real
Related to the current vertical scale and
probe ratio
When the probe ratio is 1X,
vertical scale≥500mV/div: -100V to +100V
vertical scale<500mV/div: -2V to +2V
When the probe ratio is 10X,
vertical scale≥5V/div: -1000V to +1000V
0V (the probe
ratio is 10X)
Return
Example
The query returns the vertical offset in scientific notation.
:CHANnel1:OFFSet 0.01 /*Set the vertical offset of CH1 to 10mV*/
MSO1000Z/DS1000Z Programming Guide 2-11
RIGOL Chapter 2 Command System
:CHANnel<n>:RANGe?
Description
Set or query the vertical range of the specified channel. The default unit is V.
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
--
When the probe ratio is 10X: 80mV to 800V
= Vertical Range/8). The vertical scale can be set by the :CHANnel<n>:SCALe command.
Description Set or query the delay calibration time of the specified channel to calibrate the zer o off set
of the corresponding channel. The default unit is s.
Parameter
<val> Real -100ns to 100ns 0.00s
Explanation <val> can only be set to the specific values in the specified step. If the parameter you
sent is not one of the specific values, the parameter will be set to the nearest specific
values automatically. The step varies with the horizontal timebase (set by
:TIMebase[:MAIN]:SCALe command), as shown in the table below.
the
10ns 200ps
Return
Example
200ns 4ns
Note: When the horizontal timebase is equal to or greater than 10μs, the delay
The query returns t he delay calibration time in scientific notation.
:CHANnel1:TCAL 0.00000002 /*Set the delay calibration time to 20ns*/
MSO1000Z/DS1000Z Programming Guide 2-13
RIGOL Chapter 2 Command System
:CHANnel<n>:SCALe?
Description
Set or query the vertical scale of the specified channel. The default unit is V.
When the probe ratio is 1X: 1mV to 10V
When the probe ratio is 10X (default): 10mV to
Explanation The range of the vertical scale is related to the current probe ratio (set by
:CHANnel<n>:PROBe command).
the
1V (the probe
ratio is 10X)
You can use the
adjustment of the vertical scale. By default, the fine adjustment is off. At this point,
you can only set the vertical scale in 1-2-5 step, namely 10mV, 20mV, 50mV,
100mV, …, 100V (the probe ratio is 10X). When the fine adjustment is on, you can
further adjust the vertical scale within a relatively smaller range to improve the
vertical resolution. If the amplitude of the input waveform is a little bit greater than
the full scale under the current scale and the amplitude would be a little bit lower if
the next scale is used, fine adjustment can be used to improve the display amplitude
Return
Example
The query returns the vertical scale in scientific notation.
:CHANnel1:SCALe 1 /*Set the vertic al scale of CH1 to 1V*/
:CHANnel<n>:PROBe
Syntax :CHANnel<n>:PROBe <atten>
Parameter
<n> Discrete {1|2|3|4} --
:CHANnel<n>:VERNier command to enable or disable the fine
<atten> Discrete
{0.01|0.02|0.05|0.1|0.2|0.5|1|2|5|10|20|50|
Explanation Setting the probe ratio refers to multiply the signal sample d with the specif ied ratio
and then display the result (the actual amplitude of the signal will not be affected).
Return
Example
Related
The query returns the probe ratio in scientific notation.
:CHANnel1:PROBe 10 /*Set the probe ratio of CH1 to 10X*/
:CHANnel<n>:SCALe
Command
2-14 MSO1000Z/DS1000Z Programming Guide
10
Chapter 2 Command System RIGOL
:CHANnel<n>:UNITs?
Description
Set or query the amplitude display unit of the specified channel.
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
--
Format
:CHANnel1:UNITs? /*The query returns VOLT*/
query the fine adjustment status of the vertical scale of the specified channel.
Name
Type
Range
Default
amplitude of the waveform to view the signal details.
Format
:CHANnel1:VERNier? /*The query returns 1*/
Command
:CHANnel<n>:UNITs
Syntax :CHAN ne l< n >: UNI Ts <un it s >
Parameter
<units> Discrete {VOLTage|WATT|AMPere|UNKNown} VOLTage
Return
Example
The query returns VOLT, WATT, AMP, or UNKN.
:CHANnel1:UNITs VOLTage /*Set the amplitude display unit of CH1 to V*/
:CHANnel<n>:VERNier
Syntax :CHANnel<n>:VER N ier <bool>
:CHANnel<n>:VERNier?
Description
Parameter
Explanation By default, the fine adjustment is off. At this point, you can only set the vertical scale in
Enable or disable the fine adjustment of the vertical scale of the specified channel, or
1-2-5 step, namely 10mV, 20mV, 50mV, 100mV…100V (the probe ratio is 10X). When the
fine adjustment is on, you can further adjust the vertical scale within a relatively smaller
range to improve the vertical resolution. If the amplitude of the input waveform is a little
bit greater than the full scale under the current scale and the amplitude would be a little
bit lower if the next scale is used, fine adjustment can be used to improve the display
Return
Example
The query returns 1 or 0.
:CHANnel1:VERNier ON /*Enable the fine adjustment function of the vertical scale of
CH1*/
Related
:CHANnel<n>:SCALe
MSO1000Z/DS1000Z Programming Guide 2-15
RIGOL Chapter 2 Command System
Description
Set or query the cursor measurement mode.
Name
Type
Range
Default
<mode>
Discrete
{OFF|MANual|TRACk|AUTO|XY}
OFF
horizontal timebase mode is XY.
Format
:CURSor:MODE? /*The query returns MAN*/
:CURSor Commands
The :CURSor commands are used to measure the X-axis value (such as time) and Y-axis value (such as
voltage) of the waveform displayed on the screen.
Explanation OFF: disable the cursor measurement funct ion.
MANual: enable the manual cursor measurement mode.
TRACk: enable the track cursor measurement mode.
AUTO: enable the auto cursor measurement mode.
XY: enable the XY cursor measurement mode. This mode is valid only when the
Return
Example
Related
Commands
The query returns OFF, MAN, TRAC, AUTO, or XY.
:CURSor:MODE MANual /*Enable the manual cursor measurement mode*/
Set or query the h orizontal unit in the manual cursor measurement mode.
Name
Type
Range
Default
PERCent: AX, BX, and BX-AX are expressed in percentage.
Format
:CURSor:MANual:TUNit? /*The query returns DEGR*/
:CURSor:MANual:SOURce
Syntax :CURSo r:MANual:SOURce <so urce>
Parameter
<source> Discrete
{CHANnel1|CHANnel2|CHANnel3|
CHANnel1
Explanation Only the channel that is enabled currently can be selected.
Return
Example
The query returns CHAN1, CHAN2, CHAN3, CHAN4, MATH, or LA.
:CURSor:MANual:SOURce CHANnel2 /*Set the channel source to CH2*/
:CURSor:MANual:TUNit
Syntax :CURSor:MANual:TUNit <unit>
Parameter
<unit> Discrete {S|HZ|DEGRee|PERCent} S
Explanation S: AX, BX, and BX-AX in the measurement results are in "s" and 1/|dX| is in "Hz".
HZ: AX, BX, and BX-AX in the measurement results are in "Hz" and 1/|dX| is in "s".
Return
Example
DEGRee: AX, BX, and BX-AX are in "degree".
The query returns S, HZ, DEGR, or PERC.
:CURSor:MANual:TUNit DEGRee /*Set the horizontal unit to "degree"*/
2-18 MSO1000Z/DS1000Z Programming Guide
Chapter 2 Command System RIGOL
:CURSor:MANual:VUNit?
Description
Set or query the vertical unit in the manual curs or measurement mode.
Name
Type
Range
Default
<unit>
Discrete
{PERCent|SOURce}
SOURce
automatically set to the unit of the current source.
Format
:CURSor:MANual:VUNit? /*The query returns PERC*/
Command
:CURSor:MANual:AX?
Description
Set or query the horizontal position of cursor A in the manual cursor measurement mode.
Name
Type
Range
Default
<x>
Integer
5 to 594
100
pixel range is from 0 to 400.
Format
:CURSor:MANual:AX? /*The query returns 200*/
:CURSor:MANual:VUNit
Syntax :CURSor:MANual:VUNit <unit>
Parameter
Explanation PERCent: AY, BY, and BY-AY in the measurement results are expressed in p ercentage.
SOURce: the units of AY, BY, and BY-AY in the measurement results will be
Return
Example
The query returns PERC or SOUR.
:CURSor:MANual:VUNit PERCent /*Set the system to express AY, BY, and BY-AY in the
measurement results in percentage*/
Related
:CHANnel<n>:UNITs
:CURSor:MANual:AX
Syntax :CURSor:MA Nua l :AX <x>
Parameter
Explanation The horizontal and vertical positions of the cursor are defined by the pixel coordinate of
the screen. The pixel coordinate of the screen ranges from (0,0) to (600,400). Wher ein,
(0,0) is located at the left top corner of the screen and (600,400) is located at the right
bottom corner of the screen. The horizontal pixel range is from 0 to 600 and the vertical
Return
Example
The query returns an integer between 5 and 594.
:CURSor:MANual:AX 200 /*Set the horizontal position of cursor A to 200*/
MSO1000Z/DS1000Z Programming Guide 2-19
RIGOL Chapter 2 Command System
:CURSor:MANual:BX?
Description
Set or query the horizontal position of cursor B in the manual cursor measurement mode.
Name
Type
Range
Default
<x>
Integer
5 to 594
500
pixel range is from 0 to 400.
Format
:CURSor:MANual:BX? /*The query returns 200*/
:CURSor:MANual:AY?
Description
Set or query the vertical position of cursor A in the manual curs or measurement mode.
Name
Type
Range
Default
<y>
Integer
5 to 394
100
at the right bottom corner of the screen. The horizontal pixel range is from 0 to 600
required.
Format
:CURSor:MANual:AY? /*The query returns 200*/
:CURSor:MANual:BX
Syntax :CURSor:MANual:BX <x>
Parameter
Explanation The horizontal and vertical positions of the cursor are defined by the pixel coordinate of
the screen. The pixel coordinate of the screen ranges from (0,0) to (600,400). Wherein,
(0,0) is located at the left top corner of the screen and (600,400) is located at the right
bottom corner of the screen. The horizontal pixel range is from 0 to 600 and the vertical
Return
Example
The query returns an integer between 5 and 594.
:CURSor:MANual:BX 200 /*Set the horizontal position of cursor B to 200*/
:CURSor:MANual:AY
Syntax :CURSor:MANual:AY <y>
Parameter
Explanation The horizontal and vertical positions of the cursor are defined by the pixel coordinate
of the screen. The pixel coordinate of the screen ranges from (0,0) to (600,400).
Wherein, (0,0) is located at the left top corner of the screen an d (600,400) is located
and the vertical pixel range is from 0 to 400.
When the signal source of manual cursor measurement is LA, Y type cursor is not
Return
The query returns an integer between 5 and 394.
Example
:CURSor:MANual:AY 200 /*Set the vertical position of cursor A to 200*/
2-20 MSO1000Z/DS1000Z Programming Guide
Chapter 2 Command System RIGOL
:CURSor:MANual:BY?
Description
Set or query the vertical position of cursor B in the manual cursor measurement mode.
Explanation The horizontal and vertical positions of the cursor are defined by the pixel coor dinate
of the screen. The pixel coordinate of the screen ranges from (0,0) to (600,400).
Wherein, (0,0) is located at the left top corner of the screen and (600,400) is located
at the right bottom corner of the screen. The horizontal pixel range is from 0 to 600
and the vertical pixel range is from 0 to 400.
When the signal source of manual cursor mea surement is LA, Y type cursor is not
Return
Example
The query returns an integer between 5 and 394.
:CURSor:MANual:BY 200 /*Set the vertical positio n of cursor B to 200*/
:CURSor:MANual:AXValue?
Description Query the X value of cursor A in the manual cursor measurement mode. T he unit depends
Return
Related
The query returns the X value of cursor A in scientific notation.
:CURSor:MANual:AX
Commands
:CURSor:MANual:AYValue?
Description Query the Y value of cursor A in the manual cursor measurement mode. T he unit depends
Return
Format
When the signal source is CHANnel1|CHANnel2|CHANnel3|CHANnel4|MATH, the
query returns the Y value of cursor A in scientific notation.
When the signal source is LA, the query returns the decimal value corresponding to
the sum of the binary weights of D15 bit to D0 bit at cursor A (the value of the
cursor measurement mode. The unit depends o n the vertical unit currently selected.
returns 4294967295.
Example
:CURSor:MANual:YDELta? /*The quer y returns -4.000000e+00*/
:CURSor:MANual:VUNit
:CURSor:MANual:IXDELta?
Description Query thereciprocal of the absolute v alue of the diff erence between the X v alues of cursor
A and cursor B (1/|dX|) in the manual cursor measurement mode. The unit depends on
Return
Related
Commands
The query returns 1/|dX| in scientific notation.
:CURSor:MANual:AX
:CURSor:MANual:BX
:CURSor:MANual:YDELta?
Description Query the difference between the Y v alues of cursor A and c ursor B (BY-AY) in the manual
Return
Format
Related
Commands
When the signal source is CHANnel1|CHANnel2|CHANnel3|CHANnel4|MATH, the query
returns the difference in scientific notation; when the signal source is LA, the query
:CURSor:MANual:AY
:CURSor:MANual:BY
MSO1000Z/DS1000Z Programming Guide 2-23
RIGOL Chapter 2 Command System
:CURSor:TRACk:SOURce1?
Description
Set or query the channel source of cursor A in the track cursor measurement mode.
Name
Type
Range
Default
CHANnel4|MATH}
Explanation
Only the channels enabled can be selected as the channel source.
Set or query the horizontal position of cursor A in the track cursor measurement mode.
<x>
Integer
5 to 594
100
pixel range is from 0 to 400.
Format
:CURSor:TRACk:AX? /*The query returns 200*/
:CURSor:TRACk:SOURce2
Syntax :CURSor:TRACk:SOURce2 <source>
Parameter
{OFF|CHANnel1|CHANnel2|CHANnel3|
CHANnel1
Return
Example
<source> Discrete
The query returns OFF, CHAN1, CHAN2, CHAN3, CHAN4, or MATH.
:CURSor:TRACk:SOURce2 CHANnel2 /*Set the channel source to CH2*/
:CURSor:TRACk:AX
Syntax :CURSor:TRACk:A X <x>
Parameter
Explanation The horizontal and vertical positions of the cursor are defined by the pixel coordinate of
Name Type Range Default
the screen. The pixel coordinate of the screen ranges from (0,0) to (600,400). Wherein,
(0,0) is located at the left top corner of the screen and (600,400) is located at the right
bottom corner of the screen. The horizontal pixel range is from 0 to 600 and the vertical
Return
Example
The query returns an integer between 5 and 594.
:CURSor:TRACk:AX 200 /*Set the horizontal position of cursor A to 200*/
MSO1000Z/DS1000Z Programming Guide 2-25
RIGOL Chapter 2 Command System
:CURSor:TRACk:BX?
Description
Set or query the horizontal position of cursor B in the track cursor measurement mode.
Name
Type
Range
Default
<x>
Integer
5 to 594
500
pixel range is from 0 to 400.
Format
:CURSor:TRACk:BX? /*The query returns 200*/
Syntax
:CURSor:TRACk:AY?
Description
Query the vertical position of cursor A in the track cursor measurement mode.
returns 4294967295.
Format
Example
:CURSor:TRACk:AY? /*The query retur ns 284*/
Syntax
:CURSor:TRACk:BY?
Description
Query the vertical position of cursor B in the track cursor measurement mode.
returns 4294967295.
Format
Example
:CURSor:TRACk:BY? /*The query returns 200*/
:CURSor:TRACk:BX
Syntax :CURSor:TRACk:BX <x>
Parameter
Explanation The horizontal and vertical positions of the cursor are defined by the pixel coordinate of
the screen. The pixel coordinate of the screen ranges from (0,0) to (600,400). Wherein,
(0,0) is located at the left top corner of the screen and (600,400) is located at the right
bottom corner of the screen. The horizontal pixel range is from 0 to 600 and the vertical
Return
Example
The query returns an integer between 5 and 594.
:CURSor:TRACk:BX 200 /*Set the horizontal position of cursor B to 200*/
:CURSor:TRACk:AY?
Explanation The horizontal and vertical positions of the cursor are defined by the pixel coordinate
of the screen. The pixel coordinate of the screen ranges from (0,0) to (600,400).
Wherein, (0,0) is located at the left top corner of the screen and (600,400) is located
at the right bottom corner of the screen. The horizontal pixel range is from 0 to 600
and the vertical pixel range is from 0 to 400.
When cursor A exceeds the vertical range of the screen display, the query always
Return
The query returns an integer.
:CURSor:TRACk:BY?
Explanation The horizontal and vertical positions of the cursor are defined by the pixel coordinate
of the screen. The pixel coordinate of the screen ranges from (0,0) to (600,400).
Wherein, (0,0) is located at the left top corner of the screen and (600,400) is located
at the right bottom corner of the screen. The horizontal pixel range is from 0 to 600
and the vertical pixel range is from 0 to 400.
When cursor B exceeds the vertical range of the screen display, the query always
Return
The query returns an integer.
2-26 MSO1000Z/DS1000Z Programming Guide
Chapter 2 Command System RIGOL
Syntax
:CURSor:TRACk:AXValue?
Description
Query the X value of cursor A in the track cursor measurement mode. The default unit is s.
The auto cursor function can measure 37 waveform parameters. Using this command,
you can select the parameters to be measured by the auto cursor from the five
parameters enabled last or query the par ameters c urrently measured by the auto cursor.
Parameter
Name Type Range Default
<item>
Discrete
{OFF|ITEM1|ITEM2|ITEM3|ITEM4|ITEM5}
OFF
Explanation This command is only valid when the auto cursor mode is selecte d . You can select
the auto cursor measurement mode using the
:CURSor:MODE command.
The 37 waveform parameters are listed below (see the detailed introduction
in
:MEASure Commands). The parameters can be enabled by the :MEASure:ITEM
command.
Period, Frequency, Rise Time, Fall Time, +Width, -Width, +Duty, -Duty, +Pulses,
The query returns OFF, ITEM1, ITEM2, ITEM3, ITEM4, or ITEM5.
Format
Example :CURSor:AUTO:ITEM ITEM3 /*Use auto cursor to measure ITEM3*/
:CURSor:AUTO:ITEM? /*The query returns ITEM3*/
MSO1000Z/DS1000Z Programming Guide 2-29
RIGOL Chapter 2 Command System
Syntax
:CURSor:AUTO:AX?
Description
Query the horizontal position of cursor A in auto cursor measurement.
Format
Syntax
:CURSor:AUTO:BX?
Description
Query the horizontal position of cursor B in auto cursor measurement.
measurement items. At this point, the query returns 4294967295.
Format
Syntax
:CURSor:AUTO:AY?
Description
Query the vertical position of cursor A in auto cursor measurement.
measurement items. At this point, the query returns 4294967295.
Format
:CURSor:AUTO:AX?
Explanation The horizontal and vertical positions of the cursor are defined by the pixel
coordinate of the screen. The pixel coordinate of the screen ranges from (0,0) to
(600,400). Wherein, (0,0) is located at the left top corner of the screen and
(600,400) is located at the right bottom corner of the screen. The horizontal pixel
range is from 0 to 600 and the vertical pixel range is from 0 to 400.
In auto cursor measurement, cursor A of X type is not required for some of the
measurement items. At this point, the query returns 4294967295.
Return
The query returns a n integer between 5 and 594.
:CURSor:AUTO:BX?
Explanation The horizontal and vertical positions of the cursor are defined by the pixel
coordinate of the screen. The pixel coordinate of the screen ranges from (0,0) to
(600,400). Wherein, (0,0) is located at the left top corner of the screen and
(600,400) is located at the right bottom corner of the screen. The horizontal pixel
range is from 0 to 600 and the vertical pixel range is from 0 to 400.
In auto cursor measurement, cursor B of X type is not required for some of the
Return
The query returns a n integer between 5 and 594.
:CURSor:AUTO:AY?
Explanation The horizontal and vertical positions of the cursor are defined by the pixel
coordinate of the screen. The pixel coordinate of the screen ranges from (0,0) to
(600,400). Wherein, (0,0) is located at the left top corner of the screen and
(600,400) is located at the right bottom corner of the screen. The horizontal pixel
range is from 0 to 600 and the vertical pixel range is from 0 to 400.
In auto cursor measurement, cursor A of Y type is not required for some of the
Return
2-30 MSO1000Z/DS1000Z Programming Guide
The query returns a n integer between 5 and 394.
Chapter 2 Command System RIGOL
Syntax
:CURSor:AUTO:BY?
Description
Query the vertical position of cursor B in auto cursor measurement.
Format
Syntax
:CURSor:AUTO:AXValue?
measurement items. At this point, the query returns 9.9E37.
Explanation The horizontal and vertical positions of the cursor are defined by the pixel
coordinate of the screen. The pixel coordinate of the screen ranges from (0,0) to
(600,400). Wherein, (0,0) is located at the left top corner of the screen and
(600,400) is located at the right bottom corner of the screen. The horizontal pixel
range is from 0 to 600 and the vertical pixel range is from 0 to 400.
In auto cursor measurement, cursor B of Y type is not required for some of the
measurement items. At this point, the query returns 4294967295.
Return
The query returns a n integer between 5 and 394.
:CURSor:AUTO:AXValue?
Description Query the X value of cursor A in auto cursor measurement. The unit depends on the
horizontal unit curr ently selected .
Explanation
Return
In auto cursor measurement, cursor A of X type is not required for some of the
The query returns the X value of cursor A in scientific notation.
:CURSor:AUTO:AYValue?
Syntax :CURSor:AUTO:AYValue?
Description
Explanation In auto cursor measurement, cursor A of Y type is not required for some of the
Query the Y value of cursor A in auto cursor measurement. The unit depends on the
Return
The query returns the Y value of cursor A in scientific notation.
:CURSor:AUTO:BXValue?
Description Query the X value of cursor B in auto cursor measurement. The unit depends on the
Explanation In auto cursor measurement, cursor B of X type is not required for some of the
Return
MSO1000Z/DS1000Z Programming Guide 2-31
The query returns the X value of cursor B in scientific notation.
RIGOL Chapter 2 Command System
Syntax
:CURSor:AUTO:BYValue?
vertical unit currently selected.
measurement items. At this point, the query returns 9.9E37.
Explanation In the XY timebase mode, the horizontal and vertical positions of the cursor are defined
by the pixel coordinate of the XY display area. The pixel coordinate of the screen ranges
from (0,0) to (400,400). Wherein, (0,0) is located at the right top corner and (400,400) is
located at the left bottom corner. The horizontal and vertical pixel ranges are both from 0
Return
Example
The query returns an integer between 5 and 394.
:CURSor:XY:AX 20 0 /*Set the horizontal position of cursor A to 200*/
MSO1000Z/DS1000Z Programming Guide 2-33
RIGOL Chapter 2 Command System
:CURSor:XY:BX?
Description
Set or query the horizontal position of cursor B in the XY cursor measurement mode.
located at the left bot tom c or ner. The horizontal and ver tic al pi x el r an ges ar e bo th fr om 0
to 400.
Format
:CURSor:XY:BX? /*The query returns 200*/
:CURSor:XY:AY?
Description
Set or query the vetical position of cursor A in the XY cursor measurement mode.
Name
Type
Range
Default
<x>
Integer
5 to 394
100
left bottom corner. The horizontal and vertical pixel ranges are both from 0 to 400.
Format
:CURSor:XY:AY? /*The query returns 200*/
:CURSor:XY:BX
Syntax :CURSor:XY:BX <x>
Parameter
Name Type Range Default
<x> Integer 5 to 394 300
Explanation In the XY timebase mode, the horizontal and vertical positions of the cursor are defined
by the pixel coordinate of the XY display area. The pixel coordinate of the screen ranges
from (0,0) to (400,400). Wherein, (0 ,0) is l ocated at the ri ght top corner and (400,400) is
Return
Example
The query returns an integer between 5 and 394.
:CURSor:XY:BX 200 /*Set the horizontal po sition of cursor B to 200*/
:CURSor:XY:AY
Syntax :CURSor:XY:AY <y>
Parameter
Explanation In the XY timebase mode, the horizontal and vertical positions are defined by the pixel
coordinate of the XY display area. The pixel coordinate of the screen ranges from (0,0 ) to
(400,400). Wherein, (0,0) is located at the right top corner and (400,400) is located at the
Return
Example
The query returns an integer between 5 and 394.
:CURSor:XY:AY 200 /*Set the vertical position of cursor A to 200*/
2-34 MSO1000Z/DS1000Z Programming Guide
Chapter 2 Command System RIGOL
:CURSor:XY:BY?
Description
Set or query the vertical position of cursor B in the XY cursor measurement mode.
Name
Type
Range
Default
<x>
Integer
5 to 394
300
located at the left bot tom c or ner. The horizontal and ver tic al pi x el r an ges a re bo th fr om 0
to 400.
Explanation In the XY timebase mode, the horizontal and vertical positions are defined by the pixel
coordinate of the XY display area. The pixel coordinate of the XY display area ranges from
(0,0) to (400,4 00). Wherein, (0,0) is located at the right top corner and (400,400) is
Return
The query returns an integer between 5 and 394.
Example :CURSor:XY:BY 200 /*Set the ve rtical position of cursor B to 200*/
:CURSor:XY:BY? /*The query returns 200*/
:CURSor:XY:AXValue?
Description Query the X value of cur sor A in the XY cursor measurement mode. The unit depends on
Return
The query returns the X value of cursor A in scientific notation.
Format
Related
:CHANnel<n>:UNITs
:CURSor:XY:AYValue?
Description Query the Y value of cursor A in the XY cursor measurement mode. The unit depends on
Return
Related
The query returns the Y value of cursor A in scientific notation.
Explanation PARallel, UART, SPI, and IIC correspond to parallel decoding, RS232 decoding, SPI
Return
Example :DECoder1:MODE SPI /*Set the decoder type to SPI*/
MSO1000Z/DS1000Z Programming Guide 2-37
decoding, and I2C decoding respectively. Wherein, RS232 decoding, SPI decoding, and
I2C decoding are options and this command is only available when the corresponding
The query returns PAR, UART, SPI, or IIC.
:DECoder1:MODE? /*The query returns SPI*/
RIGOL Chapter 2 Command System
:DECoder<n>:DISPlay?
Name
Type
Range
Default
<bool>
Bool
{{1|ON}|{0|OFF}}
0|OFF
Format
:DECoder1:DISPlay? /*The query returns 1*/
Name
Type
Range
Default
<n>
Discrete
{1|2}
--
format is the same as binary.
Format
:DECoder1:FORMat? /*The query returns HEX*/
:DECoder<n>:DISPlay
Syntax :DECoder<n >: DISPl ay <bool>
Description Turn on or off the decode r or query the status of the decoder.
In LINE format, the actual values of the bus are displayed in binary form and the
order is consistent with the bus transmission order. This format is only valid for
serial buses which include LSB and MSB endian. If MSB endian is selected, LINE
Return
The query returns HEX, ASC, DEC, BIN, or LINE.
Example
:DECoder1:FORMat HEX /*Set the bus display format to hexadecimal*/
2-38 MSO1000Z/DS1000Z Programming Guide
Chapter 2 Command System RIGOL
:DECoder<n>:POSition?
Format
:DECoder1:POSition? /*The query returns 300*/
:DECoder<n>:POSition
Syntax :DECode r<n>:POSiti on <pos>
Description Set or query the vertical positi on of the bus on the screen.
Parameter
Name Type Range Default
<n> Discrete {1|2} --
<pos> Integer 50 to 350
Decoder 1: 350
Decoder 2: 300
Explanation The screen is divided into 400 parts vertically which are marked as 0 to 400 from top to
bottom respectively. The range of <pos> is from 50 to 350.
Return
Example
The query returns an integer between 50 and 350.
:DECoder1:POSition 300 /*Set the vertical position of the bus to 300*/
Explanation By default, the auto threshold function of the analog channels of the oscilloscope is
turned on. To set the threshold level manually, send this command to turn off the auto
threshold function and use the comma nds in Related Commands to set the threshold
Return
Example
Related
Commands
The query returns 1 or 0.
:DECoder1:THREshold:AUTO OFF /*Turn off the auto threshold function*/
Explanation If the oscilloscope is in the RUN state, waveform will still be displayed.
This command is eq uivalent to pressing the CLEAR key at the front panel. Sending
Related
:RUN
2-62 MSO1000Z/DS1000Z Programming Guide
Chapter 2 Command System RIGOL
Syntax
:DISPlay:DATA? [<color>,<invert>,<format>]
invert display, and format of the image acquired.
Name
Type
Range
Default
<color>
Bool
{ON|OFF}
ON
<invert>
Bool
{{1|ON}|{0|OFF}}
0|OFF
<format>
Discrete
{BMP24|BMP8|PNG|JPEG|TIFF}
BMP24
image currently displayed to the buffer area of the PC.
effective data.
example)
bitmap file header.
4. The terminator '\n'(0X0A) at the end of the data should be removed.
:DISPlay:DATA?
Description Read the data stream of the image currently displayed on the screen and set the color,
Parameter
Explanation <color>: color of the image; ON denotes color and OFF denotes intensity graded
color.
<invert>: the invert function; 1|ON denotes turning on the invert function and 0|OFF
denotes turning off the invert function.
When [<color>,<invert>,<format>] is omitted, by default, the image color
:STORage:IMAGe:COLor) and the status of the invert function
(
:STORage:IMAGe:INVERT) currently selected are used and the image format is set
(
to BMP24.
The command is sent from the PC to the instrument through the VISA interface. The
instrument responds to the command and directly returns the data stream of the
Return
Format
The format of the data stream is as follows.
Component Size (length)ExampleExplanation
TMC Blockheader ::= #NXXXXXX
is used to describe the length of
the data stream. Wherein, # is the
start denot er of the data stream; N
is less than or equal to 9 and the N
TMC
Blockheader
[1]
+2 #9001152054
N
figures following it denote the
length of the data stream in bytes.
For example, #9001152054;
wherein, N is 9 and 001152054
denotes that the data stream
contains 1152054 bytes of
Image Data
(take BMP24
as an
[1]
Note
"#" in #9001152054.
Note
: N is the width of the data length in the TMC header. For example, the number "9" behind
[2]
: The width is 800, the height is 480, the bit depth is 24 bit = 3 byte, 54 is the size of the
800x480x3+54
=1152054
[2]
BM… Specific image data.
Example 1. Make sure that the buffer is large enough to receive the data stream, otherwise the
program might be abnormal when reading the data stream.
2. The returned data stream co ntains the TMC data header which should be removed to
make the data stream a standard image data stream.
3. When the data size is larger than 1 M and the communication speed of the interface
is not fast enough, you need to set an approp riate timeout time.
MSO1000Z/DS1000Z Programming Guide 2-63
RIGOL Chapter 2 Command System
:DISPlay:TYPE?
Description
Set or querythe display mode of the waveform on the screen.
Name
Type
Range
Default
the sample points are connected by lines. Normally, this mode can provide
and use the cursor to measure the X and Y values of the sample point.
Format
:DISPlay:TYPE? /*The query returns DOTS*/
:DISPlay:TYPE
Syntax :DISPl ay:TYPE <type>
Parameter
<type> Discrete {VECTors|DOTS} VECTors
Explanation VECTors:
the most vivid waveform to view the steep edge of the waveform (such as square
waveform).
DOTS: display the sample points directly. You can directly view each sample point
Return
Example
The query returns VECT or DOTS.
:DISPlay:TYPE DOTS /*Select dots display mode*/
2-64 MSO1000Z/DS1000Z Programming Guide
Chapter 2 Command System RIGOL
:DISPlay:GRADing:TIME?
Description
Set or query the persistence time. The default unit is s.
Name
Type
Range
Default
and jitter as well as capture incidental events.
Format
:DISPlay:GRADing:TIME? /*The query returns 0.1*/
:DISPlay:WBRightness?
Name
Type
Range
Default
Format
:DISPlay:WBRightness? /*The query returns 50*/
:DISPlay:GRADing:TIME
Syntax :DISPlay:GRADing:TIME <time>
Parameter
<time> Discrete {MIN|0.1|0.2|0.5|1|5|10|INFinite} MIN
Explanation MIN: set the persistence time to its minimu m to vi ew the w av efor m changing i n high
refresh rate.
Specific Values: set the persistence time to one of the values listed above to observe
glitch that changes relatively slowly or glitch with low occurrence probability.
INFinite: in this mode, the oscilloscope displa ys the newly acquired waveform
without clearing the waveform formerly acquired. It can be used to measure noise
Return
Example
The query returns MIN, 0.1, 0.2, 0.5, 1, 5, 10, or INF.
:DISPlay:GRADing:TIME 0.1 /*Set the persistence time to 0.1s*/
:DISPlay:WBRightness
Syntax :DISPla y:WBR ig ht ness <ti me >
Description Set or query the waveform brightness.
Parameter
<time> Integer 0 to 100 60
Return
Example
The query returns an integer between 0 and 100.
:DISPlay:WBRightness 50 /*Set the waveform bright ness to 50%*/
MSO1000Z/DS1000Z Programming Guide 2-65
RIGOL Chapter 2 Command System
:DISPlay:GRID?
Description
Set or query the grid type of screen display.
Name
Type
Range
Default
<grid>
Discrete
{FULL|HALF|NONE}
FULL
NONE: turn the background grid and coordinate off.
Format
:DISPlay:GRID? /*The query returns NONE*/
:DISPlay:GBRightness?
Description
Set or query the bri ghtness of the screen grid.
Name
Type
Range
Default
Format
:DISPlay:GBRightness? /*The query returns 60*/
:DISPlay:GRID
Syntax :DISPlay: GRID <gr id >
Parameter
Explanation FULL: tur n the background grid and coordinate on.
HALF: turn the background grid off and coordinate on.
Return
Example
The query returns FULL, HALF, or NONE.
:DISPlay:GRI D NON E /*Turn the background grid and coordinate off*/
:DISPlay:GBRightness
Syntax :DISPlay: GBRi ght ne ss <br i ghtne ss >
Parameter
<brightness> Integer 0 to 100 50
Return
Example
The query returns an integer between 0 and 100.
:DISPlay:GBRightness 60 /*Set the brightness of the screen grid to 60%*/
2-66 MSO1000Z/DS1000Z Programming Guide
Chapter 2 Command System RIGOL
:ETABle<n>:DISP?
<bool>
Bool
{{1|ON}|{0|OFF}}
0|OFF
Format
:ETABle1:DISP? /*The query returns 1*/
Format
:ETABle1:FORMat? /*The query returns ASC*/
:ETABle Commands
The :ETABle commands are used to set the parameters related to the decoding event table.
:ETABle1:FORMat ASCii /*Set the data display format of the event table to ASCII*/
MSO1000Z/DS1000Z Programming Guide 2-67
RIGOL Chapter 2 Command System
:ETABle<n>:VIEW?
Name
Type
Range
Default
<n>
Discrete
{1|2}
--
<view>
Discrete
{PACKage|DETail|PAYLoad}
PACKage
Format
:ETABle1:VIEW? /*The query returns PAYL*/
:ETABle<n>:COLumn?
Name
Type
Range
Default
parameter.
Format
:ETABle1:COLumn? /*The query r eturns DATA*/
:ETABle<n>:VIEW
Syntax :ETABle<n>:VIEW <view>
Description Set or query the display mode of the event table.
Parameter
Explanation PACKage: the time and data are displayed in the event table.
DETail: the detailed data of the specifie d row is displayed in the event table.
PAYLoad: all data of the specified c olumn is displayed in the event table.
Return
Example
The query returns PACK, D ET, or PAYL.
:ETABle1:VIEW PAYLoad /*Set the display mode of the event table to PAYLoad*/
:ETABle<n>:COLumn
Syntax :ETABle<n>:COLumn <col >
Description Set or query the current column of the event table.
Description Set or query the current row of the event table.
Parameter
Return
Name Type Range Default
<row> Integer
1 to the maximum number of rows of the
The query returns the current row in integer. If the current even table is empty, the
Example :ETABle1:ROW 2 /*Set the current row to 2*/
:ETABle<n>:SORT
Syntax :ETABle<n>:SORT <sort>
Description Set or query the display type of the decoding results in the event table.
Parameter
<sort> Discrete {ASCend|DESCend} ASCend
Explanation ASCend: the events are displayed in the order in which they occurre d.
1
Return
Example
DESCend: the events are displayed in the order reverse to the order in which they
The query returns ASC or DESC.
:ETABle1:SORT DESCend /*Set the display type of the event table to descend*/
MSO1000Z/DS1000Z Programming Guide 2-69
RIGOL Chapter 2 Command System
Syntax
:ETABle<n>:DATA?
Name
Type
Range
Default
<n>
Discrete
{1|2}
--
Example
:ETABle1:DATA? /*The query returns the data as shown in the figure above*/
TMC Data
Event T able
:ETABle<n>:DATA?
Description Read the current event table data.
Parameter
Return
Format
The query returns the event table data in the format as shown in the figure below.
Wherein, #9000000098 is the TMC data description header followed by the even table
data and its format is #900000dddd. dddd denotes the number of bytes of the valid
waveform data following the d escription header. For example, as shown in the figure
below, #9000000098 is the TMC data description header, wherein, 98 denotes that there
are 98 bytes of valid data. The content following 98 is the event table data.
Description Query the maximum number of frames can be recorded currently.
Explanation
As the capacity of the waveform memory is fixed, the more the number of points each
frame of wav eform has, the less the number of wav eform frames can be recorded. Thus,
the maximum number of frames can be recorded currently is decided by the memory
depth currently selected. The less the memory depth, the more the numb er of waveform
Return
The query returns the maximum n u mber of f r ames c an be record ed c ur ren tly in in teger.
Format
:FUNCtion:WRECord:FINTerval
Syntax :FUNCtion:WRECord:FINTerval <interval>
Description Set or query the time interval between f rames in wavefo rm recording. The default unit is
Parameter
Return
Example
Name Type Range Default
<interval> Real 100ns to 10s 100ns
The query returns the time interval currently set in scientific notation.
:FUNCtion:WRECord:FINTerval 0.001 /*Set the time interval to 1ms*/
:FUNCtion:WRECord:PROMpt
Syntax :FUNCtion:WRECord:PROMpt <bool>
Description Turn on or off the sound p rompt when the recording finishes, or query the status of the
Parameter
Explanation When the sound prompt is turned on, the instrument exerts a sound pro mt when the
Return
Example
Name Type Range Default
<bool> Bool {{1|ON}|{0|OFF}} 1|ON
recording finishes no matter whether the system sound (refer to
:SYSTem:BEEPer) is
The query returns 1 or 0.
:FUNCtion:WRECord:PROMpt 1 /*Turn on the sound prompt when the recording
finishes*/
2-72 MSO1000Z/DS1000Z Programming Guide
Chapter 2 Command System RIGOL
:FUNCtion:WRECord:OPERate?
<opt>
Discrete
{RUN|STOP}
--
/*The query returns RUN if the recording is in
already finished*/
:FUNCtion:WRECord:ENABle?
recording function.
the :FUNCtion:WRECord:OPERate command to start the recording.
Format
:FUNCtion:WRECord:ENABle? /*The query returns 1*/
:FUNCtion:WRECord:OPERate
Syntax :FUNCtion:WRECord:OPERate <opt>
Description Start or stop the waveform recording, or query the st atus of the waveform recording.
Parameter
Name Type Range Default
Explanation Before sending this command, send the :FUNCtion:WRECord:ENABle command to turn
on the waveform recording function. Otherwise, this command is invalid.
Return
The query returns RUN or STOP.
Format
Example
:FUNCtion:WRECord:OPERate RUN /*Start the waveform recording*/
:FUNCtion:WRECord:OPERate?
progress and returns STOP if the recording has
:FUNCtion:WRECord:ENABle
Syntax :FUNCtio n:WRECord:ENABle <bool>
Description Turn on or off the waveform r ecording function, or query the status of the waveform
Parameter
Name Type Range Default
<bool> Bool {{1|ON}|{0|OFF}} 0|OFF
Explanation The waveform recording function can only be enabled when the horizontal timebase
mode is "YT" and the horizontal timebase is lower than 200ms.
After turning on the waveform recording function, RUN/STOP can be used to start
or stop the waveform recording. At this point, you can se nd
Return
Example
The query returns 1 or 0.
:FUNCtion:WRECord:ENABle 1 /*Turn on the waveform recording function*/
MSO1000Z/DS1000Z Programming Guide 2-73
RIGOL Chapter 2 Command System
or playback process.
Format
:FUNCtion:WREPlay:FSTart? /*The query returns 5*/
:FUNCtion:WREPlay:FSTart
Syntax :FUNCtion:WREPlay:FSTart <sta>
:FUNCtion:WREPlay:FSTart?
Description Set or query the start frame of waveform playback.
Parameter
Name Type Range Default
<sta> Integer 1 to the maximum number of frames recorded 1
Explanation Use the :FUNCtion:WRECord:FEND command to set the maximum number of
frames recorded.
The start frame of waveform playback cannot be greater than the end frame of
waveform playback (
:FUNCtion:WREPlay:FEND).
You can only set the start frame of waveform pla yback when a wavef orm is currently
recorded.
You cannot set the start frame of waveform playback during the waveform recording
Return
Example
The query returns a n i nteger.
:FUNCtion:WREPlay:FSTart 5 /*Set the start frame of waveform playback to 5*/
2-74 MSO1000Z/DS1000Z Programming Guide
Chapter 2 Command System RIGOL
:FUNCtion:WREPlay:FEND?
Name
Type
Range
Default
recorded
of frames recorded
Yo u canno t set the end f rame o f w avef orm pl ayback during th e wav ef orm recordi ng
or playback process.
Explanation You can only set the time interval of waveform playback when a waveform is
currently recorded.
You cannot set the time interval of waveform playback during the waveform
Return
Example
The query returns the current time inter val in scientific notation.
:FUNCtion:WREPlay:FINTerval 0.001 /*Set the time interval to 1ms*/
:FUNCtion:WREPlay:MODE
Syntax :FUNCt io n: W RE P lay:M O DE <m ode >
Description Set or query the waveform playback mode.
Parameter
Explanation REPeat: cycle playback. Play from the start fr ame to th e end f rame an d then repeat
Name Type Range Default
<mode> Discrete {REPeat|SINGle} SINGle
until you stop it manually.
SINGle: single playback. Play from the start frame to the end frame and then stop.
You can only set the waveform playback mode when a waveform is currently
recorded.
You cannot set the w aveform playback mode during the waveform recording or
Return
Example
The query returns REP or SING.
:FUNCtion:WREPlay:MODE REPeat /*Set the waveform playback mode to cycle*/
This command is only valid when waveform has already been recorded.
Format
finishes*/
Command
:FUNCtion:WREPlay:DIRection
Syntax :FUNCtion:WREPlay:DIRection <dir>
:FUNCtion:WREPlay:DIRection?
Description Set or query the waveform playback direction.
Parameter
Name Type Range Default
<dir> Discrete {FORWard|BACKward} FORWard
Explanation FORWard: positive direction. Play from the start frame to the end frame.
BACKward: negative direction. Play from the end frame to the start frame.
You can only set the waveform playback direction w hen a waveform is currently
recorded.
You cannot set the waveform playback direction during the waveform recording or
Return
Example
The query returns FORW or BACK.
:FUNCtion:WREPlay:DIRection FORWard /*Set the waveform playback direction to
forward*/
:FUNCtion:WREPlay:OPERate
Syntax :FUNCtion:WREPlay:OPERate <opt>
Description Start, pause, or stop the waveform playback, or query the status of the waveform
Parameter
Return
Example
Related
<opt> Discrete {PLAY|PAUSe|STOP} STOP
The query returns PLAY, PAUS, or STOP.
:FUNCtion:WREPlay:OPERate PLAY /*Start the waveform playback*/
:FUNCtion:WREPlay:OPERate? /*The query returns PLAY if the playback is in
progress and returns STOP if the playback
Description Set or query the current frame in waveform playback.
Parameter
Name Type Range Default
<cur> Integer
1 to the maximum number of
frames recorded
The maximum number
of frames recorded
Explanation Use the :FUNCtion:WRECord:FEND command to set the maximum number of
frames recorded.
You can only set the current frame of waveform playback when a waveform is
currently recorded.
You cannot set the current frame of waveform playback during the waveform
Return
Example
The query returns an integer.
:FUNCtion:WREPlay:FCURrent 300 /*Set the current frame in waveform playback to
300*/
2-78 MSO1000Z/DS1000Z Programming Guide
Chapter 2 Command System RIGOL
Syntax
*CLS
Description
Clear all the event registers and clear the error queue.
*ESE?
Description
Set or query the enable register for the standard event status register set.
Name
Type
Range
Default
<value>
Integer
Refer to Explanation
0
the binary numbers X0XXXX0X (X is 1 or 0).
Format
already been set in the register.
*ESE? /*The query returns 16*/
IEEE488.2 Common Commands
The IEEE 488.2 standard defines some common commands used for querying the basic information of the
instrument or executing the basic operations. These commands usually start with "*" and the keyword of
the command is usually 3-character long.
Explanation The bit 1 and bit 6 of the standard event status register are not used and are always
treated as 0; therefore, the range of <value> are the decimal numbers corresponding to
Return
Example *ESE 16 /*Enable the bit 4 (16 in decimal) of the standard event status register*/
The query returns an integer which equals the sum of the weights of all the bits that have
MSO1000Z/DS1000Z Programming Guide 2-79
RIGOL Chapter 2 Command System
Syntax
*ESR?
Description
Query and clear the event register for the standard event status register.
the binary numbers X0XXXX0X (X is 1 or 0).
Format
register.
Syntax
*IDN?
Description
Query the ID string of the instrument.
<software version>: the software version of the instrument.
used to query whether the current operation is finished.
Format
Syntax
*RST
Description
Restore the instrument to the default state.
*ESR?
Explanation The bit 1 and bit 6 of the standard event status register are not used and are always
treated as 0. The range of the return value are the decimal numbers corresponding to
Return
*IDN?
Return
Format
*OPC
Syntax *OPC
Description
The query returns an integer which eq uals the sum of the weights of all the bi ts in the
The query returns RIGOL TECHNO LOGIES,<model >,<serial number>,<software
version>.
Whererin,
<model>: the model number of the instrument.
<serial number>: the serial number of the instrument.
*OPC?
The *OPC command is used to set the Operation Complete bit (bit 0) in the standard
event status register to 1 after the current operation is finished. The *OPC? command is
*RST
Return
The query returns 1 if the current operation is finished; otherwise, returns 0.
2-80 MSO1000Z/DS1000Z Programming Guide
Chapter 2 Command System RIGOL
*SRE?
Description
Set or querythe enable register for the status byte register set.
Name
Type
Range
Default
<value>
Integer
0 to 255
0
numbers XXXXXX00 (X is 1 or 0).
Format
have already been set in the register.
*SRE? /*The query r eturns 16*/
Syntax
*STB?
Query the event register fo r the st atus by te regi ster. The value of th e status by te register
is set to 0 after this command is executed.
(X is 1 or 0).
Format
register.
Syntax
*TST?
Description
Perform a self-test and then return the seilf-test results.
Format
Syntax
*WAI
Description
Wait for the operation to finish.
executed.
*SRE
Syntax *SRE <value >
Parameter
Explanation The bit 0 and bit 1 of the status byte register are not used and are always treated as 0;
therefore, the range of <value> are the decimal numbers corresponding to the binary
Return
Example *SRE 16 /*Enable the bit 4 ( 16 in decimal) of the status byte register*/
The query returns a n i nteger which equals the sum of the weights of all the bits that
*STB?
Description
Explanation The bit 0 and bit 1 of the status byte register are not used and are always treated as 0.
The query returns the decimal numbers corresponding to the binary numbers X0XXXX0X
Return
The query returns a n i nteger which equals the sum of t he weights of all the bits in the
*TST?
Return
The query returnsa decimal integer.
*WAI
Explanation The sub sequent command can only be carried out after the current command has been
MSO1000Z/DS1000Z Programming Guide 2-81
RIGOL Chapter 2 Command System
:LA:ACTive?
Name
Type
Range
Default
D8|D9|D10|D11|D12|D13|D14|D15}
desired channel or channel group.
:LA:ACTive? /*The query returns D3*/
:LA Commands
The :LA commands are used to perform the related operations on the digital channels. These commands
are only applicable to MSO1000Z and DS1000Z Plus with the MSO upgrade option.