RIGOL is a registered trademark of RIGOL TEC H NO LOGI ES, INC .
Publication Number
PGA21101-1110
Software Version
00.02.03
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 or all of the specifications and pricing policies at
the company's sole decision.
Information in this publication replaces all previously released ma terials.
Information in this publication is subject to change without notice.
RIGOL shall no t 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 par t 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 n ational 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, please contact RIGOL.
E-mail: service@rigol.com
Website: www.rigol.com
DS4000E Programming Guide I
RIGOL
Tip
RIGOL
Document Overview
This manual is your guide to programming RIGOL DS4000E series digital os cilloscope.
For the newest version of this manual, please download it from
official website (www.rigol.com).
Main Topics in this Manual:
Chapter 1 SCPI Command Overview
This chapter introduces the syntax, symbols, paramet ers, and abbreviation rules of the SCPI commands.
Chapter 2 Command System
This chapter introduce s the syntax, function, parameters, and usage of each command.
Chapter 3 Programming Examples
This chapter illustrates how t o control the DS400 0E series digital oscilloscope by programming i n Excel,
LabVIEW, MATLAB, Visual Basic 6.0, and Visual C++ 6.0.
Format Conventions in this Manual:
1. Function Key
The key on the front panel is denoted by the format of “Key Name (Bold) + Text Box” in the manual.
For example, Utility denotes the "Utility" key.
2.Menu Softkey
The menu softkey is denoted by the format of "Menu Name (Bold) + Character Shading" in the manual.
For example, System denotes the "System" softkey under Utility.
3. Operation Procedures
The next step is denoted by the arrow key (""). For example, UtilitySystem denotes that first
press Utility, and then press the System softkey.
Content Conventions in this Manual:
DS4000E series includes the following models. Unless otherwise specified, this manua l takes DS4024E as
an example to make a detailed introduction about the commands of DS4000E series.
Model
DS4024E
DS4014E
Bandwidth
200 MHz
100 MHz
No. of Channels
4
4
II DS4000E Programming Guide
Contents RIGOL
Contents
Guaranty and Declaration ......................................................................................................... I
Document Overview ................................................................................................................. II
LabVIEW Programming Example ................................................................................................ 3-7
MATLAB Programming Example ................................................................................................ 3-11
Visual Basic 6.0 Programming Example ..................................................................................... 3-13
Visual C++ 6.0 Programming Example ..................................................................................... 3-15
VIII DS4000E Programming Guide
Chapter 1 SCPI Command Overview RIGOL
Chapter 1 SCPI Command Overview
This chapter introduces the syntax, symbols, paramet ers, and abbreviation rules of the SCPI commands.
Contents in this chapter:
Syntax
Symbol Description
Parameter Type
Command Abbreviation
Syntax
The SCPI commands provide a hierarchical tree structure, and consist of multiple subsystems. Each
command subsystem consis ts of one root keyword and one or more sub-keywords. The command line
usually starts with a colon; the keywords are separated by colons, and following the keywords are the
parameter settings available. The command ending with a question mark indicates querying a certain
function. The keywords of the command and the first parameter is separated by a space.
For example,
:CALCulate:ADVanced:EXPRession <str>
:CALCulate:ADVanced:EXPRession?
CALCulate is the ro ot k ey word of th e c ommand. ADVanced is th e secon d-level keyword, and EXPRession is
the third-level keyword. The command line starts with a colon, a nd a colon is also used to separate the
multiple-level keywords. <str> represents the parameters available for setting. The command line ending
with a question mark indicates that it is a quer y command.
The command :CALCulate:ADVanced:EXPRession and the parameter <str> are separated by a space.
In some commands with multiple parameters, commas are often used to separate these parameters. For
example,
:SYSTem:DATE <yea r>,<month >, <da y >.
Symbol Description
1. Braces { }
The contents enclosed in the br aces are par ameter options, which are usually separated by the vertical
bar "|". When using the command, you must select one of the parameter options.
2. Vertical Bar |
The vertical bar is used to separate multiple parameter options. When using the command, you must
select one of the parameter options.
3.Square Brackets [ ]
The contents in the square brackets can be omitted.
4. Angle Brackets < >
The parameter enclosed in the angle brackets must be replaced by an effective value.
DS4000E Programming Guide 1-1
RIGOLChapter 1 SCPI Command Overview
Parameter Type
1. Bool
The available values for the parameter is 1 (ON) or 0 (OFF). For example,
:MEASure:ADISplay <bool >
:MEASure:ADISplay?
Wherein, <bool> can be set to {{1|ON}|{0|OFF}}.
The query returns 1 or 0.
2. Discrete
The parameter can be any of the values listed. For example,
:ACQuire:TYPE <type>
:ACQuire:TYPE?
Wherein, <type> can be set to NORMal, AVERages, PEAK, or HRESolution.
The query returns NORM, AVER, PEAK, or HRES.
3. Integer
Unless otherwise specified, the parameter can be any integer wit hi n the effective value r an ge. Do no t
set the parameter to a decimal or in scientific notation, otherwise, errors will occur. For example,
:DISPlay:GBRightne ss <br i ght>
:DISPlay:GBRightness?
Wherein, <brightness> can be set to an integer between 0 and 100.
The query returns an integer between 0 and 100.
4. Real
The parameter can be any real-value (in decimal form or in scientif ic notation) within the effective
value range. For example,
:FUNCtion:WREPlay:INTerval <interval>
:FUNCtion:WREPlay:INTerval?
Wherein, <interval> can be set to any real number between 0.0000 001 and 10; or any real numbe r
between (1.000000e-07, namely 100 ns) and (0.1e+02, namely 10 s).
The query returns a real number in scientific notation.
5. ASCII String
The parameter can be the combinations of ASCII characters. For example,
:CALCulate:ADVanced:EXPRession <str>
:CALCulate:ADVanced:EXPRession?
Wherein, <str> can be set to a legitimate expression that consists of any combinations of CH1, CH2,
CH3, CH4, and operators. For example, CH1+CH2.
The query returns in strings.
Command Abbreviation
All the commands are case-insensitive. The commands can be all input in uppercase letters or in lowercase
letters. For abbreviations, you must enter all the uppercase letters that exist in the command syntax.
For example, :MEASure:ADISplay?
can be abbreviated to :MEAS:ADIS?
1-2 DS4000E Programming Guide
Chapter 2 Command System RIGOL
Chapter 2 Command System
This chapter introduces the syntax, function, parameters, and usage of each DS4000E command.
1. Unless otherwise specified, the descriptions and parameter ra nge in this manual all take DS4024E as
an example.
2. For the parameter setting command (time, frequency, amplitude, etc.), the digital oscilloscope can
only recognize the numbers, unable to recognize the unit sent together with them. The unit of the
parameter is a default one. For the default units of various parameters, refer to the descriptions for the
specified command.
:AUToscale
Syntax
:AUToscale
Description
Enables the waveform auto setting function. The oscilloscope will automatically adjust the parameters such
as vertical scale, horizontal time base, and trigger mode according to the input signal to realize an optimum
waveform display. This command functions the same as the AUTO key on the front panel
Remarks
When the waveform auto setting function is disabled (refer to the :SYSTem:AUToscale command), this
DS4000E Programming Guide 2-1
.
command is invalid.
RIGOLChapter 2 Command System
When the pass/fail test function is enabled (refer to the :MASK:ENABle command), this command is
invalid.
The waveform auto setting function requires that the frequency of sine waveform is no less than 20 Hz
the duty cycle is greater than 1%, and the amplitude is at least 20 mVpp. Otherwise, the waveform
auto setting function may be invalid.
:CLEar
Syntax
:CLEar
Description
Clears all the waveforms on the screen. If the oscilloscope is in the RUN state, after the waveform data is
cleared, new waveform d ata will be displ ayed.
front panel.
This command functions the same as the CLEAR key on the
:RUN
:STOP
Syntax
:RUN
:STOP
Description
The :RUN command starts the oscilloscope and the :STOP command stops the oscilloscope. This command
functions the same as the Run/Stop key on the front panel.
Remarks
If the oscilloscope is in a single trigger mode (refer to the :SINGle command), you can use the :RUN
command to set the trigger mode of the oscilloscope to "Auto", and keep the oscilloscope in the "Run" state.
If the oscilloscope is in a single trigger mode (refer to the :SINGle command) and in WAIT state, you can
use the :STOP command to set the trigger mode of the oscilloscope to "Auto", and keep the oscilloscope in
the "Stop" state.
,
:SINGle
Syntax
:SINGle
Description
Sets the trigger mode of the oscilloscope to "Singl e". This command func tions the same as the Single key
on the front panel.
Remarks
In the single trigger mode, the oscilloscope performs a single tr ig g er when the trigger conditions are
If the oscilloscope is in a single trigger mode, you can use the :RUN command to set the trigger mode
If the oscilloscope is in a single trigger mode and in WAIT state, you can use the :STOP command to
2-2 DS4000E Programming Guide
met and then it stops. You can use the :TFORce command to generate a trigger by force.
of the oscillosc ope to "Auto", and keep the os cilloscope in the "Run" state.
set the trigger mode of the oscilloscope to "Auto", and keep the oscilloscope in the "Stop" state.
Chapter 2 Command System RIGOL
:TFORce
Syntax
:TFORce
Description
Generates a trigger signal forcefully. This com mand is only applicable to the normal and single trigger
modes, refer to the :TRIGger:SWEep
the trigger contro l area of the front p anel.
command. This command functions the same as the FORCE key in
:TLHAlf
Syntax
:TLHAlf
Description
Sets the trigger level to the vertical midpoint of the amplitude of a trigger signal. This command functions
the same as the 50% key in the trigger control area of the front panel.
omitted. You can refer to the complete introdu ctions of the c o m ma n ds in th e body of the t ext b a s ed o n t h e key w o r ds
listed here.
: In the "Command List" in this manual, the query commands and the parameters in the setting commands are
:ACQuire:AALias
Syntax
:ACQuire:AALias <bool>
:ACQuire:AALias?
Description
Enables or disables the anti-aliasing function of the oscilloscope; or queries the on/off status of the
anti-aliasing function.
Parameter
Name Type Range Default
[1]
:
<bool> Bool {{1|ON}|{0|OFF}} 0|OFF
Return Format
The query returns 1 or 0.
:ACQuire:AVERages
Syntax
:ACQuire:AVERages <count>
:ACQuire:AVERages?
Description
Sets or queries the number of averages in the average acquisition mode (refer to the :ACQuire:TYPE
command).
Parameter
Remarks
In the average acquisition mode, the oscilloscope will acquire the waveform samples for several times, then
make an average o n th e w av ef o rms, so as to lo wer th e ran dom no is es of th e inpu t sign als and incr ease its
vertical resolution. Greater number of averages can lower the noises and increase the vertical resolution,
but will also slow the response of the displayed waveform to the waveform changes.
Return Format
The query returns a n integer.
<count> Integer 2n (n indicates an integer between 1 and 13). 2
2-4 DS4000E Programming Guide
Chapter 2 Command System RIGOL
:ACQuire:MDEPth
Syntax
:ACQuire:MDEPth <mdep>
:ACQuire:MDEPth?
Description
Sets or queries the memory depth of the oscilloscope (namely the number of waveform points th at can be
stored through sampling in a single trigger). The default unit is pts (points).
Parameter
Remarks
The formula below describes the relationship among memory depth, sample rate, and waveform length:
Wherein, waveform length = horizontal time base x number of grids in the horiz ontal direction on t he
screen. For DS4000E, the number of grids in the horizontal direction on the screen is a fixed value 14. When
<mdep> is set to "AUTO", the oscilloscope will select the memory depth automatically according to the
current sample rate and horizontal time base (refer to the :TIMebase[:MAIN]:SCALe command).
Return Format
The query returns a n integer.
Name
<mdep> Discrete AUTO|7000|70000|700000|7000000 AUTO
TypeRangeDefault
memory depth = sample rate x waveform length
:ACQuire:SRATe?
Syntax
:ACQuire:SRATe?
Description
Queries the current sample rate of the oscilloscope. The default unit is Sa/s.
Return Format
The query returns the sample rate in s cientific notation.
:ACQuire:TYPE
Syntax
:ACQuire:TYPE <type>
:ACQuire:TYPE?
Description
Sets or queries the data acquisition mode of the oscilloscope.
Parameter
Remarks
NORMa l: In this mode, the oscilloscope samples the signal at the same interval to reconstruct the
AVERages: In this mode, the oscilloscope will acquire the waveform samples for several times, then
DS4000E Programming Guide 2-5
NameTypeRangeDefault
<type> Discrete {NORMal|AVERages|PEAK|HRESolution} NORMal
waveform. For most of the waveforms, this mode can realize the best display effects.
RIGOLChapter 2 Command System
make an average on the waveforms, so as to lower the random noises of the input signals and increase
its vertical resolution. You can use the :ACQuire:AVERages command to set the number of av erages in
this mode.
PEAK: The oscilloscope samples the maximum and minimum value of the signal at the fixed sampling
interval to acquire the signal envelope or the narrow pulses that might be lost. This mode can avoid the
signal aliasing, but produces greater noises.
HRE Solution: The oscilloscope will average the adjacent sample points of the sample waveform to
lower the random noises of the input signals and display much more smoother waveforms. If the
sample rate of the digital convertor is greater than the storage rate of the acquisition memory, this
mode is often adopted.
Returns the data in the decoding event table with the following formats.
#9000000077Parallel
Time,Data,
-9.3508796E-04,1,
6.5072008E-05,1,
1.0636000E-03,1,
Wherein, "#9000000077" is t he TMC data block header, which is followed by the data in the event table.
The 9-digit data following #9 in the data block header indicates the number of bytes of the effective data.
"Parallel" indicates the decoding type. The available decoding type can also be RS232, I2C, SPI, CAN, or
Flex. The data are separated by colons, and will automatically switch to the next line according to the line
length limit in the decoding list. The data value is related to the set numeral system.
Note: You can save all the data except TMC data block header (#9) and decoding type (Parallel)
"*.csv" file and view the data in the form of a list.
as the
DS4000E Programming Guide 2-7
RIGOLChapter 2 Command System
:BUS<n>:DISPlay
Syntax
:BUS<n>:DISPlay <bool>
:BUS<n>:DISPlay?
Description
Enables or disables the display of the specified decoding bus; or queries the on/off display status of the
specified decoding bus.
Description
Sets or queries the decoding type of the specified decoding bus.
Parameter
Remarks
RS232 decoding, IIC decoding, SPI decoding, CAN decoding, and FlexRay decoding are optional functions.
This command can be used only when you have installed these options.
Return Format
The query returns PAR, RS232, IIC, SPI, CAN, or FLEX.
Sets or queries the signal rate of CAN decoding on the specified bus. The default unit is b/s.
Parameter
Name
<n> Discrete {1|2} --
Type Range Default
Remarks
When <baud> is set to "U S E R ", you can use the :BUS<n>:CAN:BUSer command to self-define the signal
rate of CAN decoding on the specified bus.
Return Format
The query returns 100000, 125000, 250000, 400000, 500000, 800000, 1000000, or USER.
:BUS<n>:CAN:BUSer
Syntax
:BUS<n>:CA N:B USe r <ba u d>
:BUS<n>:CAN:BUSer?
Description
Sets or queries the user-defined signal rate of CAN decoding on the specified bus. The default unit is b/s.
Parameter
Return Format
The query returns an integer between 10000 and 1000000.
Name
<n> Discrete {1|2} -<baud> Integer 10000 to 1000000 500000
TypeRangeDefault
2-10 DS4000E Programming Guide
Chapter 2 Command System RIGOL
:BUS<n>:CAN:OFFSet
Syntax
:BUS<n>:CAN:OFFSet <val>
:BUS<n>:CAN:OFFSet?
Description
Sets or queries the vertical position of CAN decoding data line on the specified bus.
Parameter
Remarks
Before using the command, enable the display of the specified decoding bus (refer to
The range of <val> is related to the screen display mode and the on/off status of the statistic function
When the data line that displays the decoding is located in the middle part of the screen, <val > is 0;
Return Format
The query returns a n integer.
Name
<n> Discrete {1|2} -<val> Integer Refer to Remarks0
the :BUS<n>:DISPlay command).
(refer to the :MEASure:STATistic:DISPlay command).
When the display mode is "Full Screen" and the statistics function is disabled, the <val> parameter
ranges from -166 to +148.
When the display mode is "Full Screen" and the statistics function is enabled, the <val> parameter
ranges from -163 to +143.
When the display mode is "Split" (refer to the :TIMebase:DELay:ENABle and :CALCulate:FFT:SPLit
command), the <val> parameter ranges from -103 to +52.
when it is located above the middle part of the screen, <val> is a positive value; when it is located
below the middle part of the screen, <val> is a negative value.
Type Range Default
:BUS<n>:CAN:SOURce
Syntax
:BUS<n>:CAN:SO UR ce <s ourc e >
:BUS<n>:CAN:SOURce?
Description
Sets or queries the source channel of CAN decoding on the specified bus.
Sets or queries the sample point position of CAN decoding on the specified bus (expressed in %).
Parameter
Name
<n> Discrete {1|2} -<spo> Integer 5 to 95 50
Remarks
The sample point is within the range of the bit time. The oscilloscope samples the bit level at the sample
point. The sample point position is expressed as the ratio of "time from the bit start to the sample point" to
"bit time", in %.
Return Format
The query returns an integer between 5 and 95.
Type Range Default
:BUS<n>:CAN:STYPe
Syntax
:BUS<n>:CAN:S TYPe <stype>
:BUS<n>:CAN:STYPe?
Description
Sets or queries the signal type of CAN decoding on the specified bus.
Parameter
<n> Discrete {1|2} --
Remarks
RX: indicates the Receive signal from the CAN bus transceiver.
TX: indicates the Transmit signal from the CAN bus transceiver.
CANH: indicates the actual CAN_H differential bus signal.
CANL: indicates the actual CAN_L differential bus signal.
DIFFerential: indicates the CAN differential bus signal connected to an analog channel by using a
differential probe. The positive polarity of the differential probe connects the CAN_H bus signal, a nd
the negative polarity connects the CAN_L bus signal.
Sets or queries the signal rate of FlexRay decoding on the specified bus. The default unit is b/s.
Parameter
Return Format
The query returns 2500000, 5000000, or 10000000.
:BUS<n>:FLEXray:OFFSet
Syntax
:BUS<n>:FLEXra y :OF F Set <val>
:BUS<n>:FLEXray:OFFSet?
Description
Sets or queries the vertical position of FlexRay decoding on the specified bus.
Parameter
Remarks
Before using the command, enable the display of the specified decoding bus (refer to
The range of <val> is related to the screen display mode and the on/off status of the statistic function
When the data line that displays the decoding is located in the middle part of the screen, <val > is 0;
the :BUS<n>:DISPlay command).
(refer to the :MEASure:STATistic:DISPlay command).
When the display mode is "Full Screen" and the statistics function is disabled, the <val> parameter
ranges from -166 to +148.
When the display mode is "Full Screen" and the statistics function is enabled, the <val> parameter
ranges from -163 to +143.
When the display mode is "Split" (refer to the :TIMebase:DELay:ENABle and :CALCulate:FFT:SPLit
command), the <val> parameter ranges from -103 to +52.
when it is located above the middle part of the screen, <val> is a positive value; when it is located
0
2-14 DS4000E Programming Guide
Chapter 2 Command System RIGOL
Name
Type
Range
Default
below the middle part of the screen, <val> is a negative value.
Return Format
The query returns a n integer.
:BUS<n>:FLEXray:SOURce
Syntax
:BUS<n>:FLEXra y :SO UR ce <source>
:BUS<n>:FLEXray:SOURce?
Description
Sets or queries the source channel of FlexRay decoding on the specified bus.
Sets or queries the sample point position of FlexRa y decoding on the specified bus (expressed in %).
Parameter
Remarks
The sample point is within the range of the bit time. The oscilloscope samples the bit level at the sample
point. The sample point position is expressed as the ratio of "time from the bit start to the sample poi nt" to
"bit time", in %.
Sets or queries the vertical position of IIC decoding on the specified bus.
Parameter
Name Type Range Default
<n> Discrete {1|2} -<val> Integer Refer to Remarks0
Remarks
Before using the command, enable the display of the specified decoding bus (refer to
the :BUS<n>:DISPlay command).
The range of <val> is related to the screen display mode and the on/off status of the statistic function
(refer to the :MEASure:STATistic:DISPlay command).
When the display mode is "Full Screen" and the statistics function is disabled, the <val> parameter
ranges from -166 to +148.
When the display mode is "Full Screen" and the statistics function is enabled, the <val> parameter
ranges from -163 to +143.
When the display mode is "Split" (refer to the :TIMebase:DELay:ENABle and :CALCulate:FFT:SPLit
command), the <val> parameter ranges from -103 to +52.
When the data line that displays the decoding is located in the middle part of the screen, <val > is 0;
when it is located above the middle part of the screen, <val> is a positive value; when it is located
below the middle part of the screen, <val> is a negative value.
Sets or queries the threshold of the current clock line source channel of IIC decoding on the specified bus.
The default unit is V.
Parameter
Name Type Range Default
<n> Discrete {1|2}
--
Wherein, VerticalScale is the vertical scale of the clock line source
<thre> Real
Return Format
The query returns the threshold level in scientific notation.
channel, refer to the :CHANnel<n>:SCALe command; Offset is the
vertical position of the clock line source channel, refer to
the :CHANnel<n>:OFFSet command.
0
:BUS<n>:IIC:SDA:SOURce
Syntax
:BUS<n>:IIC:S DA :SO UR ce <s o urce>
:BUS<n>:IIC:SDA:SOURce?
Description
Sets or queries the source channel of the data line of IIC decoding on the specified bus.
Sets or queries the threshold of the current data line source channel of IIC decoding on the specified bus.
Parameter
<n> Discrete {1|2}
(-4 x VerticalScale - Offset) to (4 x VerticalScale - Offset)
Wherein, VerticalScale is the vertical scale of the data line source
<thre> Real
Return Format
The query returns the threshold level in scientific notation.
channel, refer to the :CHANnel<n>:SCALe command; Offset is the
vertical position of the data line source channel, refer to
the :CHANnel<n>:OFFSet command.
Sets or queries the source channel of each bit of the data line of Parallel decoding on specified bus; or
queries the data line source channel of Parallel decoding on the specified bus.
Parameter
Name
Type Range Default
Remarks
This com ma nd als o sets the bit width (ranges from 1 to 4 and equals to the number of the specified
channel sources) of Parallel decoding.
The bit order is LSB first.
Return Format
The query returns the channel source of each bit (with the LSB-first bit order) of the current data line. The
channel sources are separated by commas.
:BUS<n>:PARallel:CLK
Syntax
:BUS<n>:PARa lle l:CLK <so ur ce>
:BUS<n>:PARallel:CLK?
Description
Sets or queries the source channel of the clock line of Parallel decoding on the specified bus.
You can send the :BUS<n>:PARallel:SLOPe command to sample data channel's data on the rising edge,
falling edge, or either of the edges of the clock signal. When <sour ce> is set to "OFF" (disabling the clock
channel), sampling is performed whe n a hop occurs to the data of the data channel during decoding.
Return Format
The query returns CHAN1, CHAN2, CHAN3, CHAN4, or OFF.
:BUS<n>:PARallel:OFFSet
Syntax
:BUS<n>:PARa lle l:O F FSet <val>
:BUS<n>:PARallel:OFFSet?
Description
Sets or queries the vertical position of Parallel decoding on the specified bus.
Parameter
Remarks
Before using the command, enable the display of the specified decoding bus (refer to
The range of <val> is related to the screen display mode and the on/off status of the statistic function
When the data line that displays the decoding is located in the middle part of the screen, <val> is 0;
Return Format
The query returns an integer.
NameTypeRangeDefault
<n> Discrete {1|2} -<val> Integer Refer to Remarks0
the :BUS<n>:DISPlay command).
(refer to the :MEASure:STATistic:DISPlay command).
When the display mode is "Full Screen" and the statistics function is disabled, the <val> parameter
ranges from -166 to +148.
When the display mode is "Full Screen" and the statistics function is enabled, the <val> parameter
ranges from -163 to +143.
When the display mode is "Split" (refer to the :TIMebase:DELay:ENABle and :CALCulate:FFT:SPLit
command), the <val> parameter ranges from -103 to +52.
when it is located above the middle part of the screen, <val> is a positive value; when it is located
below the middle part of the screen, <val> is a negative value.
Wherein, VerticalScale is the vertical scale of the specified
<thre> Real
Return Format
The query returns the threshold level in scientific notation.
analog channel, refer to the :CHANnel<n>:SCALe command;
Offset is the vertical position of the specified analog channel,
refer to the :CHANnel<n>:OFFSet command.
:BUS<n>:RS232:EN Dia n < endi an>
:BUS<n>:RS232:ENDian?
Description
Sets or queries the bit order of data of RS232 decoding on the specified bus.
Parameter
Remarks
LSB: Least Significant Bit. The transmission sequence shall be is in as ce nding order.
MSB: Most Significa nt Bit. The transmission sequence shall be is in descending order.
Return Format
The query returns LSB or MSB.
:BUS<n>:RS232:OFFSet
Syntax
:BUS<n>:RS232 :OF FSe t <va l>
:BUS<n>:RS232:OFFSet?
Description
Sets or queries the vertical position of TX and/or RX of RS232 decoding on the specified bus.
2-24 DS4000E Programming Guide
Chapter 2 Command System RIGOL
Parameter
Name
<n> Discrete {1|2} -<val> Integer Refer to Remarks0
Remarks
Before using the command, enable the display of the specified decoding bus (refer to
the :BUS<n>:DISPlay command).
The range of <val> is related to the screen display mode and the on/off status of the statistic function
(refer to the :MEASure:STATistic:DISPlay command).
When the display mode is "Full Screen" and the statistics function is disabled, the <val> parameter
ranges from -166 to +148.
When the display mode is "Full Screen" and the statistics function is enabled, the <val> parameter
ranges from -163 to +143.
When the display mode is "Split" (refer to the :TIMebase:DELay:ENABle and :CALCulate:FFT:SPLit
command), the <val> parameter ranges from -103 to +52.
When the data line that displays the decoding is located in the middle part of the screen, <val > is 0;
when it is located above the middle part of the screen, <val> is a positive value; when it is located
below the middle part of the screen, <val> is a negative value.
Return Format
The query returns a n integer.
Type Range Default
:BUS<n>:RS232:PACKet
Syntax
:BUS<n>:RS232:PACKet <bool>
:BUS<n>:RS232:PACKet?
Description
Enables or disables the packet display of data of RS232 decoding on the specified bus; or queries th e on/off
status of data packet display of RS232 decoding on the specified b us.
Parameter
Remarks
When the packet display is on, multiple data blocks will be combined based on the currently selected packet
end (refer to the :BUS<n>:RS232:PEND command).
:BUS<n>:RS232 :PA Ri ty <p a r ity>
:BUS<n>:RS232:PARity?
Description
Sets or queriesthe parity mode of data of RS232 decoding on the specified bus.
DS4000E Programming Guide 2-25
RIGOLChapter 2 Command System
Name
Type
Range
Default
<n>
Discrete
{1|2}
--
<parity>
Discrete
{NONE|ODD|EVEN}
NONE
Name
Type
Range
Default
<n>
Discrete
{1|2}
--
Parameter
Remarks
None: indicates that there is no parity bit in data transmission.
ODD: indicates the odd parity bit. The total count of occurrences of 1 in the data bit and check bit is an
odd number. For example, if 0x55 (01010101) is transmitted, 1 shall be added to the check bit.
Even: indicates the even parity bit. The total count of occurrences of 1 in the data bit and check bit is
an even number. For example, if 0x55 (01010101) is transmitted, 0 shall be added to the check bit.
Sets or queries the threshold of RX source channel of RS232 decoding on the specified bus.
Parameter
Wherein, VerticalScale is the vertical scale of RX source
<rthre> Real
Return Format
The query returns the threshold level in scientific notation.
channel, refer to the :CHANnel<n>:SCALe command;
Offset is the vertical position of RX source channel, refer
to the :CHANnel<n>:OFFSet command.
0
:BUS<n>:RS232:RX
Syntax
:BUS<n>:RS232 :RX <so urce >
:BUS<n>:RS232:RX?
Description
Sets or queries RX source channel of RS232 decoding on the specified bus.
Parameter
Remarks
When <source> is set to "OFF", it indicates that no RX source channel will be set.
TX source channel (refer to the :BUS<n>:RS232:TX command) and RX source channel cannot be both
Return Format
The query returns CHAN1, CHAN2, CHAN3, CHAN4, or OFF.
Name
set to "OFF".
TypeRangeDefault
DS4000E Programming Guide 2-27
RIGOLChapter 2 Command System
Name
Type
Range
Default
<n>
Discrete
{1|2}
--
(-4 x VerticalScale - Offset) to (4 x VerticalScale - Offset)
Whe n <so urce > is set to "OFF", it indicates that TX source channel is not set.
TX source channel and RX source channel (refer to the :BUS<n>:RS232:RX command) cannot be both
set to "OFF".
Return Format
The query returns CHAN1, CHAN2, CHAN3, CHAN4, or OFF.
Sets or queries the bus width of SPI decoding on the specified bus.
Parameter
Name Type Range Default
<n> Discrete {1|2}
<width> Integer 4 to 32 8
Return Format
The query returns an integer between 4 and 32.
:BUS<n>:SPI:ENDian
Name
Type Range Default
Syntax
:BUS<n>:SPI:EN Dian <e nd ia n>
:BUS<n>:SPI:ENDian?
Description
Sets or queries the bit order of data transmission of SPI decoding on the specified bus.
Parameter
--
2-30 DS4000E Programming Guide
Chapter 2 Command System RIGOL
Name
Type
Range
Default
Remarks
MSB: Most Significa nt Bit. The transmission sequence shall be is in descending order.
LSB: Least Significant Bit. The transmission sequence shall be is in as ce nding order.
Return Format
The query returns MSB or LSB.
:BUS<n>:SPI:MISO:POLarity
Syntax
:BUS<n>:SPI:MISO:POLarit y <pol>
:BUS<n>:SPI:MISO:POLarity?
Description
Sets or queries the polarity of MISO data line of SPI decoding on the specified bus.
Parameter
Name Type Range Default
<n> Discrete {1|2}
<pol> Discrete {HIGH|LOW} HIGH
Remarks
If t he source channel of MISO data line of SPI decoding on the specified bus is not set (refer to
the :BUS<n>:SPI:MISO:SOURce command), the :BUS<n>:SPI:MISO:POLarity <pol>command is
invalid.
LOW: indicates that low level is 1 and high level is 0.
HIGH: indicates that high level is 1 and low level is 0.
Sets or queries the source channel of MISO data line of SPI decoding on the sp ecified bus.
Parameter
Remarks
When <source> is se t to "OFF", it indicates that the source channel of MISO data line is not set.
If <source> is set to "CHANnel1", "CHANnel2", "CHANnel3", or "CHANnel4", you can use
The source channels of MISO data line and M OSI data line (refer to the :BUS<n>:SPI:MOSI:SOURce
the :BUS<n>:SPI:MISO:THReshold command to set the threshold of the source channel of MISO data
line.
command) cannot be both set to "OFF".
DS4000E Programming Guide 2-31
RIGOLChapter 2 Command System
Return Format
The query returns CHAN1, CHAN2, CHAN3, CHAN4, or OFF.
:BUS<n>:SPI:MISO:THReshold
Syntax
:BUS<n>:SPI:MI SO: THReshol d <thre >
:BUS<n>:SPI:MISO:THReshold?
Description
Sets or queries the threshold of the source channel of MISO data line of SPI decoding on the specified bus.
The default unit is V.
Parameter
Return Format
The query returns the threshold level in scientific notation.
Name
<n> Discrete {1|2} --
<thre> Real
TypeRangeDefault
(-4 x VerticalScale - Offset) to (4 x VerticalScale - Offset)
Wherein, VerticalScale is the vertical scale of the MISO data
line source channel, refer to the :CHANnel<n>:SCALe
command; Offset is the vertical position of the MISO data line
source channel, refer to the :CHANnel<n>:OFFSet command.
0
:BUS<n>:SPI:MODE
Name
Type Range Default
Syntax
:BUS<n>:SPI:MODE <m od e >
:BUS<n>:SPI:MODE?
Description
Sets or queries the decode mode of SPI decoding on the specified bus.
Sets or queries the source channel of MOSI data line of SPI decoding on the specified bus.
Parameter
Remarks
When <source> is set to "OFF", i t indicates that the source channel of MOSI data line is not set.
If <source> is set to "CHANnel1", "CHANnel2", "CHANnel3", or "CHANnel4", you can use
The source channels of MISO data line (refer to the :BUS<n>:SPI:MISO:SOURce command) and MOSI
Return Format
The query returns CHAN1, CHAN2, CHAN3, CHAN4, or OFF.
<n> Discrete {1|2} -<source> Discrete {CHANnel1|CHANnel2|CHANnel3|CHANnel4|OFF} OFF
the :BUS<n>:SPI:MOSI:THReshold command to set the threshold of the source channel of MOSI data
line.
data line cannot be both set to "OFF".
DS4000E Programming Guide 2-33
RIGOLChapter 2 Command System
(-4 x VerticalScale - Offset) to (4 x VerticalScale - Offset)
<n>
Discrete
{1|2}
--
<val>
Integer
Refer to Remarks
0
:BUS<n>:SPI:MOSI:THReshold
Syntax
:BUS<n>:SPI:MOSI : THReshol d <thre >
:BUS<n>:SPI:MOSI:THReshold?
Description
Sets or queries the threshold of the source channel of MOSI data line of SPI decoding on the specified bus.
Parameter
Return Format
The query returns the threshold level in scientific notation.
Name
<n> Discrete {1|2} --
<thre> Real
TypeRangeDefault
Wherein, VerticalScale is the vertical scale of the MOSI data
line source channel, refer to the :CHANnel<n>:SCALe
command; Offset is the vertical position of the MOSI data line
source channel, refer to the :CHANnel<n>:OFFSet command.
0
:BUS<n>:SPI:OFFSet
Name
Type Range Default
Syntax
:BUS<n>:SPI:OF FSet <val >
:BUS<n>:SPI:OFFSet?
Description
Sets or queries the vertical position of MISO and/or M OSI data line of SPI decoding on the specified bus.
Parameter
Remarks
Before using the command, enable the display of the specified decoding bus (refer to
the :BUS<n>:DISPlay command).
The range of <val> is related to the screen display mode and the on/off status of the statistic function
(refer to the :MEASure:STATistic:DISPlay command).
When the display mode is "Full Screen" and the statistics function is disabled, the <val> parameter
ranges from -166 to +148.
When the display mode is "Full Screen" and the statistics function is enabled, the <val> parameter
ranges from -163 to +143.
When the display mode is "Split" (refer to the :TIMebase:DELay:ENABle and :CALCulate:FFT:SPLit
command), the <val> parameter ranges from -103 to +52.
When the data line that displays the decoding is located in the middle part of the screen, <val > is 0;
when it is located above the middle part of the scre en, <val> is a positive value; when it is located
below the middle part of the screen, <val> is a negative value.
Sets or queries on which type of edges of the clock signal is sampling performed on the data of source
channel of data line of SPI decoding on the speci fie d bus .
Parameter
Remarks
POSitive: indicates the rising edge. NEGative: indicates the falling edge.
Sets or queries the threshold of the source channel of the CS line of SPI decoding on the speci fi ed bus.
Parameter
Return Format
The query returns the threshold level in scientific notation.
<thre> Real
Wherein, VerticalScale is the vertical scale of the CS line
source channel, refer to the :CHANnel<n>:SCALe
command; Offset is the vertical position of the CS line
source channel, refer to the :CHANnel<n>:OFFSet
command.
ADD: adds the waveform voltage value of Source A and that of Source B point by point, then displays
SUB : subtracts the waveform volta ge value of Source B from t hat of Source A p oint by point, then
MULTiply: multiplies the waveform voltage value of Source A by that of Source B point by point, then
DIV ision: divides the waveform volt age value of Source A b y that of Source B at e ach point, then
FF T: quickly performs Fourier transform on the wa veform of the source channel, t hen displays the
LOGi c: performs log ic operation on the logic level (1 or 0) of t he waveform of Source A and that of
ADVanced: performs advanced operation based on user-def ined operation formula, then displays the
OFF: disables the math operation function.
Return Format
The query returns ADD, SUB, MULT, DIV, FFT, LOG, ADV, or OFF.
Name
<mod> Discrete {ADD|SUB|MULTiply|DIVision|FFT|LOGic|ADVanced|OFF} OFF
TypeRangeDefault
the results.
displays the results.
displays the results.
displays the results. When the waveform voltage value of Source B is 0, the result of the division is
treated as 0.
results.
Source B point by point, then displays the results.
results.
Enables or disables the invert display of the waveform of addition operation; or queriesthe on/off status of
the invert display of the waveform of addition operation.
Parameter
Name Type Range Default
<bool> Bool {{1|ON}|{0|OFF}} 0|OFF
Remarks
1|ON: turns the waveform invert on. The waveform voltage values are inverted and then displayed.
0|OFF: turns the waveform invert off. The waveform is displayed normally.
Return Format
The query returns 1 or 0.
:CALCulate:ADD:SA
:CALCulate:ADD:SB
Syntax
:CALCulate:ADD :SA <so urc e >
:CALCulate:ADD:SA?
:CALCulate:ADD:SB <source>
:CALCulate:ADD:SB?
Description
Sets or queries the channel source of Source A or Source B in "add" operation.
Sets or queries the vertical position of the addition operation waveform. The unit is related to the current
amplitude unit of the source channel.
Parameter
<offs> Real
Return Format
The query returns the vertical position in scientific notation.
x vertical scale of the addition operation waveform)
0
:CALCulate:ADD:VSCale
Name
Type Range Default
Syntax
:CALCulate:ADD:V SCa le <s ca le >
:CALCulate:ADD:VSCale?
Description
Sets or queries the vertical scale of the addition operation waveform. The unit is related to the current
amplitude unit of the source channel.
Parameter
Remarks
The default range of <scale> is from 0.02 V/div to 500 V/div. Its actual range is related to the vertical scale
of the source channel (refer to the :CHANnel<n>:SCALe command), at 1-2-5 step.
Note: After the vertical scale of the source channel is modified, the range of <scale> will not be changed
until the addition operation is re-enabled.
Return Format
The query returns the vertical scale in scientific notation.
Enables or disables the invert display of the advanced opera tion waveform; or queries the on/off status of
the invert display of the advanced operation waveform.
DS4000E Programming Guide 2-41
RIGOLChapter 2 Command System
Name
Type
Range
Default
<variable>
Real
Refer to Remarks
0
Name
Type
Range
Default
(-40 x vertical s c ale of the advanced operation waveform) to
Parameter
Name
<bool> Bool {{1|ON}|{0|OFF}} 0|OFF
Remarks
1|ON: turns the waveform invert on. The waveform voltage values are inverted and then displayed.
0|OFF: turns the waveform invert off. The waveform is displayed normally.
Sets or queries Variable1 or Variable2 in the expressio n of advanced operation.
Parameter
Remarks
<variable> is in the AeB format. Wherein, A is mantissa, and its available range is from -9.9999 to +9.9999
(with the minimum step of 0.0001, that is, precision to four decimals). B refers to the exponent with 10 as
the base, and its available value is an integer ranging from -9 to +9. In addition, <variable> can also be
expressed in decimal, and its available range is the same with that of the AeB format.
Return Format
The query returns Variable1 or Variable2 in scientific notation.
Sets or queries the vertical scale of the advanced operation waveform. The unit is related to the expression
of advanced operation.
Parameter
Remarks
The default range of <scale> is from 0.02 V/div to 500 V/div. Its actual range is related to the
If the e xpression of advanced operation contains C H1, CH2, CH3, or CH4, then, the a ctual range of
Return Format
The query returns the vertical scale in scientific notation.
Name
<scale> Real Refer to Remarks2 V/div
expression of the advanced operation (refer to the :CALCulate:ADVanced:EXPRession command), at
1-2-5 step.
<scale> is related to the vertical scale of the specifi ed channel (refer to the :CHANnel<n>:SCALe
command).
For integration and differentiati on operations, the actual range of <scale> is related to the current
horizontal time base (refer to the :TIMebase[:MAIN]:SCALe command).
Note: After the vertical scale of the specif ied channel is mo dif ied, the range of <scale > will not be
changed until the advanced operation is re-enabled.
TypeRangeDefault
DS4000E Programming Guide 2-43
RIGOLChapter 2 Command System
Name
Type
Range
Default
<source>
Discrete
{CHANnel1|CHANnel2|CHANnel3|CHANnel4}
CHANnel1
:CALCulate:DIVision
In the division operation, when the waveform voltage value of Source B is 0, the result of the division is
treated as 0.
Enables or disables the invert display of the division operation waveform; or queries the on/off status of the
invert display of the division operation waveform.
Parameter
<bool> Bool {{1|ON}|{0|OFF}} 0|OFF
Remarks
1|ON: turns the waveform invert on. The waveform voltage values are inverted and then displayed.
0|OFF: turns the waveform invert off. The waveform is displayed normally.
Sets or queries the vertical scale of the division operation waveform. The unit is related to the current
amplitude unit of the source channel.
Parameter
Remarks
The default range of <scale> is from 20 nU/div to 100 MU/div. Its actual range is related to the vertical
scale of the source channel (refer to the :CHANnel<n>:SCALe command), at 1-2-5 step.
Note: After the vertical scale of the source channel is modified, the range of <scale> will not be changed
until the division operation is re-enabled.
Return Format
The query returns the vertical scale in scientific notation.
DS4000E Programming Guide 2-45
RIGOLChapter 2 Command System
Name
Type
Range
Default
<center>
Real
FFT horizontal position + 7 x FFT horizontal scale
Sets or queries the horizontal position of the FFT operation waveform. The default unit is Hz.
Parameter
Remarks
The range of <offs> is related to the on/off status of the anti-aliasing function, FFT sample rate (Sa),
FF T Sample Rate = Number of Pixels Per Grid Horizont ally/Horizontal Time Base
Name
<offs> Real Refer to Remarks0
and FFT horizontal scale (Hspan). The relationship is shown as below:
When the anti-aliasing function is disabled, the range of <offs> is from (max{-0.5 x Sa, -14 x Hspan})
to (0.5 x Sa).
When the anti-aliasing function is enabled, the range of <offs> is from (max{-0.4 x Sa, -14 x Hspan})
to (0.4 x Sa).
Note: max{A, B} indicates selecting a greater value from A and B.
Wherein, Number of Pixels Per Grid Horizonta lly is related to the on/off status of FFT anti-aliasing
function. When the function is disabled, Number of Pixels Per Grid Horizontally is 50; when enabled, it
TypeRangeDefault
2-46 DS4000E Programming Guide
Chapter 2 Command System RIGOL
Name
Type
Range
Default
<span>
Real
Refer to Remarks
1.25 MHz/div
is 100. For the value of Horizontal Time Base, refer to the :TIMebase[:MAIN]:SCALe command.
The FFT horizontal s cale is related to the FFT sample rate and FFT horizontal coefficient, refer to
the :CALCulate:FFT:HSPan command.
Return Format
The query returns the horizontal position in scientific notation.
Sets or queries the horizontal coefficient of FFT operation.
Parameter
Remarks
This command indirectly sets the horizontal scale of FFT operation (refer to the :CALCulate:FFT:HSPan
FF T Sample Rate = Number of Pixels Per Grid Horizont ally/Horizontal Time Base
Return Format
The query returns 1, 2, 3, or 4.
Name
<hscale> Discrete {1|2|3|4} 2
command). Different FFT horizontal coefficients represent differe nt relationships between the FFT
horizontal scale (Hspan) and FFT sample rate (Sa), as shown below.
1: Hspan = Sa/20
2: Hspan = Sa/40
3: Hspan = Sa/100
4: Hspan = Sa/200
Wherein, Number of Pixels Per Grid Horizonta lly is related to the on/off status of FFT anti-aliasing
function. When the function is disabled, Number of Pixels Per Grid Horizontally is 50; when enabled, it
is 100. For the value of Horizontal Time Base, refer to the :TIMebase[:MAIN]:SCALe command.
Sets or queries the horizontal scale (namely the frequency value per grid horizontally) of the FFT operation
waveform. The default unit is Hz/div.
Parameter
Remarks
The FFT horizonta l scale is related t o the current F FT sample r ate (Sa), a nd it can be Sa/ 20, Sa/40,
FF T Sample Rate = Number of Pixels Per Grid Horizont ally/Horizontal Time Base
DS4000E Programming Guide 2-47
Sa/100, or Sa/ 200.
Wherein, Number of Pixels Per Grid Horizonta lly is related to the on/off status of FFT anti-aliasing
RIGOLChapter 2 Command System
Name
Type
Range
Default
function. When the function is disabled, Number of Pixels Per Grid Horizontally is 50; when enabled, it
is 100. For the value of Horizontal Time Base, refer to the :TIMebase[:MAIN]:SCALe command.
You can set the FFT horizontal scale indirectly by setting the FFT horizontal coefficient (refer to
the :CALCulate:FFT:HSCaLe command).
Return Format
The query returns the horizontal scale in scientific notation.
Turns on or off the split display of FFT operation; or queries the on/off status of the split display of FFT
operation.
Parameter
Remarks
1|ON: turns on split display. The source channel waveform and FFT operation waveform are displayed
0|OFF: turns off split display. The source channel waveform and FFT operatio n wavef orm are display ed
Return Format
The query returns 1 or 0.
<bool> Bool {{1|ON}|{0|OFF}} 1|ON
separately, with the time domain and frequency domain signals displayed clearly.
in the same window (namely full-screen display). You can observe the frequency spectrum more
clearly and make more accurate measurements.
2-48 DS4000E Programming Guide
Chapter 2 Command System RIGOL
Name
Type
Range
Default
(-40 x vertical s c ale of the FFT operation waveform) to (40 x
<scale>
Description
Sets or queries the horizontal position of the FFT operation waveform. The unit is related to the current
vertical scale type of FFT operation and the current amplitude unit of the s ource channel.
Parameter
<offs> Real
Return Format
The query returns the vertical position in scientific notation.
Sets or queries the vertical scale of the FFT operation waveform. The unit is related to the current vertical
scale type of FFT ope ration and the current amplitude uni t of the source channel.
Parameter
Remarks
The range of <scale> is related to the vertical scale type of FFT operation (refer to
the :CALCulate:FFT:VSMode command).
W hen the vertical s c ale type is "DB", t he range of <scale> is from 1 dBV/div to 100 dBV/div, at 1-2-5
W hen the vertical s c ale type is "VRMS", the default range o f <scale> is from 0.01 V/div to 200 V/div.
Return Format
The query returns the vertical scale in scientific notation.
Name
step.
Its actual range is related to the vertical scale of the source channel (refer to the :CHANnel<n>:SCALe
command), at 1-2-5 step.
Note: After the vertical scale of the source channel is modified, the range of <scale> will not be
changed until the FFT operation is re-enabled.
Description
Sets or queries the window function of FFT operation.
Parameter
Name Type Range Default
Remarks
The window function can effectively reduce the spectrum leakage effect.
Different window functions are applicable to measurements of different waveforms. Please select the
proper window function according to the characteristics of the waveform to be measured.
Return Format
The query returns RECT, HANN, HAMM, or BLAC.
Enables or disables the invert display of the logic operation waveform; or queries the on/off status of the
invert display of the logic operation waveform.
Parameter
Name
<thre> Real
Type Range Default
Name
Type Range Default
(-4 x VerticalScale - Offset) to (4 x VerticalScale - Offset)
Wherein, VerticalScale is the vertical scale of the source
channel, refer to the :CHANnel<n>:SCALe command;
Offset is the vertical position of the source channel, refer
to the :CHANnel<n>:OFFSet command.
0
<bool> Bool {{1|ON}|{0|OFF}} 0|OFF
Remarks
1|ON: turns the waveform invert on. The waveform voltage values are inverted and then displayed.
0|OFF: turns the waveform invert off. The waveform is displayed normally.
If the logic operation formula (refer to the :CALCulate:LOGic:OPERator command) is "NOT", use
the :CALCulate:LOGic:SA command only to specify the source channel.
Return Format
The query returns CHAN1, CHAN2, CH AN3, or CHAN4.
2-52 DS4000E Programming Guide
Chapter 2 Command System RIGOL
Name
Type
Range
Default
(-40 x vertical s c ale of the logic operation waveform) to (40 x
:CALCulate:LOGic:VOFFset
Syntax
:CALCulate:LOGic:V O F Fse t <o ffs>
:CALCulate:LOGic:VOFFset?
Description
Sets or queries the vertical position of the logic oper ation waveform. The default unit is U.
Parameter
<offs> Real
Return Format
The query returns the vertical position in scientific notation.
vertical scale of the logic operation waveform)
0
:CALCulate:LOGic:VSCale
Syntax
:CALCulate:LOGic:VSCale < sc al e>
:CALCulate:LOGic:VSCale?
Description
Sets or queries the vertical scale of the logic operation waveform. The default unit is U.
Parameter
Return Format
The query returns the vertical scale in scientific notation.
Name
<scale> Real 0.05 U/div to 100 U/div, at 1-2-5 step 1 U/div
Enables or disables the invert display of the multiplication operation waveform; or queries the on/off status
of the multiplication operation waveform.
Parameter
Name Type Range Default
<bool> Bool {{1|ON}|{0|OFF}} 0|OFF
Remarks
1|ON: turns the waveform invert on. The waveform voltage values are inverted and then displayed.
0|OFF: turns the waveform invert off. The waveform is displayed normally.
Return Format
The query returns 1 or 0.
:CALCulate:MULTiply:SA
:CALCulate:MULTiply:SB
Syntax
:CALCulate:MU LTi ply :SA <s our ce >
:CALCulate:MULTiply:SA?
:CALCulate:MU LTi ply :SB <s ourc e >
:CALCulate:MULTiply:SB?
Description
Sets or queries the channel source of Source A or Source B in multiplication operation.
Sets or queries the vertical position of the multiplication operation waveform. The unit is related to the
current amplitude unit of the source channel.
Parameter
<offs> Real
Return Format
The query returns the vertical position in scientific notation.
(40 x vertical scale of the multiplication operation waveform)
Sets or queries the vertical scale of the multiplication operation waveform. The unit is related to the current
amplitude unit of the source channel.
Parameter
Name
<scale> Real Refer to Remarks 2 U/div
Remarks
The default range of <scale> is from 20 nU/div to 10 MU/div . Its actual range is related to the vertical scale
of the source channel (refer to the :CHANnel<n>:SCALe command), at 1-2-5 step.
Note: After the vertical scale of the source channel is modified, the range of <scale> will not be changed
until the multiplication operation is re-enabled.
Return Format
The query returns the vertical scale in scientific notation.
Enables or disables the invert display of the subtraction operation waveform; or queries the on/off status of
the invert display of the subtraction operation waveform.
Parameter
Name Type Range Default
<bool> Bool {{1|ON}|{0|OFF}} 0|OFF
Remarks
1|ON: turns the waveform invert on. The waveform voltage values are inverted and then displayed.
0|OFF: turns the waveform invert off. The waveform is displayed normally.
Return Format
The query returns 1 or 0.
:CALCulate:SUB:SA
:CALCulate:SUB:SB
Syntax
:CALCulate:SUB:SA <source>
:CALCulate:SUB:SA?
:CALCulate:SUB:SB <so urc e >
:CALCulate:SUB:SB?
Description
Sets or queries the channel source of Source A or Source B in subtraction operation.
Sets or queries the vertical scale of the subtractio n operation waveform. The unit is related to the current
amplitude unit of the source channel.
Parameter
<scale> Real Refer to
Remarks
The default range of <scale> is from 1 pV/div to 200 V/div . Its actual range is related to the vertical scale of
the source channel (refer to the :CHANnel<n>:SCALe command), at 1-2-5 step.
Note: After the vertical scale of the source channel is modified, the range of <scale> will not be changed
until the subtraction o peration is re-enabled.
Return Format
The query returns the vertical scale in scientific notation.
Queries the date when the last self-calibration was performed.
Return Format
The query returns <year>,<month>,<day>. Wherein, <year>, <month>, and <day> represent year,
month, and day res pectively.
:CALibrate:QUIT
Syntax
:CALibrate:QUIT
Description
Stops performing the self-calibration opera tion.
Remarks
You can enable the oscilloscope to stop performing the self-calibration operation at any time.
:CALibrate:STARt
Syntax
:CALibrate:STARt
Description
Enables the oscilloscope to start executing the self-calibration operation.
Remarks
The self-calibration operation enables the oscilloscope to work in an optimal state and obtain accurate
Before executing the self-calibration operation, pr operly connect the calibration signal to the exter na l
During the self-calibration process, most of the keys are disabled.
2-58 DS4000E Programming Guide
measurement results.
trigger input channel and four input channels.
Chapter 2 Command System RIGOL
:CALibrate:TIME?
Syntax
:CALibrate:TIME?
Description
Queries the time when the last self-calibration was performed.
Return Format
The query returns <hours>,<minutes>,<seconds>. Wherein, <hours>, <minutes>, and <s econds>
represent hour, minute, and second respectively.
Sets or queries the bias voltage of the active probe currently connected to the specified analog channel.
The oscilloscope provides the bias voltage adjustment function for the active probe. This function is used to
adjust the signal under test that exceeds the input dynamic range of the probe amplifier to an appropriate
range to ensure the signal integrity.
Parameter
Return Format
The query returns the bias voltage in scientific notation.
<n> Discrete {1|2|3|4} -<vol> Real -12 V to 12 V 0
:CHANnel<n>:BWLimit
Syntax
:CHANnel<n>:BWLimit <type>
:CHANnel<n>:BWLimit?
Description
Sets or queries the bandwidth limit of the specified analog channel.
Parameter
2-60 DS4000E Programming Guide
Name
<n> Discrete {1|2|3|4} -<type> Discrete
TypeRangeDefault
DS4024E: {20M|100M|OFF}
DS4014E: {20M|OFF}
OFF
Chapter 2 Command System RIGOL
Name
Type
Range
Default
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
--
Remarks
20M| 100M: enables the bandwidth limit and sets the bandwidth limit to 20 MHz or 100 MHz. The
high-frequency comp one nt s tha t a re g re at er t han 20 MHz or 1 00 MHz in the signal unde r te st wil l be
attenuated.
OFF: disables the bandwidth limit function. The high -frequency compone nts in the signa l under test
Sets or queries the coupling mode of the specified analog channel.
Parameter
Remarks
AC: the DC components of the signal under test are blocked.
DC: both DC and AC components of the signal under test can pass through the channel.
GND: both DC and AC components of the signal under test are blocked.
Return Format
The query returns AC, DC, or GND.
<n> Discrete {1|2|3|4} -<coupling> Discrete {AC|DC|GND} DC
:CHANnel<n>:CSTart
Syntax
:CHANnel<n>:CSTart
Description
Starts calibratio n for the active probe currently connected to the specified analog channel.
Parameter
Remarks
This command is only valid when an active probe is correctly connected.
DS4000E Programming Guide 2-61
RIGOLChapter 2 Command System
<n>
Discrete
{1|2|3|4}
--
<imped>
Discrete
{OMEG|FIFTy}
OMEG
:CHANnel<n>:DISPlay
Syntax
:CHANnel<n>:DISPlay <bool>
:CHANnel<n>:DISPlay?
Description
Turns on or off the specified analog channel; or queries the on/off status of the specified analog channel.
Description
Sets or queries the input impedance of the specified analog channel. The default unit is Ω.
Parameter
Remarks
OMEG: 1 MΩ. This indicates that the input impedance of the oscilloscope is rather high, and the
current flowing from the circuit under test to the oscilloscope can be ignored.
FIFTy: 50 Ω. This indicates that the oscilloscope shall be matched with a device whose output
impedance is 50 Ω.
Return Format
The query returns OMEG or FIFT.
:CHANnel<n>:INVert
Syntax
:CHANnel<n>:INVert <bool>
:CHANnel<n>:INVert?
Description
Turns on or off the invert display of the specified analog channel; or queries the on/off status of the invert
display of the specified analog channel.
1|ON: turns the waveform invert on. The waveform voltage values are inverted and then displayed.
0|OFF: turns the waveform invert off. The waveform is displayed normally.
Return Format
The query returns 1 or 0.
Type Range Default
:CHANnel<n>:OFFSet
Syntax
:CHANnel<n >:OFFSet <offset>
:CHANnel<n>:OFFSet?
Description
Sets or queries the vertical position of the specifie d analog channel. The unit is related to the current
amplitude unit of the specified analog channel. The default unit i s V.
Parameter
Return Format
The query returns the vertical position in scientific notation.
<n> Discrete {1|2|3|4} --
<offset> Real
Related to the current input impedance, probe ratio, and the
vertical scale (the default unit is V).
When the input impedance is 50 Ω and the probe ratio is 1X:
When the input impedance is 1 MΩ and the probe ratio is 1X:
1 mV/div to 124 mV/div: -1.2 V to +1.2 V
125 mV/div to 1 V/ div: -12 V to +12 V
1 mV/div to 229 mV/div: -2 V to +2 V
230 mV/div to 5 V/ div: -40 V to +40 V
0
:CHANnel<n>:PEND
Syntax
:CHANnel<n>:PE N D <type>
:CHANnel<n>:PEND?
Description
Sets or queries the probe head type of an active probe currently conn ected to the specified analog channel.
The oscilloscope will display the waveform s of the sig nal u nder test ba sed on the currently set probe
ratio, without affecting the actual amplitude of the signal.
command) of the analog channel is different.
:CHANnel<n>:SCALe
Syntax
:CHANnel<n>:SCALe <scale>
:CHANnel<n>:SCALe?
Description
Sets or queries the vertical scale of the specified analog channel. The unit is related to the current
amplitude unit of the specified analog channel. The default unit is V/div.
Parameter
Return Format
The query returns the vertical scale in scientific notation.
<offset> Real
(the default unit is V/div).
the value of <scale> is from 1 mV/div to 1 V/div.
When the input impedance is 1 MΩ and the probe ratio is 1X,
the value of <scale> is from 1 mV/div to 5 V/div.
Sets or queries the delay calibration time (used to calibrate the zero offset) of th e specified analog channel.
The default unit is s.
Parameter
Remarks
When the horizontal time base is greater than or equal to 10 us (refer to the :TIMebase[:MAIN]:SCALe
command), the delay calibration time cannot be adjusted.
Return Format
The query returns the delay calibration time in scientific notation.
Name
<n> Discrete {1|2|3|4} -<tcal> Real -100 ns to +100 n s 0 s
Type Range Default
:CHANnel<n>:TYPE?
Syntax
:CHANnel<n>:TYPE?
Description
Sets or queries the type of a probe currently connected to the specified analog channel.
Parameter
Return Format
The query returns NORM or DIFF. NORM indicates the normal probe, and DIFF indicates the active probe.
<n> Discrete {1|2|3|4} --
:CHANnel<n>:UNITs
Name
Type Range Default
Syntax
:CHANnel<n >: UNI Ts <units>
:CHANnel<n>:UNITs?
Description
Sets or queries the amplitude display unit of the specified analog channel.
Parameter
Return Format
The query returns VOLT, WATT, AMP, or UNKN.
DS4000E Programming Guide 2-65
RIGOLChapter 2 Command System
:CHANnel<n>:VERNier
Syntax
:CHANnel<n>:VERNier <bool>
:CHANnel<n>:VERNier?
Description
Enables or disables the fine adjustment of the vertical scale of the specified analog channel; or queries the
on/off status of the fine adjustment function of the vertical scale of the specified analo g channel.
Parameter
Remarks
1|ON: enables the fine adjustment function. Rotate VERTICAL
To better observe the signal details, enable the fine adjustment function to improve the waveform
vertical scale at a relatively smaller step.
0|OFF: disables the fine adjustment function. R otate VERTICAL
within the adjustable range at 1-2-5 step.
display amplitude if the following conditions occ ur: the a mplitude of the i nput waveform is a little bit
greater than the full scale of the current scale; using the next scale for adjustment makes the
amplitude a little bit lower than expected.
Type Range Default
SCALE to further adjust the
SCALE to adjust the vertical scale
2-66 DS4000E Programming Guide
Chapter 2 Command System RIGOL
Cursor A (X Cursor)
:CURSor Commands
Cursors are the horizontal and vertical marks that can be used to measure the X-axis values and Y-axis
values of the source channel waveform. The cursor measurement function provides X cursors and Y cursors
(as shown in the figure below).
Cursor A
(Y Cursor)
Cursor B
(Y Cursor)
Cursor B (X Cursor)
X Cursor
X cursor is a vertical solid/dotted line that is used to make horizontal adjustments. It can be used to
measure time (s), frequency (Hz), phase (°), and ratio (%).
― Cursor A (X cursor) is a vertical solid line, and Cursor B (X cursor) is a vertical dotted line.
― When the measurement source is FFT, X cursor denotes frequency.
― In the X-Y cursor mode, X cursor is used to measure the waveform amplitude of CH1 or CH3.
Y Cursor
Y cursor is a horizontal solid/dotted line that is used to make vertical adjustment. It can be used to
measure amplitude (the unit is the same as that of the source channel amplitude) and ratio (%).
― Cursor A (Y cursor) is a horizontal solid line, and Cursor B (Y cursor) is a horizontal dotted line.
― When the measurement source is MATH, the measurement unit corresponds to the MATH
function unit.
― In the X-Y cursor mode, Y cursor is used to measure the waveform amplitude of CH2 or CH4.
Command List:
:CURSor:MODE
:CURSor:MANual
:CURSor:TRACk
DS4000E Programming Guide 2-67
RIGOLChapter 2 Command System
:CURSor:MODE
Syntax
:CURSor:MOD E <mode>
:CURSor:MODE?
Description
Sets or queries the mode of the cursor measurement.
Parameter
Remarks
O FF: disables the cursor measurement function.
MANual: enables the manual mode of cursor measurement.
TRACk: enables the track mode of cursor measurement.
AUTO: enables the auto mode of cursor measurement.
Return Format
The query returns OFF, MAN, TRAC, or AUTO.
Queries the X value at Cursor A (X cursor) i n the manual mode o f cursor measurement. The unit is
determined by the currently selected horizontal unit.
Remarks
For the horizontal position of Cursor A (X cursor), refer to the :CURSor:MANual:CAX command.
Return Format
The query returns the X value in scientific notation.
:CURSor:MANual:AYValue?
Syntax
:CURSor:MANual:AYValue?
Description
Queries the Y value at Cursor A (Y cursor) in the manual mode of cursor measurement. The unit is
determined by the currently selected vertical unit.
Remarks
For the vertical position of Cursor A (Y cursor), refer to the :CURSor:MANual:CAY command.
Return Format
The query returns the Y value in scientific notation.
DS4000E Programming Guide 2-69
RIGOLChapter 2 Command System
Name
Type
Range
Default
<ax>
Integer
0 to 699
150
:CURSor:MANual:BXValue?
Syntax
:CURSor:MANual:BXValue?
Description
Queries the X value at Cursor B (X cursor) in the manual mode of cursor measurement. The unit is
determined by the currently selected horizontal unit.
Remarks
For the horizontal position of Cursor B (X cursor), refer to the :CURSor:MANual:CBX command.
Return Format
The query returns the X value in scientific notation.
:CURSor:MANual:BYValue?
Syntax
:CURSor:MANual:BYValue?
Description
Queries the Y value at Cursor B (Y curs or) in the manual mode of cursor measurement. The unit is
determined by the currently selected vertical unit.
Remarks
For the vertical position of Cursor B (Y cursor), refer to the :CURSor:MANual:CBY command.
Return Format
The query returns the Y value in scientific notation.
:CURSor:MANual:CAX
Syntax
:CURSor:MANua l:C AX <a x >
:CURSor:MANual:CAX?
Description
Sets or queries the horizontal position of Cursor A (X cursor) in the manual mode of cursor measurement.
Parameter
Remarks
The horizontal position of the cursor is defined by the pixel coordinate of the screen. The range of the pixel
coordinate on the screen horizontally is from 0 to 699 (from left to right).
Return Format
The query returns a n integer between 0 and 699.
2-70 DS4000E Programming Guide
Chapter 2 Command System RIGOL
Name
Type
Range
Default
<ay>
Integer
0 to 399
100
Name
Type
Range
Default
:CURSor:MANual:CAY
Syntax
:CURSor:MANual:CAY <ay>
:CURSor:MANual:CAY?
Description
Sets or queries the vertical position of Cursor A (Y cursor) in the manual mode of cursor measurement.
Parameter
Remarks
The vertical position of the cursor is defined by the pix el coordinate of the scree n. The ra nge of the pixe l
coordinate on the screen vertically is from 0 to 399 (from top to bottom).
Return Format
The query returns a n integer between 0 and 399.
:CURSor:MANual:CBX
Syntax
:CURSor:MANua l:C BX <bx>
:CURSor:MANual:CBX?
Description
Sets or queries the horizontal position of Cursor B (X cursor) in the manual mode of cursor measurement.
Parameter
<bx> Integer 0 to 699 550
Remarks
The horizontal position of the cursor is defined by the pixel coordinate of the screen. The range of the pixel
coordinate on the screen horizontally is from 0 to 699 (from left to right).
Return Format
The query returns a n integer between 0 and 699.
:CURSor:MANual:CBY
Syntax
:CURSor:MANual:CBY <by>
:CURSor:MANual:CBY?
Description
Sets or queries the vertical position of Cursor B (Y cursor) in the manual mode of cursor measurement.
Parameter
Name
<by> Integer 0 to 399 300
TypeRangeDefault
DS4000E Programming Guide 2-71
RIGOLChapter 2 Command System
Name
Type
Range
Default
Remarks
The vertical position of the cursor is defined by the pix el coordinate of the scree n. The ra nge of the pixe l
coordinate on the screen vertically is from 0 to 399 (from top to bottom).
Return Format
The query returns a n integer between 0 and 399.
:CURSor:MANual:IXDelta?
Syntax
:CURSor:MANual:IXDelta?
Description
Queries the reciprocal (1/△X) of the difference between X values at Cursor A (X cursor) and Cursor B (X
cursor) in the manual mode of cursor measurement. The unit is determined by the currently selected
horizontal unit.
Remarks
For the horizontal position of Cursor A (X cursor), refer to the :CURSor:MANual:CAX command.
For the horizontal position of Cursor B (X cursor), refer to the :CURSor:MANual:CBX command.
Return Format
The query returns the reciprocal (1/△X) of the difference between X values in scientific notation. When △X
is 0 s, the query returns 9.9e37.
Sets or queries the source channel of the manual mode of cursor measurement.
Parameter
Remarks
O nly the currently enabled channel can be selected as the source channel.
When <source> is set to "NONE", neither cursors nor measure ment results will be displayed.
Return Format
The query returns CHAN1, CHAN2, CHAN3, CHAN4, MATH, or NONE.
Sets or queries the horizontal unit in the manual mode of cursor measurement.
2-72 DS4000E Programming Guide
Chapter 2 Command System RIGOL
Name
Type
Range
Default
<unit>
Discrete
{SECond|HZ|DEGRee|PERCent}
SECond
Name
Type
Range
Default
<type>
Discrete
{TIME|AMPLitude}
TIME
Parameter
Remarks
SECond: when the X value at Cursor A (X cursor), the X value at Cursor B (X cursor), and the difference
HZ: when the X value at Cursor A (X cursor) , the X value at Cursor B ( X cursor) , and the di fference
DEGRee: when the X value at Cursor A (X cursor), the X value at Cursor B (X cursor), and the
PERCent: when the X value at Cursor A (X cursor), the X value at Cursor B (X cursor), and the
Return Format
The query returns SE C, HZ, DEGR, or PERC.
between the two values (namely A->X, B->X, and △X in the measurement results) are queried, the
returned values are expressed in s. When the reciprocal of the difference between the two values
(namely 1/△X in the measurement results) are queried, the returned value is expressed in Hz.
between the two values (namely A->X, B->X, and △X in the measurement results) are queried, the
returned values are expressed in Hz. When the reciprocal of the difference between the two values
(namely 1/△X in the measurement results) are queried, the returned value is expressed in s.
difference between the two values (namely A->X, B->X, and △X i n the measurement results) are
queried, the returned values are expressed in degree.
difference between the two values (namely A->X, B->X, and △X in the measurement results) are
queried, the returned values are expressed in percentage.
:CURSor:MANual:TYPE
Syntax
:CURSor:MANual:TYPE <type>
:CURSor:MANual:TYPE?
Description
Sets or queries the cursor type in the manual mode of cursor measurement.
Parameter
Remarks
TIME: represents X cursor.
AMPLitude: represents Y cursor.
Return Format
The query returns TIME or AMPL.
:CURSor:MANual:VUNit
Syntax
:CURSor:MAN ua l :VU Ni t <u ni t>
:CURSor:MANual:VUNit?
Description
Sets or queries the vertical unit in the manual mode of cursor measurement.
DS4000E Programming Guide 2-73
RIGOLChapter 2 Command System
Name
Type
Range
Default
<unit>
Discrete
{SUNit|PERCent}
SUNit
Parameter
Remarks
SUNit: when the Y value at Cursor A (Y cursor), the Y value at Cursor B (Y cursor), and the difference
PERCent: when the Y value at Cursor A (Y cursor), the Y value at Cursor B (Y cursor), and the
Return Format
The query returns SUN or PERC.
between the two values (namely A-> Y, B->Y, and △Y in the measurement results) are queried, the
returned values are expressed in the current amplitude unit of the source channel.
difference between the two values (namely A->Y, B -> Y, a n d △Y in the measurement results) are
queried, the returned values are expressed in percentage.
:CURSor:MANual:XDELta?
Syntax
:CURSor:MANual:XDELta?
Description
Queries the difference (namely △X) between the X value at Cursor A (X cursor) and the X value at Cursor B
(X cursor) in the manual mode of cursor measurement. The unit is determined by the currently selected
horizontal unit.
Remarks
For the horizontal position of Cursor A (X cursor), refer to the :CURSor:MANual:CAX command.
For the horizontal position of Cursor B (X cursor), refer to the :CURSor:MANual:CBX command.
Return Format
The query returns the current difference in scientific no tation.
:CURSor:MANual:YDELta?
Syntax
:CURSor:MANual:YDELta?
Description
Queries the difference (namely △Y) between the Y value at Cursor A (Y cursor) and the Y value at Cursor B
(Y cursor) in the manual mode of cursor measurement. The unit is determined by the currently selected
vertical unit.
Remarks
For the vertical position of Cursor A (Y cursor), refer to the :CURSor:MANual:CAY command.
For the vertical position of Cursor B (Y cursor), refer to the :CURSor:MANual:CBY command.
Return Format
The query returns the current difference in scientific notation.
Queries the X value at Cursor A (X cursor) in the track mode of cursor measurement. The default unit is s.
Remarks
In the tra ck mode, when Cursor A (Y cursor) is adjusted vertica lly, Cursor A (X cursor) will
For the horizontal position of Cursor A (X cursor), refer to the :CURSor:TRACk:CAX command.
Return Format
The query returns the X value in scientific notation.
:CURSor:TRACk:AXIS
Syntax
:CURSor:TRACk:AXIS <mode>
:CURSor:TRACk:AXIS?
Description
Sets or queries the track axis in the track mode of cursor measurement.
Parameter
automatically track the tim e or frequency of the waveform of the correspond ing track source channel
at Cursor A (Y cursor).
Remarks
When X is selected as the track axis, you can use the :CURSor:TRACk:CAY and :CURSor:TRACk:CBY
commands to adjust the vertical position of Y cursor . Then, X cursor will automatically track the time or
frequency of the waveform of the corresponding measurement source at Y cursor. Besides, you can
also use the :CURSor:TRACk:SEQuence command to set the track type of X cursor.
DS4000E Programming Guide 2-75
RIGOLChapter 2 Command System
When Y is selected as the track axis, you can use the :CURSor:TRACk:CAX and :CURSor:TRACk:CBX
commands to adjust the horizontal po sition of X cursor. Then, Y cursor will automatically track the
vertical amplitude of the waveform of the corresponding measurement source at X cursor.
Return Format
The query returns X or Y.
:CURSor:TRACk:AYValue?
Syntax
:CURSor:TRACk:AYValue?
Description
Queries the Y value at Cursor A (Y cursor) in the track mode of cursor measurement. The unit is related to
the current amplitude unit of the track source channel of Cursor A (X cursor).
Remarks
In the track mode, when Cursor A (X cursor) is adjusted horizontally, Cursor A (Y cursor) will
For the vertical position of Cursor A (Y cursor), refer to the :CURSor:TRACk:CAY command.
Return Format
The query returns the Y value in scientific notation. W hen the Y value at Cursor A (Y cursor) exceeds the
screen range, the query returns 9.9e37.
automatically track the vertical amplitude of the waveform of the corresponding track source channel
at Cursor A (X cursor).
:CURSor:TRACk:BXValue?
Syntax
:CURSor:TRACk:BXValue?
Description
Queries the X value at Cursor B (X cursor) in the track mode of cursor measurement. The default unit is s.
Remarks
In the tra ck mode, when Cursor B (Y cursor) is adjusted vertically, Cursor B (X cursor) will
For the horizontal position of Cursor B (X cursor), refer to the :CURSor:TRACk:CBX command.
Return Format
The query returns the X value in scientific notation.
automatically track the tim e or frequency of t he waveform of the corresponding track source channel
at Cursor B (Y cursor).
:CURSor:TRACk:BYValue?
Syntax
:CURSor:TRACk:BYValue?
Description
Queries the Y value at Cursor B (Y cursor) in the track mode of cursor measurement. The unit is related to
the current amplitude unit of the track source channel of Cursor B (X cursor).
2-76 DS4000E Programming Guide
Chapter 2 Command System RIGOL
Remarks
In the tra ck mode, when Cursor B (X cursor) is adjusted horizontally, Cursor B (Y cursor) will
automatically track the vertical amplitude of the waveform of the corresponding track source channel
at Cursor B (X cursor).
For the vertical position of Cursor B (Y cursor), refer to the :CURSor:TRACk:CBY command.
Return Format
The query returns the Y value in scientific notation. W hen the Y value at Cursor B (Y cursor) exceeds the
screen range, the query returns 9.9e37.
:CURSor:TRACk:CAX
Syntax
:CURSor:TRACk:CAX <ax>
:CURSor:TRACk:CAX?
Description
Sets or queries the horizontal position of Cursor A (X cursor) in the track mode of cursor measurement.
Parameter
Remarks
The horizontal position of the cursor is defined by the pixel coordinate of the screen. The range of the
When X is selected as the track axis (refer to the :CURSor:TRACk:AXIS command),
Return Format
The query returns a n integer between 0 and 699.
Name
<ax> Integer 0 to 699 150
pixel coordinate on the screen horizontally is from 0 to 699 (from left to right).
the :CURSor:TRACk:CAX <ax> command is invalid.
Type Range Default
:CURSor:TRACk:CAY
Syntax
:CURSor:TRACk:CAY <ay>
:CURSor:TRACk:CAY?
Description
Sets or queries the vertical position of Cursor A (Y cursor) in the track mode of cursor measurement.
Parameter
Remarks
The vertical positi on of the cursor is defined by the pixel coordina te of the scree n. The range of the
When Y is selected as the track axis (refer to the :CURSor:TRACk:AXIS command),
Return Format
The query returns a n integer between 0 and 399.
Name
<ay> Integer 0 to 399 300
pixel coordinate on the screen vertically is from 0 to 399 (from top to bottom).
the :CURSor:TRACk:CAY <ay> command is invalid.
TypeRangeDefault
DS4000E Programming Guide 2-77
RIGOLChapter 2 Command System
Name
Type
Range
Default
<bx>
Integer
0 to 699
550
Name
Type
Range
Default
<ay>
Integer
0 to 399
300
:CURSor:TRACk:CBX
Syntax
:CURSor:TRACk:CBX <bx>
:CURSor:TRACk:CBX?
Description
Sets or queries the horizontal position of Cursor B (X cursor) in the track mode of cursor measurement.
Parameter
Remarks
The horizontal position of the cursor is defined by the pixel coordinate of the screen. The range of the
When X is selected as the track axis (refer to the :CURSor:TRACk:AXIS command),
Return Format
The query returns a n integer between 0 and 699.
pixel coordinate on the screen horizontally is from 0 to 699 (from left to right).
the :CURSor:TRACk:CBY <by> command is invalid.
:CURSor:TRACk:CBY
Syntax
:CURSor:TRACk:CBY <by>
:CURSor:TRACk:CBY?
Description
Sets or queries the vertical position of Cursor B (Y cursor) in the track mode of cursor measurement.
Parameter
Remarks
The vertical position of the cursor is defined by the pixel coordinate of the screen. The range of the
pixel coordinate on the screen vertically is from 0 to 399 (from top to bottom).
When Y is selected as the track axis (refer to the :CURSor:TRACk:AXIS command),
the :CURSor:TRACk:CBY <by> command is invalid.
Return Format
The query returns a n integer between 0 and 399.
:CURSor:TRACk:IXDelta?
Syntax
:CURSor:TRACk:IXDelta?
Description
Queries the reciprocal (1/△X) of the difference between the X value at Cursor A (X cursor) and the X value
at Cursor B (X cursor) in the track mode of cursor measurement. The default unit is Hz.
2-78 DS4000E Programming Guide
Chapter 2 Command System RIGOL
Name
Type
Range
Default
<source>
Discrete
{CHANnel1|CHANnel2|CHANnel3|CHANnel4|MATH|NONE}
CHANnel1
Remarks
For the horizontal position of Cursor A (X cursor), refer to the :CURSor:TRACk:CAX command.
For the horizontal position of Cursor B (X cursor), refer to the :CURSor:TRACk:CBX command.
Return Format
The query returns the reciprocal of the current difference in scientific notation. When the difference is 0 s,
the query returns 9.9e37.
Sets or queries the track type of X cursor when X is selected as the track axis (refer to
the :CURSor:TRACk:AXIS command).
Parameter
Remarks
FIRSt: When you adjust the vertical position of Y cursor, if the waveforms of corresponding
LAST: When you adjust the vertical position of Y cursor, if the waveforms of corresponding
Return Format
The query return FIRS or LAST.
Name
<seq> Discrete {FIRSt|LAST} FIRSt
TypeRangeDefault
measurement channels have formed multiple crossing points along the cursor, then X cursor will be
automatically located at the crossing point of the most left side of the screen.
measurement channels have formed multiple crossing points along the cursor, then X cursor will be
automatically located at the crossing point of the most right side of the screen.
Sets or queries the track source of Cursor A (X cursor) in the track mode of cursor measurement.
Parameter
Remarks
O nly the currently enabled channel can be selected as the source channel.
When <source> is set to "NONE", it indicates that Cursor A (X cursor) will not be used.
Return Format
The query returns C H AN1, CHAN2, CHAN3, CHAN4, MATH, or NONE.
Sets or queries the track source of Cursor B (X cursor) in the track mode of cursor measurement.
Parameter
Remarks
O nly the currently enabled channel can be selected as the source channel.
When <source> is set to "NONE", it indicates that Cursor B (X cursor) will not be used.
Return Format
The query returns CHAN1, CHAN2, CHAN3, CHAN4, MATH, or NONE.
:CURSor:TRACk:XDELta?
Syntax
:CURSor:TRACk:XDELta?
Description
Queries the difference (n amely △X) between the X value at Cursor A (X cursor) and the X value at Cursor B
(X cursor) in the track mode of cursor measurement. The default unit is s.
Remarks
For the horizontal position of Cursor A (X cursor), refer to the :CURSor:TRACk:CAX command.
For the horizontal position of Cursor B (X cursor), refer to the :CURSor:TRACk:CBX command.
Return Format
The query returns the current difference in scientific notation.
:CURSor:TRACk:YDELta?
Syntax
:CURSor:TRACk:YDELta?
Description
Queries the difference (namely △Y) between the Y value at Cursor A (Y cursor) and the Y value at Cursor B
(Y cursor) in the track mode of cursor measur ement. The unit is related to the current amplitude unit of the
track source channel of Cursor A (X cursor) and Cursor B (X cursor).
Remarks
For the vertical position of Cursor A (Y cursor), refer to the :CURSor:TRACk:CAY command.
For the vertical position of Cursor B (Y cursor), refer to the :CURSor:TRACk:CBY command.
Return Format
The query returns the current difference in scientific notation. When the Y value at Cursor A (Y cursor)
and/or the Y value at Cursor B (Y cursor) exceed(s) the screen range; or when the amplitude units of the
track source channel of current Cursor A (X cursor) and that of current Cursor B (X cursor) are inconsistent,
the query returns 9.9e37.
Clears all the waveforms on the screen. If the oscilloscope is in the RUN state, after the waveform data is
cleared, new waveform d ata will be displ ayed.
front panel.
This command functions the same as the CLEAR key on the
:DISPlay:DATA?
Syntax
:DISPlay:DATA?
Description
Reads the bitmap data stream of the currently displayed image on the screen.
Remarks
The command is sent from the PC to the instrument through the VISA interface. The instrument
responds to the command and directly returns the bitmap data stream of the currently displayed
image on the screen to the buffer area of the PC.
Ensure that there is enough buffer space to receive the data stream; otherwise, errors might occur in
reading the program.
To acquire the standard bitmap data, remove the TMC data block header in the returned string.
When the length of the data stream is greater than 1 MByte, you need to set a proper timeout time if
the communication speed of the interface is not fast enough.
You need to remove the end mark (\n(0X0A)) at the end of the data.
DS4000E Programming Guide 2-81
RIGOLChapter 2 Command System
Size
Name
Type
Range
Default
<time>
Discrete
{MIN|0.05|0.1|0.2|0.5|1|2|5|10|20|INFinite}
MIN
Return Format
The query returns the bitmap data stream in strings.
The returned value consists of the TMC data block header and BMP data. The format and detailed Remarks
of each part are as shown in the table below.
TMC Data Block HeaderBMP Data
[1]
N
(Length)
Format #NX…X BM...
Remarks
[1]
Note
For example, 9 in #9001152054.
Note
file header.
: N is the width of the bits that are used to describe the data length in the TMC data block header.
[2]
: The width is 800, the height is 480, the bit depth is 24 bit (3 bytes), and 54 is the size of the bitmap
+2 800x480x3+54=1152054
It is used to describe the length of the data stream (the
number of bytes).
Wherein, # is the start identifier of the data stream; N≤9
denotes that N-digit data following the start identifier are
used to describe the length of the data stream (the
number of bytes).
For example, #9001152054.
Wherein, N is 9, and 001152054 represents that the data
stream contains 1152054 bytes of effective data.
Bitmap data
[2]
:DISPlay:GBRightness
Syntax
:DISPlay:GBRight ne ss <bright>
:DISPlay:GBRightness?
Description
Sets or queries the display brightness of the screen grid (in percentage).
Parameter
Return Format
The query returns a n integer between 0 and 100.
Name
<bright> Integer 0 to 100 50
Type Range Default
:DISPlay:GRADing:TIME
Syntax
:DISPlay:GRADi ng :TIME <time>
:DISPlay:GRADing:TIME?
Description
Sets or queries the persistence time. The default unit is s.
Parameter
Remarks
MIN: sets t he persistence time to its minimum value to view how the waveform changes with high
2-82 DS4000E Programming Guide
refresh rate.
Chapter 2 Command System RIGOL
Name
Type
Range
Default
<time>
Discrete
{1|2|5|10|20|INFinite}
INFinite
0.0 5, 0 .1, 0.2 , 0. 5, 1, 2, 5 , 10, 20 : set s t he p er sis te nce t im e t o a spe cific value t o obs er ve glitch that
changes relatively slowly or glitch with low occurrence proba bility.
INFinite : sets the persist ence time to infinite (the osc illoscope displ ays the newly acquired waveform
without clearing the waveform formerly acquired) to measure noise and jitter as well as capture
incidental events.
Return Format
The query returns MIN, 0.05, 0.1, 0.2, 0.5, 1, 2, 5, 10, 20, or INF.
:DISPlay:GRID
Syntax
:DISPlay:GRID <grid>
:DISPlay:GRID?
Description
Sets or queries the display type of the screen grid.
Parameter
Remarks
FULL: displays the background grid and the coordinate.
HALF: does not display the background grid, but only the coordinate.
NONE: neither displays the background grid nor the coordinate.
Sets or queries the menu display time. The default unit is s.
Parameter
Return Format
The query returns 1, 2, 5, 10, 20, or INF.
DS4000E Programming Guide 2-83
RIGOLChapter 2 Command System
Name
Type
Range
Default
:DISPlay:TYPE
Syntax
:DISPlay:TYPE <type>
:DISPlay:TYPE?
Description
Sets or queries the display type of the waveform.
Parameter
Remarks
VECTors: The sample points are connected by lines and displayed. Normally , this mode can provide the
DOTS: displays the sample points directly. You can directly view each sample point and use the cursor
Return Format
The query returns V ECT or DOTS.
Name
<type> Discrete {VECTors|DOTS} VECTors
TypeRangeDefault
most vivid waveform to view the steep edge of the waveform (such as square waveforms).
to measure X and Y values at this sample point.
Sets or queries the display brightness of the waveform on the screen (in percentage).
Parameter
Return Format
The query returns a n integer between 0 and 100.
<bright> Integer 0 to 100 50
2-84 DS4000E Programming Guide
Chapter 2 Command System RIGOL
Name
Type
Range
Default
:EXT Commands
Command List:
:EXT:PEND
:EXT:CSTart
:EXT:PEND
Syntax
:EXT:PEND <type>
:EXT:PEND?
Description
Sets or queries the head type of the active probe currently connected to the external trigger channel
(namely the [EXT TRIG] connector on the front panel of the instrument).
Parameter
Remarks
SEND: indicates a single-ended probe head.
DIF Fe r ential: indicates a differential probe head.
Return Format
The query returns SE ND or DIF F.
:EXT:CSTart
Syntax
:EXT:CSTart
Description
Enables the calibration for the active probe currently connected to the external trigger channel.
Remarks
This command is only valid when an active probe is correctly connected.
:FUNCtion:W R EC or d:FE N D <fram e >
:FUNCtion:WRECord:FEND?
Description
Sets or queries the end fr ame of the wavefor m recording in the recording mode. The oscilloscope stops the
recording operation automatically when the number of recorded frames reaches the set end frame.
Parameter
Name
<frame> Integer
TypeRangeDefault
1 to the maximum number of frames that can be
7996
Return Format
The query returns a n integer.
:FUNCtion:WRECord:FMAX?
Syntax
:FUNCtion:WRECord:FMAX?
Description
Queries the maximum number of frames that can be recorded currently in the recording mode.
Remarks
The maximum number of frames that can be recorded is the maximum number of end frames of
The maximum number of frames that can be recorded is related to the currently selected memory
waveform recording that can be set (refer to the :FUNCtion:WRECord:FEND command).
depth (refer to the :ACQuire:MDEPth command).
Starts or stops the wavef orm recording operation in the rec ording mo de; or queries the status of waveform
recording in the recording mode.
Parameter
Remarks
Before st arting the recording operation, turn on the desired channel and adjust the waveform display
You can send thi s comma nd to stop t he recording ope ration; or wait for the os cilloscope t o stop the
Return Format
The query returns R EC or STOP.
Name
<oper> Discrete {RECord|STOP} STOP
TypeRangeDefault
to the desired state.
recording operation automatically after the oscilloscope completes re cording a specified number of
waveform frames (end frames, refer to the :FUNCtion:WRECord:FEND command).
2-88 DS4000E 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.