RIGOL is a registered trademark of RIGOL (SUZHOU) TECHNOLOGIES INC.
Publication Number
PGA25100-1110
Software Version
00.00.00.SP1
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:2015 standard and the ISO14001:2015 standard. Other international standard conformance
certifications are in progress.
ContactUs
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
MSO5000 Programming Guide I
RIGOL
Model
Analog
Bandwidth
No. of
Analog
Channels
No. of Function/Arbitrary
Waveform Generator
Channels
No. of Digital
Channels
MSO5072
70 MHz
2
2, Opt.
16
MSO5074
70 MHz
4
2, Opt.
16
MSO5102
100 MHz
2
2, Opt.
16
MSO5104
100 MHz
4
2, Opt.
16
MSO5204
200 MHz
4
2, Opt.
16
MSO5354
350 MHz
4
2, Opt.
16
Tip
For the latest version of this manual, download it from the official website of RIGOL (www.rigol.com).
Document Overview
This manual is your guide to programming RIGOL MSO5000 series digital oscilloscope. MSO5000 series
can communicate with the PC via the USB, LAN, or GPIB (requiring to work with RIGOL's USB-GPIB
interface converter) interface.
Main Topics in this Manual:
Chapter 1 SCPI Command Overview
This chapter introduces the syntax, symbols, parameters, and abbreviation rules of the SCPI commands.
Chapter 2 Command System
This chapter introduces the syntax, function, parameters, and descriptions of each command.
Chapter 3 Programming Examples
This chapter illustrates how to control the MSO5000 series digital oscilloscope by programming in Excel,
LabVIEW, Visual Basic, and Visual C++.
Format Conventions in this Manual:
1. 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
The menu items are denoted by the format of "Menu Word (Bold) + Character Shading". For example,
System denotes the "System" menu item under Utility.
3. Operation Procedures:
"" denotes the next step of operation. For example, Utility System denotes that first press
Utility, and then press the System softkey.
Content Conventions in this Manual:
MSO5000 series includes the following models. Unless otherwise specified, this manual takes MSO5354 as
an example to illustrate the functions and operation methods of MSO5000 series.
II MSO5000 Programming Guide
Contents RIGOL
Contents
Guaranty and Declaration ......................................................................................................... I
Document Overview ................................................................................................................. II
LabVIEW Programming Example ................................................................................................ 3-7
Visual Basic Programming Example .......................................................................................... 3-11
Visual C++ Programming Example ........................................................................................... 3-13
MSO5000 Programming GuideIX
Chapter 1 SCPI Command Overview RIGOL
Chapter 1 SCPI Command Overview
SCPI (Standard Commands for Programmable Instruments) is a standardized instrument programming
language that is built upon the existing standard IEEE 488.1 and IEEE 488.2 and conforms to various
standards, such as the floating point operation rule in IEEE 754 standard, ISO 646 7-bit coded character set
for information interchange (equivalent to ASCII programming). The SCPI commands provide a hierarchical
tree structure, and consist of multiple subsystems. Each command subsystem consists of one root keyword
and one or more sub-keywords.
Contents in this chapter:
Syntax
Symbol Description
Parameter Type
Command Abbreviation
MSO5000 Programming Guide1-1
RIGOLChapter 1 SCPI Command Overview
Syntax
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 quotation mark indicates
querying a certain function. The keywords of the command and the first parameter is separated by a space.
For example,
:ACQuire:TYPE <type>
:ACQuire:TYPE?
ACQuire is the root keyword of the command, and TYPE is the second-level keyword. The command line
starts with a colon, and different levels of keywords are also separated by colons. <type> indicates a
settable parameter. The command ending with a quotation mark indicates querying a certain function. The
command keywords ":ACQuire:TYPE" and the parameter <type> are separated by a space.
In some commands with parameters, "," is often used to separate multiple parameters. For example,
:SYSTem:DATE <year>,<month>,<day>.
Symbol Description
The following symbols are not sent with the commands.
1.Braces { }
The contents enclosed in the braces are parameter options, Parameters are usually separated by the
vertical bar "|". When using the command, you must select one of the parameters.
2.Vertical Bar |
The vertical bar is used to separate multiple parameters. When using the command, you must select
one of the parameters.
3.Square Brackets [ ]
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.
Parameter Type
1. Bool
The parameter can be set to ON, OFF, 1, or 0. For example,
:SYSTem:BEEPer <bool>
:SYSTem:BEEPer?
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, or PEAK.
The query returns NORM, AVER, or PEAK.
1-2 MSO5000 Programming Guide
Chapter 1 SCPI Command Overview RIGOL
3. Integer
Unless otherwise specified, the parameter can be any integer (NR1 format) within the effective value
range.
Note: Do not set the parameter to a decimal, otherwise, errors will occur.
For example,
:DISPlay:GBRightness <brightness>
:DISPlay:GBRightness?
Wherein, <brightness> can be set to an integer ranging from 1 to 100.
The query returns an integer ranging from 1 to 100.
4. Real
The parameter can be any real number within the effective value range, and this command accepts
parameter input in decimal (NR2 format) and scientific notation (NR3 format). For example,
:TRIGger:TIMeout:TIME <time>
:TRIGger:TIMeout:TIME?
Wherein, <time> can be set to any real number ranging from 1.6E-8 (i.g. 16 ns) to 1E+1 (i.g. 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,
:SYSTem:OPTion:INSTall <license>
Wherein, <license> can be set to
MSO5000-PWR@3AEBC07E6C31F82B78A1C401DC2E3AC2CC9431B57F60D1E1CB712F8682C93609A6
05F8577BFDE920373062BE226289A27C134E2C91BF80CB00F8011AC181FD40.
Command Abbreviation
All the commands are case-insensitive. They can all be in upper case or in lower case. If abbreviation is
used, you must input all the capital letters in the command. For example,
:DISPlay:GBRightness?
can be abbreviated as
:DISP:GBR?
MSO5000 Programming Guide1-3
Chapter 2 Command System RIGOL
Chapter 2 Command System
This chapter introduces the syntax, functions, parameters, and usage of each MSO5000 command.
Enables the waveform auto setting function. The oscilloscope will automatically adjust the
vertical scale, horizontal time base, and trigger mode according to the input signal to
realize optimal waveform display. This command functions the same as the AUTO key on
the front panel.
Remarks
When the AUTO function is disabled, this command is invalid. For details, refer
to :SYSTem:AUTOscale.
When the pass/fail test is enabled, the AUTO function runs normally, but the pass/fail
test function is forced to be disabled.
When the waveform recording function is enabled or the recorded waveforms are
played back, the AUTO function runs normally, but the recording or playing function is
forced to be disabled.
Syntax
:CLEar
Description
Clears all the waveforms on the screen. This command functions the same as the CLEAR
key on the front panel.
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
When the waveform recording function is enabled, the RUN/STOP key on the front panel
is disabled.
Note:
1. Unless otherwise specified, the descriptions in this manual all take MSO5354 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
:CLEar
:RUN
:STOP
2-2 MSO5000 Programming Guide
Chapter 2 Command System RIGOL
Syntax
:SINGle
Description
Sets the trigger mode of the oscilloscope to "Single". This command functions the same as
either of the following two operation: press SINGLE on the front panel; or send
the :TRIGger:SWEep SINGle command.
Remarks
In the single trigger mode, the oscilloscope performs a single trigger when the trigger
conditions are met and then it stops.
When the waveform recording function is enabled or the recorded waveforms are
played back, this command is invalid.
For the single trigger, you can use the :TFORce command to generate one trigger by
force.
Syntax
:TFORce
Description
Generates a trigger signal forcefully. This command is only applicable to the normal and
single trigger modes (refer to the :TRIGger:SWEep command). This command functions
the same as the FORCE key in the trigger control area of the front panel.
:SINGle
:TFORce
MSO5000 Programming Guide2-3
RIGOLChapter 2 Command System
Syntax
:ACQuire:AVERages <count>
:ACQuire:AVERages?
Description
Sets or queries the number of averages in the average acquisition mode.
Parameter
Name
Type
Range
Default
<count>
Integer
2n (n is an integer, and its range is from 1 to 16)
2
Remarks
You can send 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
waveform to the waveform changes.
Return
Format
The query returns an integer ranging from 2 to 65536.
Example
:ACQuire:AVERages 128 /*Sets the average times to 128.*/
:ACQuire:AVERages? /*The query returns 128.*/
Syntax
:ACQuire:MDEPth <mdep>
:ACQuire:MDEPth?
Description
Sets or queries the memory depth of the oscilloscope (i.g. the number of waveform
points that can be stored through the sampling in a single trigger). The default unit is pts.
Parameter
Name
Type
Range
Default
<mdep>
Discrete
{AUTO|1k|10k|100k|1M|10M|25M|50M|100M|
200M}
AUTO
Remarks
When "AUTO" is selected, the oscilloscope selects the memory depth automatically
according to the current sample rate.
:ACQuire Commands
The :ACQuire commands are used to set the memory depth of the oscilloscope, the acquisition mode, the
average times, as well as query the current sample rate.
omitted. You can refer to the complete introductions of the commands in the body of the text based on the keywords
listed here.
: In the "Command List" in this manual, the query commands and the parameters in the setting commands are
:ACQuire:AVERages
[1]
:
:ACQuire:MDEPth
2-4 MSO5000 Programming Guide
Chapter 2 Command System RIGOL
The maximum memory depth for the single channel is 200 M; the maximum memory
depth for the half-channel is 100 M; and the maximum memory depth for the
all-channel is 50 M.
Return
Format
The query returns AUTO, 1k, 10k, 100k, 1M, 10M, 25M, 50M, 100M or 200M.
Example
:ACQuire:MDEPth 1M /*Sets the memory depth to 1M.*/
:ACQuire:MDEPth? /*The query returns 1M.*/
Syntax
:ACQuire:TYPE <type>
:ACQuire:TYPE?
Description
Sets or queries the acquisition mode of the oscilloscope.
Parameter
Name
Type
Range
Default
<type>
Discrete
{NORMal|AVERages|PEAK|}
NORMal
Remarks
NORMal: In this mode, the oscilloscope samples the signal at a specified fixed time
interval to rebuild the waveform. For most of the waveforms, using this mode can
produce the optimal display effects.
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. Greater number of averages can lower the noise and increase the vertical
resolution; while at the same time, it will slow the response of the displayed
waveform to the waveform changes.
PEAK: indicates the peak detection. In this mode, 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. In this mode, signal
aliasing can be prevented, but the noise displayed would be larger.
Return
Format
The query returns NORM, AVER, or PEAK.
Example
:ACQuire:TYPE AVERages /*Sets the acquisition mode to AVERages.*/
:ACQuire:TYPE? /*The query returns AVER.*/
Syntax
:ACQuire:SRATe?
Description
Queries the current sample rate. The default unit is Sa/s.
Remarks
Sample rate indicates the frequency of the signal sampling, i.g. the number of
waveform points sampled per second.
The formula below describes the relationship among sample rate, memory depth, and
waveform length:
memory depth = sample rate x waveform length
Wherein, the memory depth is set by the :ACQuire:MDEPth command. The waveform
length is obtained by multiplying the horizontal time base (set by
the :TIMebase[:MAIN]:SCALe command) by the number of grids in the horizontal
direction. For MSO5000, the number of grids in the horizontal direction is 10.
Return
The query returns the sample rate in scientific notation.
Enables or disables the specified decoding bus; or queries the on/off display status of
the specified decoding bus.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
<bool>
Bool
{{1|ON}|{0|OFF}}
0|OFF
Return
Format
The query returns 1 or 0.
Example
:BUS1:DISPlay ON /*Enables the decoding bus.*/
:BUS1:DISPlay? /*The query returns 1.*/
Syntax
:BUS<n>:FORMat <fmt>
:BUS<n>:FORMat?
Description
Sets or queries the display format of decoding data of the specified decoding bus.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
<fmt>
Discrete
{HEX|ASCii|DEC|BIN}
ASCii
Remarks
HEX indicates Hexadecimal; DEC indicates Decimal; BIN indicates Binary.
Return
Format
The query returns HEX, ASC, DEC, or BIN.
Example
:BUS1:FORMat HEX /*Sets the display format of the bus to HEX.*/
:BUS1:FORMat? /*The query returns HEX.*/
Syntax
:BUS<n>:EVENt <bool>
:BUS<n>:EVENt?
Description
Enables or disables the event table of the specified decoding bus; or queries the on/off
status of the specified decoding bus event table.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
<bool>
Bool
{{1|ON}|{0|OFF}}
0|OFF
Remarks
Before using the command, enable the specified decoding bus.
Return
Format
The query returns 1 or 0.
Example
:BUS1:EVENt ON /*Enables the event table of the specified decoding bus.*/
:BUS1:EVENt? /*The query returns 1.*/
:BUS<n>:DISPlay
:BUS<n>:FORMat
:BUS<n>:EVENt
2-8 MSO5000 Programming Guide
Chapter 2 Command System RIGOL
Syntax
:BUS<n>:EVENt:FORMat <format>
:BUS<n>:EVENt:FORMat?
Description
Sets or queries the display format of the specified decoding bus event table.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
<format>
Discrete
{HEX|ASCii|DEC|BIN}
ASCii
Remarks
HEX indicates Hexadecimal; DEC indicates Decimal; BIN indicates Binary.
Return
Format
The query returns HEX, ASC, DEC, or BIN.
Example
:BUS1:EVENt:FORMat HEX
/*Sets the display format of the specified decoding bus event table to HEX.*/
:BUS1:EVENt:FORMat? /*The query returns HEX.*/
Syntax
:BUS<n>:EVENt:VIEW <packet>
:BUS<n>:EVENt:VIEW?
Description
Sets or queries the data page of the specified decoding bus event table.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
<packet>
Discrete
{PACKets|DETails|PAYLoad}
PACKets
Remarks
PACKets: displays time, data, and error information in the specified event table.
DETails: displays the detailed data of the specified row in the event table.
PAYLoad: displays all the data of the specified column in the event table.
When different views are selected, the export format of the data list will be
changed accordingly.
Return
Format
The query returns PACK, DET, or PAYL.
Example
:BUS1:EVENt:VIEW DETails /*Sets the data page of the decoding bus event table
to DETails.*/
:BUS1:EVENt:VIEW? /*The query returns DET.*/
:BUS<n>:EVENt:FORMat
:BUS<n>:EVENt:VIEW
MSO5000 Programming Guide2-9
RIGOLChapter 2 Command System
Syntax
:BUS<n>:LABel <bool>
:BUS<n>:LABel?
Description
Enables or disables the label of the specified decoding bus; or queries the on/off status
of the label of the specified decoding bus.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
<bool>
Bool
{{1|ON}|{0|OFF}}
0|OFF
Remarks
Before using the command, enable the specified decoding bus.
Return
Format
The query returns 1 or 0.
Example
:BUS1:LABel ON /*Enables the label of the specified decoding bus.*/
:BUS1:LABel? /*The query returns 1.*/
Syntax
:BUS<n>:DATA?
Description
Reads the data in the decoding event table.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
Return
Format
Returns the data in the decoding event table with the following formats.
#9000000072PAL,
Time,Data,,
-1us,0,,
-990.3ns,1,,
-503.2ns,0,,
9.2ns,1,,
497.2ns,0,
Wherein, "#9000000072" is the 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. "PAL" indicates the decoding type. The
available decoding type can also be RS232, I2C, SPI, or CAN. The data are separated
by commas, and will automatically go to the next line according to the line length
limit in the decoding list. The data value is related to the numeral system that you
have set.
Note: You can save all the data (except TMC data block header and decoding type,
e.g. #9000000072PAL) as the "*.csv" file and view the data in the form of a
list.
:BUS<n>:LABel
:BUS<n>:DATA?
2-10 MSO5000 Programming Guide
Chapter 2 Command System RIGOL
Syntax
:BUS<n>:EEXPort
Description
Exports the decoding information in the specified decoding bus event table in CSV form.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
Example
:BUS1:EEXPort C:/123.csv
/*Exports the decoding information in the bus event table to the local Disk C,
with the filename 123.csv.*/
Syntax
:BUS<n>:POSition <pos>
:BUS<n>:POSition?
Description
Sets or queries the vertical position of the bus on the screen.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
<pos>
Integer
-167 to +217
Related to the
channel offset
Return
Format
The query returns an integer ranging from -167 to +217.
Example
:BUS1:POSition 200 /*Sets the vertical position of the bus to 200.*/
:BUS1:POSition? /*The query returns 200.*/
Syntax
:BUS<n>:THReshold <value>,<type>
:BUS<n>:THReshold? <type>
Description
Sets or queries the threshold of the specified decoding source.
For VerticalScale, refer to the :CHANnel<n>:SCALe command. For OFFSet, refer to
the :CHANnel<n>:OFFSet command.
For RS232 decoding, only when the Rx source is enabled, can you set the threshold.
For SPI decoding, only when the MOSI source is enabled, can you set the threshold.
Return
Format
The query returns the threshold of the specified decoding source in scientific notation.
Example
:BUS1:THReshold 2.4,PAL /*Sets the threshold of the PAL decoding source to 2.4 V.*/
:BUS1:THReshold? PAL /*The query returns 2.400000E0.*/
:BUS<n>:EEXPort
:BUS<n>:POSition
:BUS<n>:THReshold
MSO5000 Programming Guide2-11
RIGOLChapter 2 Command System
Syntax
:BUS<n>:PARallel:CLK <source>
:BUS<n>:PARallel:CLK?
Description
Sets or queries the clock source of the Parallel decoding.
:BUS1:RS232:RX D0 /*Sets the RX channel source of RS232 decoding to D0.*/
:BUS1:RS232:RX? /*The query returns D0.*/
Syntax
:BUS<n>:RS232:POLarity <pol>
:BUS<n>:RS232:POLarity?
Description
Sets or queries the polarity of RS232 decoding.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
<pol>
Discrete
{POSitive|NEGative}
NEGative
Remarks
The RS232 standard uses "Negative Logic", i.g. high level is Logic 0 and low level is
Logic 1. Therefore, when the parameter <pol> is set to NEGative, it indicates that
the polarity is set to negative logic, i.g. Normal polarity. When the parameter <pol>
is set to POSitive, it indicates that the polarity is set to positive logic, i.g. Inverted
polarity.
In the RS232 decoding, the start bit of data packet indicates when to start data
transmission. It is determined by the polarity. When <pol> is set to "POSitive", the
start bit is 0; when "NEGative", the start bit is 1.
Return
Format
The query returns POS or NEG.
Example
:BUS1:RS232:POLarity POSitive /*Sets the polarity of RS232 decoding to POSitive.*/
:BUS1:RS232:POLarity? /*The query returns POS.*/
Syntax
:BUS<n>:RS232:ENDian <endian>
:BUS<n>:RS232:ENDian?
Description
Sets or queries the endian of data transmission in RS232 decoding.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
<endian>
Discrete
{MSB|LSB}
LSB
Remarks
LSB: indicates Least Significant Bit transmission sequence, i.g. the lowest bit of the
data is transmitted first.
MSB: indicates Most Significant Bit transmission sequence, i.g. the highest bit of the
data is transmitted first.
Return
Format
The query returns LSB or MSB.
Example
:BUS1:RS232:ENDian MSB /*Sets the transmission order of RS232 decoding to MSB.*/
:BUS1:RS232:ENDian? /*The query returns MSB.*/
:BUS<n>:RS232:POLarity
:BUS<n>:RS232:ENDian
MSO5000 Programming Guide2-17
RIGOLChapter 2 Command System
Syntax
:BUS<n>:RS232:BAUD <baud>
:BUS<n>:RS232:BAUD?
Description
Sets or queries the baud rate of data transmission in RS232 decoding. The default unit
is bps.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
<baud>
Integer
1 bps to 20 Mbps
9600 bps
Remarks
If the baud rate is set to a value with "M", then "A" should be added at the end of the
value. For example, if you send 5 M, you need to send 5 MA.
Return
Format
The query returns an integer ranging from 1 bps to 20 Mbps.
Example
:BUS1:RS232:BAUD 4800 /*Sets the baud rate of data transmission in RS232
decoding to 4800 bps.*/
:BUS1:RS232:BAUD? /*The query returns 4800.*/
Syntax
:BUS<n>:RS232:DBITs <bits>
:BUS<n>:RS232:DBITs?
Description
Sets or queries the data width of RS232 decoding.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
<bits>
Discrete
{5|6|7|8|9}
8
Return
Format
The query returns 5, 6, 7, 8, or 9.
Example
:BUS1:RS232:DBITs 7 /*Sets the data width of RS232 decoding to 7.*/
:BUS1:RS232:DBITs? /*The query returns 7.*/
Syntax
:BUS<n>:RS232:SBITs <stop bits>
:BUS<n>:RS232:SBITs?
Description
Sets or queries the stop bits of each frame of data in RS232 decoding.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
<stop bits>
Discrete
{1|1.5|2}
1
Return
Format
The query returns 1, 1.5, or 2.
Example
:BUS1:RS232:SBITs 2 /*Sets the stop bits of RS232 decoding to 2.*/
:BUS1:RS232:SBITs? /*The query returns 2.*/
:BUS<n>:RS232:BAUD
:BUS<n>:RS232:DBITs
:BUS<n>:RS232:SBITs
2-18 MSO5000 Programming Guide
Chapter 2 Command System RIGOL
Syntax
:BUS<n>:RS232:PARity <parity>
:BUS<n>:RS232:PARity?
Description
Sets or queries the odd-even check mode of data transmission in RS232 decoding.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
<parity>
Discrete
{NONE|ODD|EVEN}
NONE
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, when 0x55 (01010101) is sent, "1"
should 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, when 0x55 (01010101) is sent,
"0" should be added to the check bit.
Return
Format
The query returns NONE, ODD, or EVEN.
Example
:BUS1:RS232:PARity ODD /*Sets the odd-even check mode of data
transmission in RS232 decoding to ODD.*/
:BUS1:RS232:PARity? /*The query returns ODD.*/
Syntax
:BUS<n>:RS232:PACKet <bool>
:BUS<n>:RS232:PACKet?
Description
Enables or disables the packet end during data transmission; or queries the status of
packet end during data transmission.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
<bool>
Bool
{{1|ON}|{0|OFF}}
0|OFF
Remarks
When enabled, several data blocks will be combined based on the packet end.
Return
Format
The query returns 1 or 0.
Example
:BUS1:RS232:PACKet ON /*Enables the packet end during data transmission.*/
:BUS1:RS232:PACKet? /*The query returns 1.*/
:BUS<n>:RS232:PARity
:BUS<n>:RS232:PACKet
MSO5000 Programming Guide2-19
RIGOLChapter 2 Command System
Syntax
:BUS<n>:RS232:PEND <package end>
:BUS<n>:RS232:PEND?
Description
Sets or queries the packet end type during data transmission.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
<package end>
Discrete
{NULL|LF|CR|SP}
NULL
Remarks
The parameters are represented in hexadecimal as follows:
NULL: 00
LF: 0A
CR: 0D
SP: 20
Return
Format
The query returns NULL, LF, CR, or SP.
Example
:BUS1:RS232:PEND LF /*Sets the packet end to 0A.*/
:BUS1:RS232:PEND? /*The query returns LF.*/
:BUS1:CAN:SOURce D0 /*Sets the source channel of CAN decoding to D0.*/
:BUS1:CAN:SOURce? /*The query returns D0.*/
Syntax
:BUS<n>:CAN:STYPe <stype>
:BUS<n>:CAN:STYPe?
Description
Sets or queries the signal type of CAN decoding.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
<stype>
Discrete
{TX|RX|CANH|CANL|DIFFerential}
RX
Remarks
TX: indicates the Transmit signal from the CAN bus transceiver.
RX: indicates the Receive 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. Connect the differential probe's positive lead
to the CAN_H bus signal and connect the negative lead to the CAN_L bus signal.
Return
Format
The query returns TX, RX, CANH, CANL, or DIFF.
Example
:BUS1:CAN:STYPe TX /*Sets the signal type of CAN decoding to TX.*/
:BUS1:CAN:STYPe? /*The query returns TX.*/
:BUS<n>:CAN (Option)
The :BUS<n>:CAN commands are used to set relevant parameters for CAN decoding.
:BUS1:IIS:SOURce:DATA D0 /*Sets the data source of the I2S decoding to D0.*/
:BUS1:IIS:SOURce:DATA? /*The query returns D0.*/
:BUS<n>:IIS (Option)
The :BUS<n>:IIC commands are used to set relevant parameters for I2S decoding. The commands are
only available for the MSO5XX4 model or the model installed with the MSO5000-4CH option.
Sets or queries the alignment mode of the I2S decoding.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
<align>
Discrete
{IIS|RJ|LJ}
IIS
Remarks
IIS: first sends MSB of each sample data and then sends LSB.
RJ: data transmission (MSB first) is right-justified to the WS transition.
LJ: data transmission (MSB first) begins at the edge of the WS transition.
Return
Format
The query returns IIS, RJ, or LJ.
Example
:BUS1:IIS:ALIGnment RJ /*Sets the alignment mode of the I2S decoding to RJ.*/
:BUS1:IIS:ALIGnment? /*The query returns RJ.*/
Syntax
:BUS<n>:IIS:CLOCk:SLOPe <slope>
:BUS<n>:IIS:CLOCk:SLOPe?
Description
Sets or queries the clock edge type of I2S decoding.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
<slope>
Discrete
{NEGative|POSitive}
POSitive
Return
Format
The query returns POS or NEG.
Example
:BUS1:IIS:CLOCk:SLOPe NEGative /*Sets the clock edge of I2S decoding to
NEGative.*/
:BUS1:IIS:CLOCk:SLOPe? /*The query returns NEG.*/
:BUS<n>:IIS:SOURce:WSELect
:BUS<n>:IIS:ALIGnment
:BUS<n>:IIS:CLOCk:SLOPe
2-36 MSO5000 Programming Guide
Chapter 2 Command System RIGOL
Syntax
:BUS<n>:IIS:RWIDth <val>
:BUS<n>:IIS:RWIDth?
Description
Sets or queries the word size of the I2S decoding.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
<val>
Integer
4 to 32
8
Return
Format
The query returns an integer ranging from 4 to 32.
Example
:BUS1:IIS:RWIDth 5 /*Sets the word size of I2S decoding to 5.*/
:BUS1:IIS:RWIDth? /*The query returns 5.*/
:BUS<n>:IIS:RWIDth
MSO5000 Programming Guide2-37
RIGOLChapter 2 Command System
Syntax
:BUS<n>:M1553:SOURce <source>
:BUS<n>:M1553:SOURce?
Description
Sets or queries the source of the M1553 decoding.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
<source>
Discrete
{CHANnel1|CHANnel2|CHANnel3|CHANnel4}
CHANnel1
Return
Format
The query returns CHAN1, CHAN2, CHAN3, or CHAN4.
Example
:BUS1:M1553:SOURce CHANnel2
/* Sets the source of the M1553 decoding to CHANnel2.*/
:BUS1:M1553:SOURce?
/*The query returns CHAN2.*/
:BUS<n>:M1553 (Option)
The :BUS<n>:M1553 commands are used to set relevant parameters for the M1553 decoding.
Command List:
:BUS<n>:M1553:SOURce
:BUS<n>:M1553:SOURce
2-38 MSO5000 Programming Guide
Chapter 2 Command System RIGOL
Syntax
:CHANnel<n>:BWLimit <type>
:CHANnel<n>:BWLimit?
Description
Sets or queries the bandwidth limit of the specified channel.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
1
<type>
Discrete
Refer to Remarks
OFF
Remarks
The range of <type> is related to the instrument model.
MSO5354: {20M|100M|200M|OFF}
MSO5204: {20M|100M|OFF}
MSO5072/MSO5074/MSO5102/MSO5104: {20M|OFF}
20M, 100M, or 200M: When you enable the bandwidth limit and limit it to 20 MHz,
100 MHz, or 200 MHz, the high frequency components found in the signal under test
that are greater than 20 MHz, 100 MHz, or 200 MHz are attenuated.
OFF: disables the bandwidth limit function. The high-frequency components in the
The :CHANnel<n> commands are used to set or query the bandwidth limit, coupling, vertical scale, vertical
offset, and other vertical system parameters of the analog channel.
Sets or queries the coupling mode of the specified channel.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
1
<coupling>
Discrete
{AC|DC}
DC
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.
Return
Format
The query returns AC or DC.
Example
:CHANnel1:COUPling AC /*Selects the AC coupling mode.*/
:CHANnel1:COUPling? /*The query returns AC.*/
Syntax
:CHANnel<n>:DISPlay <bool>
:CHANnel<n>:DISPlay?
Description
Turns on or off the specified channel; or queries the on/off status of the specified
channel.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
1
<bool>
Bool
{{1|ON}|{0|OFF}}
0|OFF
Return
Format
The query returns 1 or 0.
Example
:CHANnel1:DISPlay ON /*Enables CH1.*/
:CHANnel1:DISPlay? /*The query returns 1.*/
Syntax
:CHANnel<n>:INVert <bool>
:CHANnel<n>:INVert?
Description
Turns on or off the waveform invert for the specified channel; or queries the on/off
status of the waveform invert for the specified channel.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
1
<bool>
Bool
{{1|ON}|{0|OFF}}
0|OFF
Remarks
When the waveform invert is turned off, the waveform is displayed normally; when
the waveform invert is turned on, the voltage values of the displayed waveform are
inverted.
Return Format
The query returns 1 or 0.
:CHANnel<n>:COUPling
:CHANnel<n>:DISPlay
:CHANnel<n>:INVert
2-40 MSO5000 Programming Guide
Chapter 2 Command System RIGOL
Example
:CHANnel1:INVert ON /*Enables the waveform invert for CH1.*/
:CHANnel1:INVert? /*The query returns 1.*/
Syntax
:CHANnel<n>:OFFSet <offset>
:CHANnel<n>:OFFSet?
Description
Sets or queries the vertical offset of the specified channel. The default unit is V.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
1
<offset>
Real
± 1 V (1 mV/div to 50 mV/div).
± 30 V (51 mV/div to 260 mV/div)
± 100 V (265 mV/div to 1 V/div)
0 V
Return
Format
The query returns the vertical offset in scientific notation.
Example
:CHANnel1:OFFSet 0.01 /*Sets the vertical offset of CH1 to 10 mV.*/
:CHANnel1:OFFSet? /*The query returns 1E-2.*/
Syntax
:CHANnel<n>:TCALibrate <val>
:CHANnel<n>:TCALibrate?
Description
Sets or queries the delay calibration time (used to calibrate the zero offset of the
corresponding channel) of the specified channel. The default unit is s.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
1
<val>
Real
-100 ns to 100 ns
0 s
Remarks
Set the parameter <val> to a specific value at a specified step. If the parameter value
is not within the settable range, select the value that is closest to the range
automatically. In different horizontal time bases, the step values for the parameter are
different.
When the horizontal time base is greater than 10 μs, the parameter <val> cannot be
set.
Return
Format
The query returns the delay calibration time in scientific notation.
Example
:CHANnel1:TCALibrate 0.00000002 /*Sets the delay calibration time to 20 ns.*/
:CHANnel1:TCALibrate? /*The query returns 2.000000E-8.*/
:CHANnel<n>:OFFSet
:CHANnel<n>:TCALibrate
MSO5000 Programming Guide2-41
RIGOLChapter 2 Command System
Syntax
:CHANnel<n>:SCALe <scale>
:CHANnel<n>:SCALe?
Description
Sets or queries the vertical scale of the specified channel. The default unit is V.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
1
<scale>
Real
The input impedance is 1 MΩ and the
probe ratio is 1X: 1 mV to 10 V
100 mV
Remarks
You can use the :CHANnel<n>:VERNier command to enable or disable the fine
adjustment setting for the vertical scale of the specif ied channel. By default, the fine
adjustment is Off. At this time, you can set the vertical scale at 1-2-5 step, i.g. 10 mV, 20
mV, 50 mV…100 V. When the fine adjustment is enabled, you can further adjust the
vertical scale within a relatively smaller range to improve 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 amplitude of waveform display to view signal
details.
Return
Format
The query returns the vertical scale in scientific notation.
Example
:CHANnel1:SCALe 1 /*Sets the vertical scale of CH1 to 1 V.*/
:CHANnel1:SCALe? /*The query returns 1.*/
Syntax
:CHANnel<n>:PROBe <atten>
:CHANnel<n>:PROBe?
Description
Sets or queries the probe ratio of the specified channel.
:CHANnel1:PROBe 10 /*Sets the probe ratio of CH1 to 10X.*/
:CHANnel1:PROBe? /*The query returns 10.*/
:CHANnel<n>:SCALe
:CHANnel<n>:PROBe
2-42 MSO5000 Programming Guide
Chapter 2 Command System RIGOL
Syntax
:CHANnel<n>:UNITs <units>
:CHANnel<n>:UNITs?
Description
Sets or queries the amplitude display unit of the specified analog channel.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
1
<units>
Discrete
{VOLTage|WATT|AMPere|UNKNown}
VOLTage
Return
Format
The query returns VOLT, WATT, AMP, or UNKN.
Example
:CHANnel1:UNITs VOLTage /*Sets the amplitude display unit of CH1 to VOLTage.*/
:CHANnel1:UNITs? /*The query returns VOLT.*/
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 analog channel.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
1
<bool>
Bool
{{1|ON}|{0|OFF}}
0|OFF
Remarks
By default, the fine adjustment is Off. At this time, you can set the vertical scale at 1-2-5
step, i.g. 10 mV, 20 mV, 50 mV, 100 mV…100 V. When the fine adjustment is enabled, you
can further adjust the vertical scale within a relatively smaller range to improve 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 amplitude of waveform display to view
signal details.
Return
Format
The query returns 1 or 0.
Example
:CHANnel1:VERNier ON /*Enables the fine adjustment of the vertical scale of CH1.*/
:CHANnel1:VERNier? /*The query returns 1.*/
:CHANnel<n>:UNITs
:CHANnel<n>:VERNier
MSO5000 Programming Guide2-43
RIGOLChapter 2 Command System
Syntax
:COUNter:CURRent?
Description
Queries the measurement value of the frequency counter.
Return
Format
The query returns 1.000006E+3.
Syntax
:COUNter:ENABle <bool>
:COUNter:ENABle?
Description
Enables or disables the frequency counter; or queries the on/off status of
the frequency counter.
Parameter
Name
Type
Range
Default
<bool>
Bool
{{1|ON}|{0|OFF}}
0|OFF
Return
Format
The query returns 1 or 0.
Example
:COUNter:ENABle ON /*Enables the frequency counter.*/
:COUNter:ENABle? /*The query returns 1.*/
Syntax
:COUNter:SOURce <source>
:COUNter:SOURce?
Description
Sets or queries the source of the frequency counter.
:COUNter:SOURce CHANnel2 /*Sets the source of the frequency
counter to CHANnel2.*/
:COUNter:SOURce? /*The query returns CHAN2.*/
Syntax
:COUNter:MODE <mode>
:COUNter:MODE?
Description
Sets or queries the mode of the frequency counter.
Parameter
Name
Type
Range
Default
<mode>
Discrete
{FREQuency|PERiod|TOTalize}
FREQuency
Return
Format
The query returns FREQ, PER, or TOT.
Example
:COUNter:MODE PERiod /*Sets the mode of the frequency counter to
PERiod.*/
:COUNter:MODE? /*The query returns PER.*/
Syntax
:COUNter:NDIGits <val>
:COUNter:NDIGits?
Description
Sets or queries the resolution of the frequency counter.
Parameter
Name
Type
Range
Default
<val>
Integer
3-6
5
Remarks
The resolution setting is only available for "Period" and "Frequency", and
unavailable for "Totalize".
Return
Format
The query returns an integer ranging from 3 to 6.
Example
:COUNter:NDIGits 4 /*Sets the resolution of the frequency
counter to 4.*/
:COUNter:NDIGits? /*The query returns 4.*/
Syntax
:COUNter:TOTalize:ENABle <bool>
:COUNter:TOTalize:ENABle?
Description
Enables or disables the statistical function of the frequency counter; or
queries the on/off status of the statistical function of the frequency counter.
Parameter
Name
Type
Range
Default
<bool>
Bool
{{1|ON}|{0|OFF}}
0|OFF
Remarks
Not available for "Period" and "Frequency".
Return
Format
The query returns 1 or 0.
:COUNter:MODE
:COUNter:NDIGits
:COUNter:TOTalize:ENABle
MSO5000 Programming Guide2-45
RIGOLChapter 2 Command System
Example
:COUNter:TOTalize:ENABle ON /*Enables the statistical function of the
Available when "Totalize" is selected under "Measure".
:COUNter:TOTalize:CLEar
2-46 MSO5000 Programming Guide
Chapter 2 Command System RIGOL
Syntax
:CURSor:MODE <mode>
:CURSor:MODE?
Description
Sets or queries the mode of the cursor measurement.
Parameter
Name
Type
Range
Default
<mode>
Discrete
{OFF|MANual|TRACk|XY}
OFF
Remarks
OFF: disables the cursor measurement function.
MANual: enables the manual mode of cursor measurement.
TRACk: enables the track cursor mode.
XY: enables the XY cursor measurement mode. This mode is valid when you select
Sets or queries the cursor type in the manual mode of cursor measurement.
Parameter
Name
Type
Range
Default
<type>
Discrete
{TIME|AMPLitude}
TIME
Remarks
TIME: indicates X cursor, which is often used to measure the time parameters.
AMPLitude: indicates Y cursor, which is often used to measure the voltage
parameters.
Return
Format
The query returns TIME or AMPL.
Example
:CURSor:MANual:TYPE AMPLitude /*Sets the cursor type to AMPLitude.*/
:CURSor:MANual:TYPE? /*The query returns AMPL.*/
Only the currently enabled channel can be selected as the channel source.
When LA is selected, the cursor type cannot be set to Y (:CURSor:MANual:TYPE).
Return
Format
The query returns CHAN1, CHAN2, CHAN3, CHAN4, MATH1, MATH2, MATH3, MATH4,
LA, or NONE.
Example
:CURSor:MANual:SOURce CHANnel2 /*Sets the channel source to CHANnel2.*/
:CURSor:MANual:SOURce? /*The query returns CHAN2.*/
Syntax
:CURSor:MANual:TUNit <unit>
:CURSor:MANual:TUNit?
Description
Sets or queries the horizontal unit in the manual mode of cursor measurement.
Parameter
Name
Type
Range
Default
<unit>
Discrete
{SECond|HZ|DEGRee|PERCent}
SECond
Remarks
SECond: in the measurement results, AX, BX, and △ X are expressed in "s"; 1/△X in
"Hz".
HZ: in the measurement results, AX, BX, and △ X are expressed in "Hz"; 1/△X in
"s".
DEGRee: in the measurement results, AX, BX, and △ X are expressed in "°".
PERCent: in the measurement results, AX, BX, and △ X are expressed in
percentage.
Return
Format
The query returns SEC, HZ, DEGR, or PERC.
Example
:CURSor:MANual:TUNit DEGRee /*Sets the horizontal unit to DEGRee.*/
:CURSor:MANual:TUNit? /*The query returns DEGR.*/
:CURSor:MANual:SOURce
:CURSor:MANual:TUNit
MSO5000 Programming Guide2-49
RIGOLChapter 2 Command System
Syntax
:CURSor:MANual:VUNit <unit>
:CURSor:MANual:VUNit?
Description
Sets or queries the vertical unit in the manual mode of cursor measurement.
Parameter
Name
Type
Range
Default
<unit>
Discrete
{SOURce|PERCent}
SOUR
Remarks
SOURce: in the measurement results, the unit of AY, BY, and △ Y are automatically
set to the unit of the current source.
PERCent: in the measurement results, the unit of AY, BY, and △Y are expressed in
percentage.
Return
Format
The query returns SOUR or PERC.
Example
:CURSor:MANual:VUNit PERCent /*Sets AY, BY, and △ Y to be expressed in percentage in
the measurement results.*/
:CURSor:MANual:VUNit? /*The query returns PERC.*/
Syntax
:CURSor:MANual:CAX <ax>
:CURSor:MANual:CAX?
Description
Sets or queries the horizontal position of Cursor A in the manual mode of cursor
measurement.
Parameter
Name
Type
Range
Default
<ax>
Integer
0 to 999
400
Remarks
The horizontal and vertical position of the cursor is defined by the screen pixel coordinate.
The range of the screen pixel coordinate is from (0,0) to (999,479). Wherein, (0,0) is a
location at the upper-left corner of the screen, and (999,479) is a location at the
lower-right corner of the screen. The pixel range in the horizontal direction is from 0 to
999, and the pixel range in the vertical direction is from 0 to 479.
Return
Format
The query returns an integer ranging from 0 to 999.
Example
:CURSor:MANual:CAX 200 /*Sets the horizontal position of Cursor A to 200.*/
:CURSor:MANual:CAX? /*The query returns 200.*/
:CURSor:MANual:VUNit
:CURSor:MANual:CAX
2-50 MSO5000 Programming Guide
Chapter 2 Command System RIGOL
Syntax
:CURSor:MANual:CBX <bx>
:CURSor:MANual:CBX?
Description
Sets or queries the horizontal position of Cursor B in the manual mode of cursor
measurement.
Parameter
Name
Type
Range
Default
<bx>
Integer
0 to 999
600
Remarks
The horizontal and vertical position of the cursor is defined by the screen pixel coordinate.
The range of the screen pixel coordinate is from (0,0) to (999,479). Wherein, (0,0) is a
location at the upper-left corner of the screen, and (999,479) is a location at the
lower-right corner of the screen. The pixel range in the horizontal direction is from 0 to
999, and the pixel range in the vertical direction is from 0 to 479.
Return
Format
The query returns an integer ranging from 0 to 999.
Example
:CURSor:MANual:CBX 200 /*Sets the horizontal position of Cursor B to 200.*/
:CURSor:MANual:CBX? /*The query returns 200.*/
Syntax
:CURSor:MANual:CAY <ay>
:CURSor:MANual:CAY?
Description
Sets or queries the vertical position of Cursor A in the manual mode of cursor
measurement.
Parameter
Name
Type
Range
Default
<ay>
Integer
0 to 479
180
Remarks
The horizontal and vertical position of the cursor is defined by the screen pixel
coordinate. The range of the screen pixel coordinate is from (0,0) to (999,479).
Wherein, (0,0) is a location at the upper-left corner of the screen, and (999,479) is
a location at the lower-right corner of the screen. The pixel range in the horizontal
direction is from 0 to 999, and the pixel range in the vertical direction is from 0 to
479.
When you select LA as the channel source in the manual mode of cursor
measurement, this command is invalid.
Return
Format
The query returns an integer ranging from 0 to 479.
Example
:CURSor:MANual:CAY 200 /*Sets the vertical position of Cursor A to 200.*/
:CURSor:MANual:CAY? /*The query returns 200.*/
:CURSor:MANual:CBX
:CURSor:MANual:CAY
MSO5000 Programming Guide2-51
RIGOLChapter 2 Command System
Syntax
:CURSor:MANual:CBY <by>
:CURSor:MANual:CBY?
Description
Sets or queries the vertical position of Cursor B in the manual mode of cursor
measurement.
Parameter
Name
Type
Range
Default
<by>
Integer
0 to 479
300
Remarks
The horizontal and vertical position of the cursor is defined by the screen pixel
coordinate. The range of the screen pixel coordinate is from (0,0) to (1000,480).
Wherein, (0,0) is a location at the upper-left corner of the screen, and (1000,480)
is a location at the lower-right corner of the screen. The pixel range in the
horizontal direction is from 0 to 1000, and the pixel range in the vertical direction
is from 0 to 480.
When you select LA as the channel source in the manual mode of cursor
measurement, this command is invalid.
Return
Format
The query returns an integer ranging from 0 to 479.
Example
:CURSor:MANual:CBY 200 /*Sets the vertical position of Cursor B to 200.*/
:CURSor:MANual:CBY? /*The query returns 200.*/
Syntax
:CURSor:MANual:AXValue?
Description
Queries the X value at Cursor A in the manual mode of cursor measurement. The unit is
determined by the currently selected horizontal unit.
Return
Format
The query returns the X value at Cursor A in scientific notation.
Syntax
:CURSor:MANual:AYValue?
Description
Queries the Y value at Cursor A in the manual mode of cursor measurement. The unit is
determined by the currently selected vertical unit.
Return
Format
When the channel source is CHANnel1, CHANnel2, CHANnel3, CHANnel4, MATH1,
MATH2, MATH3, or MATH4, the query returns the Y value at Cursor A in scientific
notation.
When the channel source is LA, the query returns a decimal integer that
corresponds to the binary or hex weighted sum of the bits (D15-D0) at Cursor A.
For the disabled channel, the query returns 0 by default.
Syntax
:CURSor:MANual:BXValue?
Description
Queries the X value at Cursor B in the manual mode of cursor measurement. The unit
is determined by the currently selected horizontal unit.
Return Format
The query returns the X value at Cursor B in scientific notation.
:CURSor:MANual:CBY
:CURSor:MANual:AXValue?
:CURSor:MANual:AYValue?
:CURSor:MANual:BXValue?
2-52 MSO5000 Programming Guide
Chapter 2 Command System RIGOL
Syntax
:CURSor:MANual:BYValue?
Description
Queries the Y value at Cursor B in the manual mode of cursor measurement. The unit is
determined by the currently selected vertical unit.
Return
Format
When the channel source is CHANnel1, CHANnel2, CHANnel3, CHANnel4, MATH1,
MATH2, MATH3, or MATH4, the query returns the Y value at Cursor B in scientific
notation.
When the channel source is LA, the query returns a decimal integer that corresponds
to the binary or hex weighted sum of the bits (D15-D0) at Cursor B. For the disabled
channel, the query returns 0 by default.
Queries the difference (△ X) between the X value at Cursor A and the X value at Cursor B
in the manual mode of cursor measurement. The unit is determined by the currently
selected horizontal unit.
Return
Format
The query returns the current difference in scientific notation.
Syntax
:CURSor:MANual:IXDELta?
Description
Queries the reciprocal (1/△ X) of the absolute difference between the X value at Cursor A
and the X value at Cursor B in the manual mode of cursor measurement. The unit is
determined by the currently selected horizontal unit.
Return
Format
The query returns 1/△ X in scientific notation.
Syntax
:CURSor:MANual:YDELta?
Description
Queries the difference (△ Y) between the Y value at Cursor A and the Y value at Cursor B
in the manual mode of cursor measurement. The unit is determined by the currently
selected vertical unit.
Return
Format
The query returns the current difference value in scientific notation.
:CURSor:MANual:BYValue?
:CURSor:MANual:XDELta?
:CURSor:MANual:IXDELta?
:CURSor:MANual:YDELta?
MSO5000 Programming Guide2-53
RIGOLChapter 2 Command System
Syntax
:CURSor:TRACk:SOURce1 <source>
:CURSor:TRACk:SOURce1?
Description
Sets or queries the channel source of Cursor A in the track mode of cursor measurement.
Only the currently enabled channel can be selected as the channel source.
Return
Format
The query returns CHAN1, CHAN2, CHAN3, CHAN4, MATH1, MATH2, MATH3, MATH4, or
NONE.
Example
:CURSor:TRACk:SOURce2 CHANnel2 /*Sets the channel source to CHANnel2.*/
:CURSor:TRACk:SOURce2? /*The query returns CHAN2.*/
Syntax
:CURSor:TRACk:CAX <ax>
:CURSor:TRACk:CAX?
Description
Sets or queries the horizontal position of Cursor A in the track mode of cursor
measurement.
Parameter
Name
Type
Range
Default
<ax>
Integer
0 to 999
400
Remarks
The horizontal and vertical position of the cursor is def ined by the screen pixel
coordinate. The range of the screen pixel coordinate is from (0,0) to (999,479).
Wherein, (0,0) is a location at the upper-left corner of the screen, and (999,479) is a
location at the lower-right corner of the screen. The pixel range in the horizontal
direction is from 0 to 999, and the pixel range in the vertical direction is from 0 to 479.
Return
Format
The query returns an integer ranging from 0 to 999.
Example
:CURSor:TRACk:CAX 200 /*Sets the horizontal position of Cursor A to 200.*/
:CURSor:TRACk:CAX? /*The query returns 200.*/
:CURSor:TRACk:SOURce2
:CURSor:TRACk:CAX
MSO5000 Programming Guide2-55
RIGOLChapter 2 Command System
Syntax
:CURSor:TRACk:CBX <bx>
:CURSor:TRACk:CBX?
Description
Sets or queries the horizontal position of Cursor B in the track mode of cursor
measurement.
Parameter
Name
Type
Range
Default
<bx>
Integer
0 to 999
600
Remarks
The horizontal and vertical position of the cursor is def ined by the screen pixel
coordinate. The range of the screen pixel coordinate is from (0,0) to (999,479).
Wherein, (0,0) is a location at the upper-left corner of the screen, and (999,479) is a
location at the lower-right corner of the screen. The pixel range in the horizontal
direction is from 0 to 999, and the pixel range in the vertical direction is from 0 to 479.
Return
Format
The query returns an integer ranging from 0 to 999.
Example
:CURSor:TRACk:CBX 200 /*Sets the horizontal position of Cursor B to 200.*/
:CURSor:TRACk:CBX? /*The query returns 200.*/
Syntax
:CURSor:TRACk:CAY?
Description
Queries the vertical position of Cursor A in the track mode of cursor measurement.
Remarks
The horizontal and vertical position of the cursor is defined by the screen pixel
coordinate. The range of the screen pixel coordinate is from (0,0) to (999,479).
Wherein, (0,0) is a location at the upper-left corner of the screen, and (999,479) is a
location at the lower-right corner of the screen. The pixel range in the horizontal
direction is from 0 to 999, and the pixel range in the vertical direction is from 0 to 479.
Return
Format
The query returns an integer.
Syntax
:CURSor:TRACk:CBY?
Description
Queries the vertical position of Cursor B in the track mode of cursor measurement.
Remarks
The horizontal and vertical position of the cursor is def ined by the screen pixel
coordinate. The range of the screen pixel coordinate is from (0,0) to (999,479).
Wherein, (0,0) is a location at the upper-left corner of the screen, and (999,479) is a
location at the lower-right corner of the screen. The pixel range in the horizontal
direction is from 0 to 999, and the pixel range in the vertical direction is from 0 to 479.
Return
Format
The query returns an integer.
Example
:CURSor:TRACk:CBY? /*The query returns 200.*/
:CURSor:TRACk:CBX
:CURSor:TRACk:CAY?
:CURSor:TRACk:CBY?
2-56 MSO5000 Programming Guide
Chapter 2 Command System RIGOL
Syntax
:CURSor:TRACk:AXValue?
Description
Queries the X value at Cursor A in the track mode of cursor measurement. The unit is
determined by the amplitude unit selected for the currently corresponding channel.
Return Format
The query returns the X value at Cursor A in scientific notation.
Syntax
:CURSor:TRACk:AYValue?
Description
Queries the Y value at Cursor A in the track mode of cursor measurement. The unit is
the same as that selected for the current channel.
Return Format
The query returns the Y value at Cursor A in scientific notation.
Syntax
:CURSor:TRACk:BXValue?
Description
Queries the X value at Cursor B in the track mode of cursor measurement. The unit is
determined by the amplitude unit selected for the currently corresponding channel.
Return Format
The query returns the X value at Cursor B in scientific notation.
Syntax
:CURSor:TRACk:BYValue?
Description
Queries the Y value at Cursor B in the track mode of cursor measurement. The unit is
the same as that selected for the current channel.
Return Format
The query returns the Y value at Cursor B in scientific notation.
Syntax
:CURSor:TRACk:XDELta?
Description
Queries the difference (△ X) between the X value at Cursor A and the X value at Cursor
B in the track mode of cursor measurement. The default unit is s.
Return Format
The query returns the current difference in scientific notation.
Syntax
:CURSor:TRACk:YDELta?
Description
Queries the difference (△ Y) between the Y value at Cursor A and the Y value at Cursor
B in the track mode of cursor measurement. The unit is the same as that selected for
the current channel.
Return Format
The query returns the current difference in scientific notation.
:CURSor:TRACk:AXValue?
:CURSor:TRACk:AYValue?
:CURSor:TRACk:BXValue?
:CURSor:TRACk:BYValue?
:CURSor:TRACk:XDELta?
:CURSor:TRACk:YDELta?
MSO5000 Programming Guide2-57
RIGOLChapter 2 Command System
Syntax
:CURSor:TRACk:IXDELTA?
Description
Queries the reciprocal (1/△ X) of the absolute difference between the X value at Cursor A
and the X value at Cursor B in the track mode of cursor measurement. The default unit is
Hz.
Return
Format
The query returns 1/△ X in scientific notation.
:CURSor:TRACk:IXDELTA?
2-58 MSO5000 Programming Guide
Chapter 2 Command System RIGOL
Syntax
:CURSor:XY:AX <x>
:CURSor:XY:AX?
Description
Sets or queries the horizontal position of Cursor A in the XY cursor measurement mode.
Parameter
Name
Type
Range
Default
<x>
Integer
0 to 479
100
Remarks
In the XY time base mode, the horizontal and vertical position of the cursor is defined
by the pixel coordinate in the XY display region. The range of the screen pixel
coordinate is from (0,0) to (479,479). Wherein, (0,0) is a location at the upper-right
corner of the screen, and (479,479) is a located the lower-left corner of the screen. The
pixel range in the horizontal and vertical direction is from 0 to 479.
Return
Format
The query returns an integer ranging from 0 to 479.
Example
:CURSor:XY:AX 200 /*Sets the horizontal position of Cursor A to 200.*/
:CURSor:XY:AX? /*The query returns 200.*/
:CURSor:XY
The :CURSor:XY command is only available when the horizontal time base mode is set to XY.
Sets or queries the horizontal position of Cursor B in the XY cursor measurement
mode.
Parameter
Name
Type
Range
Default
<x>
Integer
0 to 479
300
Remarks
In the XY time base mode, the horizontal and vertical position of the cursor is defined
by the pixel coordinate in the XY display region. The range of the screen pixel
coordinate is from (0,0) to (479,479). Wherein, (0,0) is a location at the upper-right
corner of the screen, and (479,479) is a located the lower-left corner of the screen.
The pixel range in the horizontal and vertical direction is from 0 to 479.
Return
Format
The query returns an integer ranging from 0 to 479.
Example
:CURSor:XY:BX 200 /*Sets the horizontal position of Cursor B to 200.*/
:CURSor:XY:BX? /*The query returns 200.*/
Syntax
:CURSor:XY:AY <y>
:CURSor:XY:AY?
Description
Sets or queries the vertical position of Cursor A in the XY cursor measurement mode.
Parameter
Name
Type
Range
Default
<y>
Integer
0 to 479
100
Remarks
In the XY time base mode, the horizontal and vertical position of the cursor is defined
by the pixel coordinate in the XY display region. The range of the screen pixel
coordinate is from (0,0) to (479,479). Wherein, (0,0) is a location at the upper-right
corner of the screen, and (479,479) is a located the lower-left corner of the screen.
The pixel range in the horizontal and vertical direction is from 0 to 479.
Return
Format
The query returns an integer ranging from 0 to 479.
Example
:CURSor:XY:AY 200 /*Sets the vertical position of Cursor A to 200.*/
:CURSor:XY:AY? /*The query returns 200.*/
:CURSor:XY:BX
:CURSor:XY:AY
2-60 MSO5000 Programming Guide
Chapter 2 Command System RIGOL
Syntax
:CURSor:XY:BY <y>
:CURSor:XY:BY?
Description
Sets or queries the vertical position of Cursor B in the XY cursor measurement mode.
Parameter
Name
Type
Range
Default
<y>
Integer
0 to 479
300
Remarks
In the XY time base mode, the horizontal and vertical position of the cursor is defined
by the pixel coordinate in the XY display region. The range of the screen pixel
coordinate is from (0,0) to (479,479). Wherein, (0,0) is a location at the upper-right
corner of the screen, and (479,479) is a located the lower-left corner of the screen.
The pixel range in the horizontal and vertical direction is from 0 to 479.
Return Format
The query returns an integer ranging from 0 to 479.
Example
:CURSor:XY:BY 200 /*Sets the vertical position of Cursor B to 200.*/
:CURSor:XY:BY? /*The query returns 200.*/
Syntax
:CURSor:XY:AXValue?
Description
Queries the X value at Cursor A in the XY cursor measurement mode. The unit is
determined by the amplitude unit selected for the currently corresponding channel.
Return Format
The query returns the X value at Cursor A in scientific notation.
Syntax
:CURSor:XY:AYValue?
Description
Queries the X value at Cursor A in the XY cursor measurement mode. The unit is
determined by the amplitude unit selected for the currently corresponding channel.
Return Format
The query returns the Y value at Cursor A in scientific notation.
Syntax
:CURSor:XY:BXValue?
Description
Queries the X value at Cursor B in the XY cursor measurement mode. The unit is
determined by the amplitude unit selected for the currently corresponding channel.
Return Format
The query returns the X value at Cursor B in scientific notation.
Syntax
:CURSor:XY:BYValue?
Description
Queries the Y value at Cursor B in the XY cursor measurement mode. The unit is
determined by the amplitude unit selected for the currently corresponding channel.
Return Format
The query returns the Y value at Cursor B in scientific notation.
:CURSor:XY:BY
:CURSor:XY:AXValue?
:CURSor:XY:AYValue?
:CURSor:XY:BXValue?
:CURSor:XY:BYValue?
MSO5000 Programming Guide2-61
RIGOLChapter 2 Command System
Syntax
:DISPlay:CLEar
Description
Clears all the waveforms on the screen.
Remarks
If the oscilloscope is in the "RUN" state, new waveforms will continue being
displayed after being cleared.
This command functions the same as the CLEAR key on the front panel. You can
also send the :CLEar command to clear all the waveforms on the screen.
Syntax
:DISPlay:TYPE <type>
:DISPlay:TYPE?
Description
Sets or queries the display type of the waveforms on the screen.
Parameter
Name
Type
Range
Default
<type>
Discrete
{VECTors|DOTS}
VECTors
Remarks
VECTors: The sample points are connected by lines and displayed. In most cases,
this mode can provide the most vivid waveform for you to view the steep edge of
the waveform (such as square waveform)
DOTS: displays the sample points directly. You can directly view each sample point
and use the cursor to measure the X and Y values of the sample point.
Sets or queries the persistence time. The default unit is s.
Parameter
Name
Type
Range
Default
<time>
Discrete
{MIN|0.1|0.2|0.5|1|2|5|10|INFinite}
MIN
Remarks
MIN: sets the persistence time to its minimum value to view how the waveform
changes at a high refresh rate.
specified value (e.g. 0.1, 0.2, 0.5, 1, 2, 5, 10): sets the persistence time to any of
the above specific value to observe glitch that changes relatively slowly or glitch
with low occurrence probability.
INFinite: In this mode, the oscilloscope displays the waveform newly acquired
without clearing the waveforms acquired formerly. It can be used to measure
noise and jitter and to capture incidental events.
Return
Format
The query returns MIN, 0.1, 0.2, 0.5, 1, 2, 5, 10, or INF.
Example
:DISPlay:GRADing:TIME 0.1 /*Sets the persistence time to 0.1 s.*/
:DISPlay:GRADing:TIME? /*The query returns 0.1.*/
Syntax
:DISPlay:WBRightness <time>
:DISPlay:WBRightness?
Description
Sets or queries the brightness of the waveforms on the screen, expressed in
percentage.
Parameter
Name
Type
Range
Default
<time>
Integer
1 to 100
60
Return
Format
The query returns an integer ranging from 1 to 100.
Example
:DISPlay:WBRightness 50 /*Sets the waveform brightness to 50%.*/
:DISPlay:WBRightness? /*The query returns 50.*/
Syntax
:DISPlay:GRID <grid>
:DISPlay:GRID?
Description
Sets or queries the display type of the screen grid.
Parameter
Name
Type
Range
Default
<grid>
Discrete
{FULL|HALF|NONE|IRE}
FULL
Remarks
FULL: turns on the background grid and coordinates.
HALF: turns the background grid off and turns the coordinate on.
NONE: turns the background grid and coordinate off.
IRE: the IRE command is only valid when the trigger type is Video trigger and the
:DISPlay:GRADing:TIME
:DISPlay:WBRightness
:DISPlay:GRID
MSO5000 Programming Guide2-63
RIGOLChapter 2 Command System
scale is 140 mV.
Return
Format
The query returns FULL, HALF, NONE, or IRE.
Example
:DISPlay:GRID NONE /*Turns off the background grid and coordinates.*/
:DISPlay:GRID? /*The query returns NONE.*/
Syntax
:DISPlay:GBRightness <brightness>
:DISPlay:GBRightness?
Description
Sets or queries the brightness of the screen grid, expressed in percentage.
Parameter
Name
Type
Range
Default
<brightness>
Integer
1 to 100
50 Return Format
The query returns an integer ranging from 1 to 100.
Example
:DISPlay:GBRightness 60 /*Sets the screen grid brightness to 60%.*/
:DISPlay:GBRightness? /*The query returns 60.*/
Syntax
:DISPlay:DATA?
Description
Queries the bitmap data stream of the currently displayed image.
Return Format
The query returns the binary data stream of the screenshot in ".bmp" format.
Syntax
:DISPlay:RULers <bool>
:DISPlay:RULers?
Description
Enables or disables the ruler display; or queries the on/off status of the ruler.
Parameter
Name
Type
Range
Default
<bool>
Bool
{{1|ON}|{0|OFF}}
0|OFF
Return Format
The query returns 1 or 0.
Example
:DISPlay:RULers ON /*Enables the display of the ruler.*/
:DISPlay:RULers? /*The query returns 1.*/
Syntax
:DISPlay:COLor <val>
:DISPlay:COLor?
Description
Enables or disables the color grade display; or queries the on/off status of the
color grade display.
Parameter
Name
Type
Range
Default
<bool>
Bool
{{1|ON}|{0|OFF}}
0|OFF
:DISPlay:GBRightness
:DISPlay:DATA?
:DISPlay:RULers
:DISPlay:COLor
2-64 MSO5000 Programming Guide
Chapter 2 Command System RIGOL
Return Format
The query returns 1 or 0.
Example
:DISPlay:COLor ON /*Enables the color grade display.*/
:DISPlay:COLor? /*The query returns 1.*/
MSO5000 Programming Guide2-65
RIGOLChapter 2 Command System
Syntax
DVM:CURRent?
Description
Queries the current voltage value under test.
Syntax
:DVM:ENABle <bool>
:DVM:ENABle?
Description
Enables or disables the digital voltmeter; or queries the on/off status of the digital
voltmeter.
Parameter
Name
Type
Range
Default
<bool>
Bool
{{1|ON}|{0|OFF}}
0|OFF
Return
Format
The query returns 1 or 0.
Example
:DVM:ENABle ON /*Enables the digital voltmeter.*/
:DVM:ENABle? /*The query returns 1.*/
Syntax
:DVM:SOURce <source>
:DVM:SOURce?
Description
Sets or queries the source of the digital voltmeter.
Parameter
Name
Type
Range
Default
<source>
Discrete
{CHANnel1|CHANnel2|CHANnel3|CHANnel4}
CHANnel1
Return
Format
The query returns CHAN1, CHAN2, CHAN3, or CHAN4.
Example
:DVM:SOURce CHANnel1 /*Sets the source of DVM to CHANnel1.*/
:DVM:SOURce? /*The query returns CHAN1.*/
The query returns CHAN1, CHAN2, CHAN3, CHAN4, MATH1, MATH2, MATH3,
MATH4, or OFF.
Example
:HISTogram:SOURce CHANnel2
/*Sets the source of the histogram to CHANnel2.*/
:HISTogram:SOURce?
/*The query returns CHAN2.*/
Syntax
:HISTogram:SIZE <size>
:HISTogram:SIZE?
Description
Sets or queries the height of the histogram.
Parameter
Name
Type
Range
Default
<size>
Integer
1 to 4
1
Return
Format
The query returns an integer ranging from 1 to 4.
Example
:HISTogram:SIZE 2 /*Sets the height of the histogram to 2.*/
:HISTogram:SIZE? /*The query returns 2.*/
Syntax
:HISTogram:STATic <bool>
:HISTogram:STATic?
Description
Enables or disables the statistical function; or queries the status of the
statistical function.
Parameter
Name
Type
Range
Default
<bool>
Bool
{{1|ON}|{0|OFF}}
0|OFF
Return
Format
The query returns 1 or 0.
Example
:HISTogram:STATic ON /*Enables the statistical function.*/
:HISTogram:STATic? /*The query returns 1.*/
:HISTogram:SOURce
:HISTogram:SIZE
:HISTogram:STATic
MSO5000 Programming Guide2-69
RIGOLChapter 2 Command System
Syntax
:HISTogram:RESet
Description
Resets the statistics.
Syntax
:HISTogram:BLIMit <y>
:HISTogram:BLIMit?
Description
Sets or queries the histogram's bottom boundary limit.
Parameter
Name
Type
Range
Default
<y>
Real
(-4× VerticalScale) to
(4× VerticalScale)
(vertical scale of the channel
source of the histogram)
0 V
Return
Format
The query returns the histogram's bottom boundary limit in scientific notation.
Example
:HISTogram:BLIMit -2 /*Sets the histogram's bottom boundary limit to -2 mV.*/
:HISTogram:BLIMit? /*The query returns -2.000000E0.*/
Syntax
:HISTogram:LLIMit <x>
:HISTogram:LLIMit?
Description
Sets or queries the histogram's left boundary limit.
Parameter
Name
Type
Range
Default
<x>
Real
(-5× Horizontal Time Base) to
(5× Horizontal Time Base)
0 V
Return
Format
The query returns the histogram's left boundary limit in scientific notation.
Example
:HISTogram:LLIMit -2 /*Sets the histogram's left boundary limit to -2 mV.*/
:HISTogram:LLIMit? /*The query returns -2.000000E0.*/
Syntax
:HISTogram:RLIMit <x>
:HISTogram:RLIMit?
Description
Sets or queries the histogram's right boundary limit.
Parameter
Name
Type
Range
Default
<x>
Real
(-5× Horizontal Scale) to
(5× Horizontal Scale)
0 V
Return
Format
The query returns the histogram's right boundary limit in scientific notation.
Example
:HISTogram:RLIMit -2 /*Sets the histogram's right boundary limit to -2 mV.*/
:HISTogram:RLIMit? /*The query returns -2.000000E0.*/
:HISTogram:RESet
:HISTogram:BLIMit
:HISTogram:LLIMit
:HISTogram:RLIMit
2-70 MSO5000 Programming Guide
Chapter 2 Command System RIGOL
Syntax
:HISTogram:TLIMit <y>
:HISTogram:TLIMit?
Description
Sets or queries the histogram's top boundary limit.
Parameter
Name
Type
Range
Default
<y>
Real
(-4× VerticalScale) to
(4× VerticalScale)
(vertical scale of the channel
source of the histogram)
0 V
Return
Format
The query returns the histogram's top boundary limit in scientific notation.
Example
:HISTogram:TLIMit -2 /*Sets the histogram's top boundary limit to -2 mV.*/
:HISTogram:TLIMit? /*The query returns -2.000000E0.*/
:HISTogram:TLIMit
MSO5000 Programming Guide2-71
RIGOLChapter 2 Command System
Syntax
*CLS
Description
Clears all the event registers, and also clears the error queue.
Syntax
*ESE <maskargument>
*ESE?
Description
Sets or queries the enable register bit of the standard event register set.
Parameter
Name
Type
Range
Default
<maskargument>
Integer
0 to 255
0
Return
Format
The query returns an integer. The integer equals to the binary-weighted sum of all the
bits set in the register.
Example
*ESE 16 /*Enable the bit 4 (16 in decimal) in the register.*/
*ESE? /*The query returns the enable value of the register 16.*/
IEEE488.2 Common Commands
The IEEE488.2 common commands are used to query the basic information of the instrument or executing
basic operations. These commands usually start with "*", and the keywords in a command contain 3
characters.
Queries and clears the event register of the standard event status register.
Remarks
Bit 1 and Bit 6 in the standard event status register are not used and are always treated
as 0; therefore, the range of the returned value is a decimal number corresponding to a
binary number X0XXXX0X (X is 1 or 0).
Return
Format
The query returns an integer. The integer equals to the binary-weighted sum of all the
bits set in the register.
Syntax
*IDN?
Description
Queries the ID string of the instrument.
Return
Format
The query returns RIGOL TECHNOLOGIES,<model>,<serial number>,<software
version>.
Wherein,
<model>: indicates the model number of the instrument.
<serial number>: indicates the serial number of the instrument.
<software version>: indicates the software version of the instrument.
Syntax
*OPC
*OPC?
Description
The *OPC command sets bit 0 (Operation Complete, OPC) in the standard event status
register to 1 after the current operation is finished. The OPC? command queries
whether the current operation is finished.
Return
Format
The query returns 1 after the current operation is finished; otherwise, the query returns
0.
Syntax
*SAV <value>
Description
Saves the current instrument state to the selected register.
Parameter
Name
Type
Range
Default
<value>
Integer
0 to 49
0
Example
*SAV 1 /*Saves the current instrument state to Register 1.*/
Syntax
*RCL
Description
Recalls the instrument state in the specified location.
*ESR?
*IDN?
*OPC
*SAV
*RCL
MSO5000 Programming Guide2-73
RIGOLChapter 2 Command System
Syntax
*RST
Description
Restores the instrument to its factory default settings.
Syntax
*SRE <maskargument>
*SRE?
Description
Sets or queries the enable register of the status byte register set.
Parameter
Name
Type
Range
Default
<maskargument>
Integer
0 to 255
0
Remarks
This command queries the standard event enable register value. Bit 3 and Bit 6 in the
standard event status register are not used and are always treated as 0. Therefore, the
range of <maskargument> is a decimal that corresponds to a binary number
X0XX0XXX (X is 1 or 0).
Return
Format
The query returns an integer. The integer equals to the binary-weighted sum of all the
bits set in the register.
Example
*SRE 16 /*Enables the bit 4 (16 in decimal) in the register.*/
*SRE? /*The query returns the enable value of the register 16.*/
Syntax
*STB?
Description
Queries the event register for the status byte register. After executing the command, the
value in the status byte register is cleared.
Remarks
Bit 0 and Bit 1 in the status byte register are not used and are always treated as 0;
therefore, the range of the returned value is a decimal number corresponding to a binary
number X0XXXX0X (X is 1 or 0).
Return
Format
The query returns an integer. The integer equals to the binary-weighted sum of all the bits
set in the register.
Syntax
*TST?
Description
Performs a self-test and queries the self-test result.
Return
Format
The query returns a decimal integer.
Syntax
*WAI
Description
Waits for all the pending operations to complete before executing any additional
commands.
Remarks
This operation command does not have any functions, only to be compatible with other
devices.
*RST
*SRE
*STB?
*TST?
*WAI
2-74 MSO5000 Programming Guide
Chapter 2 Command System RIGOL
Syntax
:LA:STATe <bool>
:LA:STATe?
Description
Enables or disables LA function; or queries the on/off status of LA function.
Parameter
Name
Type
Range
Default
<bool>
Bool
{{1|ON}|{0|OFF}}
0|OFF
Return
Format
The query returns 1 or 0.
Example
:LA:STATe ON /*Enables LA function.*/
:LA:STATe? /*The query returns 1.*/
:LA Commands
The :LA commands are used to perform relevant operations on the digital channels. PLA2216 active logic
probe option is required to be ordered.
The parameter <digital> can be any of the digital channels (D0-D15). The
channel label and waveform of the selected channel are displayed in red.
When you send the parameter NONE, it means that no channel is selected.
Only the currently enabled digital channel can be selected. Please refer to
the :LA:DIGital:DISPlay command or the :LA:DISPlay command to enable the
desired channel.
Return
Format
The query returns the current active channel (D0, D1, ...D15) or NONE.
Example
:LA:ACTive D3 /*Sets the current active channel to D3.*/
:LA:ACTive? /*The query returns D3.*/
Syntax
:LA:AUTOsort <n>
Description
Sets the auto sorting mode for the waveforms of the currently selected channels on the
screen.
Parameter
Name
Type
Range
Default
<n>
Discrete
{0|1}
1
Remarks
<n> = 0: the waveforms on the screen are D0-D15 in sequence from top to
bottom.
<n> = 1: the waveforms on the screen are D15-D0 in sequence from top to
bottom.
Syntax
:LA:DELete <group>
Description
Cancels the group setting for the 16 digital channels, or cancels the group settings for
the channel groups (GROUP1-GROUP4).
Parameter
Name
Type
Range
Default
<group>
Discrete
{GROUP1|GROUP2|GROUP3|GROUP4}
——
Remarks
This command only performs the canceling operation for digital channels or
user-defined channel group that have been group set.
:LA:ACTive
:LA:AUTOsort
:LA:DELete
2-76 MSO5000 Programming Guide
Chapter 2 Command System RIGOL
Syntax
:LA:DIGital:DISPlay <digital>,<bool>
:LA:DIGital:DISPlay? <digital>
Description
Turns on or off the specified digital channel; or queries the on/off status of the
specified digital channel.
Turns on or off the specified digital channel, user-defined channel group, or the default
channel group; or queries the on/off status of the specified digital channel,
user-defined channel group, or the default channel group.
Sets or queries the threshold of the specified default channel group. The default unit is
V.
Parameter
Name
Type
Range
Default
<n>
Integer
1 to 2
——
<thre>
Real
-20.0 V to +20.0 V
1.40V
Remarks
2 default channel groups: POD1 (D0 to D7) or POD2 (D8 to D15).
Return
Format
The query returns the current threshold of the specified channel group in scientific
notation.
Example
:LA:POD1:THReshold 3.3 /*Sets the threshold of POD1 (D0 to D7) to 3.3 V.*/
:LA:POD1:THReshold? /*The query returns 3.300000E0.*/
Syntax
:LA:SIZE <size>
:LA:SIZE?
Description
Sets or queries the size of the waveforms of the enabled channel on the screen.
Parameter
Name
Type
Range
Default
<size>
Discrete
{SMALl|LARGe|MEDium}
MEDium
Remarks
L (large) can only be used when the number of the currently enabled channels is no
more than 8.
Return
Format
The query returns SMAL, LARG, or MED.
Example
:LA:SIZE SMALl /*Sets the waveform display size to SMALl.*/
:LA:SIZE? /*The query returns SMAL.*/
:LA:POD<n>:THReshold
:LA:SIZE
MSO5000 Programming Guide2-79
RIGOLChapter 2 Command System
Syntax
:LA:TCALibrate <tcal>
:LA:TCALibrate?
Description
Sets or queries the delay calibration time of the digital channel. The default unit is s.
Parameter
Name
Type
Range
Default
<tcal>
Real
-1000 ns to 100 ns
0.00 s
Remarks
When you use an oscilloscope to make actual measurements, the transmission delay
of the probe cable may bring relatively greater errors (zero offset). Zero offset is
defined as the offset of the crossing point (between the waveforms and the threshold
level) from the trigger position. You can set a delay time for calibrating the zero offset
of the corresponding channel.
Return
Format
The query returns the delay calibration time in scientific notation.
Example
:LA:TCALibrate 0.00000002 /*Sets the delay calibration time to 20 ns.*/
:LA:TCALibrate? /*The query returns 2.000000E-8.*/
:LA:GROup:APPend GROup2,D0,D1 /*Adds D0 and D1 to Group2.*/
:LA:TCALibrate
:LA:GROup:APPend
2-80 MSO5000 Programming Guide
Chapter 2 Command System RIGOL
Syntax
:LAN:DHCP <bool>
:LAN:DHCP?
Description
Turns on or off the DHCP configuration mode; or queries the on/off status of the
current DHCP configuration mode.
Parameter
Name
Type
Range
Default
<bool>
Bool
{{1|ON}|{0|OFF}}
1|ON
Remarks
When the three IP configuration types (DHCP, Auto IP, and Static IP) are all
turned on, the priority of the parameter configuration from high to low is
"DHCP", "Auto IP", and "Static IP". The three IP configuration types cannot be
all turned off at the same time.
When DHPC is valid, the DHCP server in the current network will assign the
network parameters (such as the IP address) for the oscilloscope.
After the :LAN:APPLy command is executed, the configuration type can take
Turns on or off the Auto IP configuration mode; or queries the on/off status of the
current Auto IP configuration mode.
Parameter
Name
Type
Range
Default
<bool>
Bool
{{1|ON}|{0|OFF}}
1|ON
Remarks
When the auto IP mode is valid, disable DHCP manually. You can self-define the
gateway and DNS address for the oscilloscope.
Return
Format
The query returns 1 or 0.
Example
:LAN:AUToip OFF /*Disables the Auto IP configuration mode.*/
:LAN:AUToip? /*The query returns 0.*/
Syntax
:LAN:GATeway <string>
:LAN:GATeway?
Description
Sets or queries the default gateway.
Parameter
Name
Type
Range
Default
<string>
ASCII String
Refer to Remarks
——
Remarks
The format of <string> is nnn,nnn,nnn,nnn. The range of the first section of
"nnn" is from 0 to 223 (except 127), and the ranges of the other three sections of
"nnn" are from 0 to 255.
When you use this command, the IP configuration mode should be Auto IP or
Static IP mode.
Return
Format
The query returns the current gateway in strings.
Example
:LAN:GATeway 192.168.1.1 /*Sets the default gateway to 192.168.1.1.*/
:LAN:GATeway? /*The query returns the current gateway.*/
Syntax
:LAN:DNS <string>
:LAN:DNS?
Description
Sets or queries the DNS address.
Parameter
Name
Type
Range
Default
<string>
ASCII String
Refer to Remarks
——
Remarks
The format of <string> is nnn,nnn,nnn,nnn. The range of the first section of
"nnn" is from 0 to 223 (except 127), and the ranges of the other three sections of
"nnn" are from 0 to 255.
When you use this command, the IP configuration mode should be Auto IP or
Static IP mode.
:LAN:AUToip
:LAN:GATeway
:LAN:DNS
2-82 MSO5000 Programming Guide
Chapter 2 Command System RIGOL
Return
Format
The query returns the current DNS address in strings.
Example
:LAN:DNS 192.168.1.1 /*Sets the DNS address to 192.168.1.1.*/
:LAN:DNS? /*The query returns the current DNS address.*/
Syntax
:LAN:MAC?
Description
Queries the MAC address of the instrument.
Return
Format
The query returns the MAC address in strings. For example, 00:19:AF:00:11:22.
Syntax
:LAN:DSErver?
Description
Queries the address of the DHCP server.
Return
Format
The query returns the address of the DHCP server in strings.
Syntax
:LAN:MANual <bool>
:LAN:MANual?
Description
Turns on or off the static IP configuration mode; or queries the on/off status of the
static IP configuration mode.
Parameter
Name
Type
Range
Default
<bool>
Bool
{{1|ON}|{0|OFF}}
0|OFF
Remarks
When the static IP mode is valid, disable DHCP and Auto IP manually. You can
self-define the network parameters of the oscilloscope, such as IP address, subnet
mask, gateway, and DNS address. For the setting of the IP address, refer to
the :LAN:IPADdress command. For the setting of the subnet mask, refer to
the :LAN:SMASk command. For the setting of the gateway, refer to the :LAN:GATeway
command. For the setting of DNS, refer to the :LAN:DNS command.
Return
Format
The query returns 1 or 0.
Example
:LAN:MANual ON /*Enables the static IP configuration mode.*/
:LAN:MANual? /*The query returns 1.*/
:LAN:MAC?
:LAN:DSErver?
:LAN:MANual
MSO5000 Programming Guide2-83
RIGOLChapter 2 Command System
Syntax
:LAN:IPADdress <string>
:LAN:IPADdress?
Description
Sets or queries the IP address of the instrument.
Parameter
Name
Type
Range
Default
<string>
ASCII String
Refer to Remarks
——
Remarks
The format of <string> is nnn,nnn,nnn,nnn. The range of the first section of
"nnn" is from 0 to 223 (except 127), and the ranges of the other three sections of
"nnn" are from 0 to 255.
When you use the command, the IP configuration mode should be static IP.
Besides, the DHCP and auto IP should be disabled.
Return
Format
The query returns the current IP address in strings.
Example
:LAN:IPADdress 192.168.1.10 /*Sets the IP address to 192.168.1.10.*/
:LAN:IPADdress? /*The query returns the current IP address.*/
Syntax
:LAN:SMASk <string>
:LAN:SMASk?
Description
Sets or queries the subnet mask.
Parameter
Name
Type
Range
Default
<string>
ASCII String
Refer to Remarks
——
Remarks
The format of <string> is nnn,nnn,nnn,nnn. The range of the section "nnn" is
from 0 to 255.
When you use the command, the IP configuration mode should be static IP. The
DHCP and auto IP should be disabled.
Return
Format
The query returns the current subnet mask in strings.
Example
:LAN:SMASk 255.255.255.0 /*Sets the subnet mask to 255.255.255.0*/
:LAN:SMASk? /*The query returns the current subnet mask.*/
Syntax
:LAN:STATus?
Description
Queries the current network configuration status.
Return
Format
The query returns UNLINK, CONNECTED, INIT, IPCONFLICT, BUSY, CONFIGURED,
DHCPFAILED, INVALIDIP, or IPLOSE.
UNLINK: not connected.
CONNECTED: the network is successfully connected.
INIT: the instrument is acquiring an IP address.
IPCONFLICT: there is an IP address conflict.
BUSY: please waiting…
CONFIGURED: the network configuration has been successfully configured.
:LAN:IPADdress
:LAN:SMASk
:LAN:STATus?
2-84 MSO5000 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.