Rigol MSO2000A Series Programming Manual

Rigol MSO2000A Series Programming Manual

Digital oscilloscope
Hide thumbs Also See for MSO2000A Series:
Table of Contents

Advertisement

RIGOL
Programming Guide
MSO2000A/DS2000A Series
Digital Oscilloscope
May 2014
RIGOL Technologies, Inc.

Advertisement

Table of Contents
loading

Summary of Contents for Rigol MSO2000A Series

  • Page 1 RIGOL Programming Guide MSO2000A/DS2000A Series Digital Oscilloscope May 2014 RIGOL Technologies, Inc.
  • Page 3: Guaranty And Declaration

    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  company’s sole decision. Information in this publication replaces all previously corresponding material.
  • Page 4: Document Overview

    RIGOL Document Overview This manual guides users to control RIGOL MSO2000A/DS2000A series digital oscilloscope remotely by programming using SCPI commands through the remote interface. MSO2000A/DS2000A can build communication with a PC through the USB, LAN or GPIB (with the USB-GPIB interface converter provided by RIGOL) interface.
  • Page 5: Table Of Contents

    RIGOL Contents Contents Guaranty and Declaration ......................I Document Overview ......................... II 1 SCPI Overview ........................1-1 Syntax ........................... 1-1 Symbol Description ......................... 1-2 Parameter Type ........................1-2 Command Abbreviation ......................1-3 2 Command System ........................ 2-1 :AUToscale ..........................2-2 :CLEar ...........................
  • Page 6 RIGOL Contents :BUS<n>:IIC (Option) ....................2-32 :BUS<n>:SPI (Option) ....................2-36 :CALCulate Commands ......................2-42 :CALCulate:MODE ......................2-42 :CALCulate:ADD ......................2-43 :CALCulate:SUB ......................2-45 :CALCulate:MULTiply ....................... 2-47 :CALCulate:DIVision ......................2-49 :CALCulate:FFT ......................2-51 :CALCulate:LOGic ......................2-57 :CALCulate:ADVanced ..................... 2-61 :CALibrate Commands ......................2-64 :CALibrate:DATE? ......................
  • Page 7 RIGOL Contents :FUNCtion:WREPlay ......................2-98 :FUNCtion:WANalyze ....................2-103 :LA Commands (MSO2000A/MSO2000A-S) ................2-111 :LA:STATe ........................2-111 :LA:ACTive ........................2-112 :LA:DISPlay ......................... 2-113 :LA:AUTosort ....................... 2-113 :LA:DELete ........................2-114 :LA:SIZE ........................2-114 :LA:DIGital<n>:DISPlay ....................2-115 :LA:DIGital<n>:POSition ....................2-115 :LA:DIGital<n>:LABel ....................2-116 :LA:POD<n>:DISPlay ....................
  • Page 8 RIGOL Contents :MASK:TOTal? ......................2-132 :MASK:RESet........................ 2-132 :MASK:DATA ........................ 2-133 :MEASure Commands ......................2-134 :MEASure:SOURce ......................2-135 :MEASure:COUNter:SOURce ..................2-136 :MEASure:COUNter:VALue? ................... 2-136 :MEASure:CLEar ......................2-137 :MEASure:RECover ....................... 2-137 :MEASure:ADISplay ...................... 2-138 :MEASure:AMSource ..................... 2-138 :MEASure:STATistic:DISPlay ..................2-139 :MEASure:STATistic:MODE ..................... 2-139 :MEASure:STATistic:RESet .....................
  • Page 9 RIGOL Contents :MEASure:R2FPhase ..................... 2-180 :MEASure:VAMP ......................2-182 :MEASure:VAVG ......................2-184 :MEASure:VBASe ......................2-186 :MEASure:VMAX ......................2-188 :MEASure:VMIN ......................2-190 :MEASure:VPP ......................2-192 :MEASure:VRMS ......................2-194 :MEASure:PVRMs ......................2-196 :MEASure:VTOP ......................2-198 :MEASure:MARea ......................2-200 :MEASure:MPARea ....................... 2-202 :OUTPut<n> Commands (MSO2000A-S/DS2000A-S) ............. 2-204 :OUTPut[<n>][:STATe] ....................
  • Page 10 RIGOL Contents :SOURce<n> Commands (MSO2000A-S/DS2000A-S) ............. 2-223 [:SOURce<n>]:FREQuency[:FIXed] ................2-224 [:SOURce<n>]:PHASe[:ADJust] ..................2-224 [:SOURce<n>]:PHASe:INITiate ..................2-225 [:SOURce<n>]:FUNCtion[:SHAPe] ................. 2-226 [:SOURce<n>]:FUNCtion:RAMP:SYMMetry ..............2-227 [:SOURce<n>]:VOLTage[:LEVel][:IMMediate][:AMPLitude] ..........2-228 [:SOURce<n>]:VOLTage[:LEVel][:IMMediate]:OFFSet ............2-229 [:SOURce<n>]:PULSe:DCYCle ..................2-230 [:SOURce<n>]:MOD[:STATe] ..................2-231 [:SOURce<n>]:MOD:TYPe .................... 2-232 [:SOURce<n>]:MOD:AM[:DEPTh] .................. 2-232 [:SOURce<n>]:MOD:AM:INTernal:FREQuency ..............
  • Page 11 RIGOL Contents :SYSTem:SSAVer:TIME ....................2-250 :SYSTem:SETup ......................2-250 :SYSTem:TIME ......................2-251 :SYSTem:UDEVice ......................2-251 :SYSTem:VERSion? ....................... 2-252 :TIMebase Commands ......................2-253 :TIMebase:DELay:ENABle ..................... 2-253 :TIMebase:DELay:OFFSet ..................... 2-254 :TIMebase:DELay:SCALe ....................2-254 :TIMebase[:MAIN]:OFFSet .................... 2-255 :TIMebase[:MAIN]:SCALe ..................... 2-256 :TIMebase:HREF:MODE ....................2-257 :TIMebase:HREF:POSition ..................... 2-257 :TIMebase:MODE ......................
  • Page 12 RIGOL Contents :TRIGger:VIDeo (HDTV Option) ..................2-321 :TRIGger:WINDows (Option) ..................2-326 :WAVeform Commands ......................2-329 :WAVeform:SOURce ..................... 2-330 :WAVeform:MODE ......................2-331 :WAVeform:FORMat ...................... 2-332 :WAVeform:POINts ....................... 2-332 :WAVeform:DATA? ......................2-333 :WAVeform:XINCrement? ....................2-335 :WAVeform:XORigin? ....................2-336 :WAVeform:XREFerence? ....................2-336 :WAVeform:YINCrement? ....................2-336 :WAVeform:YORigin? ....................
  • Page 13: Scpi Overview

    RIGOL 1 SCPI Overview 1 SCPI Overview SCPI (Standard Commands for Programmable Instruments) is a standardized instrument programming language that is built upon the standard IEEE488.1 and IEEE 488.2 and conforms to various standards (such as the floating point operation rule in IEEE754 standard, ISO646 7-bit coded character for information interchange (equivalent to ASCll programming)).
  • Page 14: Symbol Description

    RIGOL 1 SCPI Overview Symbol Description The following symbols will not be sent with the commands. Braces {} The parameters enclosed in the braces are optional and are usually separated by the vertical bar "|". When using the command, one of the parameters must be selected.
  • Page 15: Command Abbreviation

    RIGOL 1 SCPI Overview :DISPlay:GBRightness? Wherein, <brightness> can be set to any integer between 0 and 100. The query returns an integer between 0 and 100. Real The parameter can be any real number within the effective value range and this command accepts decimal and scientific notation parameter input.
  • Page 17: Command System

    RIGOL 2 Command System 2 Command System This chapter introduces the command subsystems of MSO2000A/DS2000A command set. The topics of this chapter: :AUToscale  :CLEar  :RUN  :STOP  :SINGle  :TFORce  :TLHAlf  IEEE 488.2 Common Commands ...
  • Page 18: Autoscale

    RIGOL 2 Command System :AUToscale Syntax :AUToscale Description Enable the waveform auto setting function. The oscilloscope adjusts the vertical scale, horizontal time base and trigger mode according to the input signal automatically to realize optimum waveform display. The function of this command is the same with that of AUTO at the front panel.
  • Page 19: Single

    RIGOL 2 Command System :SINGle Syntax :SINGle Description Set the oscilloscope to single trigger mode. Explanation In single trigger mode, the oscilloscope triggers once the trigger conditions are met and then stops.  In single trigger mode, using the :TFORce command can generate a trigger signal forcefully.
  • Page 20: Ieee 488.2 Common Commands

    RIGOL 2 Command System IEEE 488.2 Common Commands The IEEE 488.2 standard defines some common commands used for querying the basic information of the instrument or executing basic operations. These commands usually start with "*" and the keyword of the command is usually 3-character long.
  • Page 21: Ese

    RIGOL 2 Command System *ESE Syntax *ESE <mask> *ESE? Description Set or query the enable register for the standard event status register set. Parameter Name Type Range Default <mask> Integer 0 to 255 Explanation <mask> is the sum of the binary weights (expressed in decimal) of all the bits between bit 0 and bit ...
  • Page 22: Esr

    Return Format The query returns Rigol Technologies,<model>,<serial number>,XX.XX.XX. Wherein, <model> is the model number of the instrument. <serial number> is the serial number of the instrument. XX.XX.XX is the software version of the instrument. For example, RIGOL TECHNOLOGIES,MSO2302A,DS2A0000000000,00.03.00. MSO2000A/DS2000A Programming Guide...
  • Page 23: Opc

    RIGOL 2 Command System *OPC Syntax *OPC *OPC? Description Set the Operation Complete bit (bit 0) in the standard event status register to 1 after the current operation is finished. Query whether the current operation is finished. Return Format The query returns 1 if the current operation is finished; otherwise, returns 0.
  • Page 24: Sre

    RIGOL 2 Command System *SRE Syntax *SRE <mask> *SRE? Description Set or query the enable register for the state byte register set. Parameter Name Type Range Default <mask> Integer 0 to 255 Explanation <mask> is the sum of the binary weights (expressed in decimal) of all the bits between bit 0 and bit ...
  • Page 25: Stb

    RIGOL 2 Command System *STB? Syntax *STB? Description Query the condition register for the state byte register set. Explanation Definitions of the bits of SRE register: Weights Name Enable OPER Operation Status Reg Not used Event Status Bit Message Available...
  • Page 26: Tst

    RIGOL 2 Command System *TST? Syntax *TST? Description Perform a self-test and query the result. Explanation The self-test result is denoted by a 32-bit binary number. If the corresponding binary bit is 0, the self-test item passes the test; while 1 indicates a failure. The return value is the decimal integer corresponding to the binary number.
  • Page 27: Acquire Commands

    RIGOL 2 Command System :ACQuire Commands :ACQuire:AVERages  :ACQuire:MDEPth  :ACQuire:SRATe?  :ACQuire:TYPE  :ACQuire:AALias  :ACQuire:AVERages Syntax :ACQuire:AVERages <count> :ACQuire:AVERages? Description Set or query the number of averages in average acquisition mode. Parameter Name Type Range Default <count> Discrete...
  • Page 28: Acquire:mdepth

    RIGOL 2 Command System :ACQuire:MDEPth Syntax :ACQuire:MDEPth <mdep> :ACQuire:MDEPth? Description Set or query the memory depth of the oscilloscope; namely the number of waveform points that can be stored in a single trigger sample. The default unit is pts (points).
  • Page 29: Acquire:type

    RIGOL 2 Command System :ACQuire:TYPE Syntax :ACQuire:TYPE <type> :ACQuire:TYPE? Description Set or query the acquisition mode of the sample. Parameter Name Type Range Default <type> Discrete {NORMal|AVERages|PEAK|HRESolution} NORMal Explanation NORMal: the oscilloscope samples the signal at equal time interval. For most of waveforms, this ...
  • Page 30: Acquire:aalias

    RIGOL 2 Command System :ACQuire:AALias Syntax :ACQuire:AALias <bool> :ACQuire:AALias? Description Enable or disable the antialiasing function of the oscilloscope; or query the current state of the antialiasing function of the oscilloscope. Parameter Name Type Range Default <bool> Bool {{0|OFF}|{1|ON}} 0|OFF Return Format The query returns 0 or 1.
  • Page 31: Bus Commands

    RIGOL 2 Command System :BUS<n> Commands :BUS<n>:MODE  :BUS<n>:DISPlay  :BUS<n>:FORMat  :BUS<n>:EVENt  :BUS<n>:EEXPort  :BUS<n>:DATA?  :BUS<n>:PARallel  :BUS<n>:RS232 (Option)  :BUS<n>:IIC (Option)  :BUS<n>:SPI (Option)  :BUS<n>:MODE Syntax :BUS<n>:MODE <mode> :BUS<n>:MODE? Description Set or query the decoding mode of the specified bus.
  • Page 32: Bus:Display

    RIGOL 2 Command System :BUS<n>:DISPlay Syntax :BUS<n>:DISPlay <bool> :BUS<n>:DISPlay? Description Enable or disable the display of the specified bus; or query the current display status of the specified bus. Parameter Name Type Range Default <n> Discrete {1|2} <bool> Bool {{0|OFF}|{1|ON}}...
  • Page 33: Bus:Event

    RIGOL 2 Command System :BUS<n>:EVENt Syntax :BUS<n>:EVENt <bool> :BUS<n>:EVENt? Description Enable or disable the event table of the specified bus; or query the current status of the event table of the specified bus. Parameter Name Type Range Default <n> Discrete {1|2} <bool>...
  • Page 34: Bus:Data

    RIGOL 2 Command System :BUS<n>:DATA? Syntax :BUS<n>:DATA? Description Read the decoding event table data. Parameter Name Type Range Default <n> Discrete {1|2} Return Format The query returns the decoding event table data in the following format. #9000000141RS232 Time,TX,TX ERR, -6.1352322E-03,*,, -4.0554402E-03,R,,...
  • Page 35: Bus:Parallel

    RIGOL 2 Command System :BUS<n>:PARallel :BUS<n>:PARallel:CLK  :BUS<n>:PARallel:SLOPe  :BUS<n>:PARallel:BSET  :BUS<n>:PARallel:THReshold  :BUS<n>:PARallel:OFFSet  :BUS<n>:PARallel:CLK Syntax :BUS<n>:PARallel:CLK <sour> :BUS<n>:PARallel:CLK? Description Set or query the clock channel source of parallel decoding on the specified bus. Parameter Name Type Range Default <n>...
  • Page 36 RIGOL 2 Command System :BUS<n>:PARallel:SLOPe Syntax :BUS<n>:PARallel:SLOPe <pos> :BUS<n>:PARallel:SLOPe? Description Set or query the edge of the clock on which the oscilloscope samples the channel data. Parameter Name Type Range Default <n> Discrete {1|2} <pos> Discrete {POSitive|NEGative|BOTH} POSitive Explanation POSitive: rising edge ...
  • Page 37 RIGOL 2 Command System :BUS<n>:PARallel:BSET Syntax :BUS<n>:PARallel:BSET <b0>[,<b1>[,<b2>…[,<b17>]]] :BUS<n>:PARallel:BSET? Description Set the data width of the specified bus in parallel decoding and the channel source for each bit; or query the channel source of each bit. Parameter Name Type Range Default <n>...
  • Page 38 RIGOL 2 Command System :BUS<n>:PARallel:THReshold Syntax :BUS<n>:PARallel:THReshold <sour>,<thre> :BUS<n>:PARallel:THReshold? <sour> Description Set or query the analog channel threshold of parallel decoding on the specified bus. Parameter Name Type Range Default <n> Discrete {1|2} <sour> Discrete {CHANnel1|CHANnel2} <thre> Real -5×VerticalScale–OFFSet to +5×VerticalScale–OFFSet Note: For the VerticalScale, refer to the :CHANnel<n>:SCALe...
  • Page 39 RIGOL 2 Command System :BUS<n>:PARallel:OFFSet Syntax :BUS<n>:PARallel:OFFSet <val> :BUS<n>:PARallel:OFFSet? Description Set or query the vertical offset in parallel decoding on the specified bus. Parameter Name Type Range Default <n> Discrete {1|2} Normal : -166 to 148 <val> Integer Statistic : -163 to 143...
  • Page 40: Bus:Rs232 (Option)

    RIGOL 2 Command System :BUS<n>:RS232 (Option) :BUS<n>:RS232:TX  :BUS<n>:RS232:RX  :BUS<n>:RS232:POLarity  :BUS<n>:RS232:ENDian  :BUS<n>:RS232:BAUD  :BUS<n>:RS232:BUSer  :BUS<n>:RS232:DBITs  :BUS<n>:RS232:SBITs  :BUS<n>:RS232:PARity  :BUS<n>:RS232:PACKet  :BUS<n>:RS232:PEND  :BUS<n>:RS232:TTHReshold  :BUS<n>:RS232:RTHReshold  :BUS<n>:RS232:OFFSet  :BUS<n>:RS232:TX Syntax :BUS<n>:RS232:TX <source> :BUS<n>:RS232:TX? Description Set or query the TX channel source of RS232 decoding on the specified bus.
  • Page 41 RIGOL 2 Command System :BUS<n>:RS232:RX Syntax :BUS<n>:RS232:RX <source> :BUS<n>:RS232:RX? Description Set or query the RX channel source of RS232 decoding on the specified bus. Parameter Name Type Range Default <n> Discrete {1|2} {D0|D1|D2|D3|D4|D5|D6|D7|D8|D9|D10| <source> Discrete D11|D12|D13|D14|D15|CHANnel1|CHANnel2|OFF} Explanation When OFF is selected, no RX channel source will be set. The TX channel source and RX channel source cannot both be set to OFF.
  • Page 42 RIGOL 2 Command System :BUS<n>:RS232:ENDian Syntax :BUS<n>:RS232:ENDian <endian> :BUS<n>:RS232:ENDian? Description Set or query the endian of data transmission of RS232 decoding on the specified bus. Parameter Name Type Range Default <n> Discrete {1|2} <endian> Discrete {MSB|LSB} Return Format The query returns MSB or LSB.
  • Page 43 RIGOL 2 Command System :BUS<n>:RS232:BUSer Syntax :BUS<n>:RS232:BUSer <baud> :BUS<n>:RS232:BUSer? Description Set or query the user-defined baud rate of data transmission in RS232 decoding on the specified bus. The default unit is bps. Parameter Name Type Range Default <n> Discrete {1|2} <baud>...
  • Page 44 RIGOL 2 Command System :BUS<n>:RS232:SBITs Syntax :BUS<n>:RS232:SBITs <stop bits> :BUS<n>:RS232:SBITs? Description Set or query the stop bit after each frame of data in RS232 decoding on the specified bus. Parameter Name Type Range Default <n> Discrete {1|2} <stop bits> Discrete {1|1.5|2}...
  • Page 45 RIGOL 2 Command System :BUS<n>:RS232:PACKet Syntax :BUS<n>:RS232:PACKet <bool> :BUS<n>:RS232:PACKet? Description Enable or disable the packet end in data transmission; or query the current status of the packet end in data transmission. Parameter Name Type Range Default <n> Discrete {1|2} <bool>...
  • Page 46 RIGOL 2 Command System :BUS<n>:RS232:TTHReshold Syntax :BUS<n>:RS232:TTHReshold <tthre> :BUS<n>:RS232:TTHReshold? Description Set or query the TX channel threshold of R232 decoding on the specified bus. Parameter Name Type Range Default <n> Discrete {1|2} <tthre> Real -5×VerticalScale–OFFSet to +5×VerticalScale–OFFSet Note: For the VerticalScale, refer to the :CHANnel<n>:SCALe...
  • Page 47 RIGOL 2 Command System :BUS<n>:RS232:OFFSet Syntax :BUS<n>:RS232:OFFSet <val> :BUS<n>:RS232:OFFSet? Description Set or query the vertical offset in RS232 decoding on the specified bus. Parameter Name Type Range Default <n> Discrete {1|2} Normal : -166 to 148 <val> Integer Statistic : -163 to 143...
  • Page 48: Bus:Iic (Option)

    RIGOL 2 Command System :BUS<n>:IIC (Option) :BUS<n>:IIC:SCLK:SOURce  :BUS<n>:IIC:SCLK:THReshold  :BUS<n>:IIC:SDA:SOURce  :BUS<n>:IIC:SDA:THReshold  :BUS<n>:IIC:OFFSet  :BUS<n>:IIC:SCLK:SOURce Syntax :BUS<n>:IIC:SCLK:SOURce <sour> :BUS<n>:IIC:SCLK:SOURce? Description Set or query the clock channel source of IIC decoding on the specified bus. Parameter Name Type Range Default <n>...
  • Page 49 RIGOL 2 Command System :BUS<n>:IIC:SCLK:THReshold Syntax :BUS<n>:IIC:SCLK:THReshold <thre> :BUS<n>:IIC:SCLK:THReshold? Description Set or query the clock channel threshold of IIC decoding on the specified bus. Parameter Name Type Range Default <n> Discrete {1|2} <thre> Real -5×VerticalScale–OFFSet to +5×VerticalScale–OFFSet Note: For the VerticalScale, refer to the :CHANnel<n>:SCALe...
  • Page 50 RIGOL 2 Command System :BUS<n>:IIC:SDA:THReshold Syntax :BUS<n>:IIC:SDA:THReshold <thre> :BUS<n>:IIC:SDA:THReshold? Description Set or query the data channel threshold of IIC decoding on the specified bus. Parameter Name Type Range Default <n> Discrete {1|2} <thre> Real -5×VerticalScale–OFFSet to +5×VerticalScale–OFFSet Note: For the VerticalScale, refer to the :CHANnel<n>:SCALe...
  • Page 51 RIGOL 2 Command System :BUS<n>:IIC:OFFSet Syntax :BUS<n>:IIC:OFFSet <val> :BUS<n>:IIC:OFFSet? Description Set or query the vertical offset in IIC decoding on the specified bus. Parameter Name Type Range Default <n> Discrete {1|2} Normal : -166 to 148 <val> Integer Statistic : -163 to 143...
  • Page 52: Bus:Spi (Option)

    RIGOL 2 Command System :BUS<n>:SPI (Option) :BUS<n>:SPI:SCLK:SOURce  :BUS<n>:SPI:SCLK:SLOPe  :BUS<n>:SPI:SCLK:THReshold  :BUS<n>:SPI:SDA:SOURce  :BUS<n>:SPI:SDA:POLarity  :BUS<n>:SPI:SDA:THReshold  :BUS<n>:SPI:DBITs  :BUS<n>:SPI:ENDian  :BUS<n>:SPI:OFFSet  :BUS<n>:SPI:TIMEout:TIME  :BUS<n>:SPI:SCLK:SOURce Syntax :BUS<n>:SPI:SCLK:SOURce <sour> :BUS<n>:SPI:SCLK:SOURce? Description Set or query the clock channel source of SPI decoding on the specified bus.
  • Page 53 RIGOL 2 Command System :BUS<n>:SPI:SCLK:SLOPe Syntax :BUS<n>:SPI:SCLK:SLOPe <pos> :BUS<n>:SPI:SCLK:SLOPe? Description Set or query the clock edge type in SPI decoding on the specified bus. Parameter Name Type Range Default <n> Discrete {1|2} <pos> Discrete {POSitive|NEGative} POSitive Return Format The query returns POS or NEG.
  • Page 54 RIGOL 2 Command System :BUS<n>:SPI:SDA:SOURce Syntax :BUS<n>:SPI:SDA:SOURce <sour> :BUS<n>:SPI:SDA:SOURce? Description Set or query the data channel source of SPI decoding on the specified bus. Parameter Name Type Range Default <n> Discrete {1|2} {D0|D1|D2|D3|D4|D5|D6|D7|D8|D9|D10| <sour> Discrete CHANnel2 D11|D12|D13|D14|D15|CHANnel1|CHANnel2} Return Format The query returns D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, CHAN1 or CHAN2.
  • Page 55 RIGOL 2 Command System :BUS<n>:SPI:SDA:THReshold Syntax :BUS<n>:SPI:SDA:THReshold <thre> :BUS<n>:SPI:SDA:THReshold? Description Set or query the data channel threshold of SPI decoding on the specified bus. Parameter Name Type Range Default <n> Discrete {1|2} <thre> Real -5×VerticalScale–OFFSet to +5×VerticalScale–OFFSet Note: For the VerticalScale, refer to the :CHANnel<n>:SCALe...
  • Page 56 RIGOL 2 Command System :BUS<n>:SPI:ENDian Syntax :BUS<n>:SPI:ENDian <endian> :BUS<n>:SPI:ENDian? Description Set or query the endian of data transmission in SPI decoding on the specified bus. Parameter Name Type Range Default <n> Discrete {1|2} <endian> Discrete {MSB|LSB} Return Format The query returns MSB or LSB.
  • Page 57 RIGOL 2 Command System :BUS<n>:SPI:TIMEout:TIME Syntax :BUS<n>:SPI:TIMEout:TIME <val> :BUS<n>:SPI:TIMEout:TIME? Description Set or query the timeout time in SPI decoding on the specified bus. The default unit is s. Parameter Name Type Range Default <n> Discrete {1|2} <val> Real 100ns to 1s Return Format The query returns the current timeout time in scientific notation.
  • Page 58: Calculate Commands

    RIGOL 2 Command System :CALCulate Commands :CALCulate:MODE  :CALCulate:ADD  :CALCulate:SUB  :CALCulate:MULTiply  :CALCulate:DIVision  :CALCulate:FFT  :CALCulate:LOGic  :CALCulate:ADVanced  :CALCulate:MODE Syntax :CALCulate:MODE <mod> :CALCulate:MODE? Description Set or query the math operation type. Parameter Name Type Range Default <mod>...
  • Page 59: Calculate:add

    RIGOL 2 Command System :CALCulate:ADD :CALCulate:ADD:SA  :CALCulate:ADD:SB  :CALCulate:ADD:INVert  :CALCulate:ADD:VSCale  :CALCulate:ADD:VOFFset  :CALCulate:ADD:SA :CALCulate:ADD:SB Syntax :CALCulate:ADD:SA <source> :CALCulate:ADD:SA? :CALCulate:ADD:SB <source> :CALCulate:ADD:SB? Description Set or query the channel source of signal source A or B of the addition operation.
  • Page 60 RIGOL 2 Command System :CALCulate:ADD:VSCale Syntax :CALCulate:ADD:VSCale <scale> :CALCulate:ADD:VSCale? Description Set or query the vertical scale of the addition operation result. Parameter Name Type Range Default 0.02V to 500V <scale> Real Related to the current channel vertical scale Note: For the channel vertical scale, refer to the :CHANnel<n>:SCALe...
  • Page 61: Calculate:sub

    RIGOL 2 Command System :CALCulate:SUB :CALCulate:SUB:SA  :CALCulate:SUB:SB  :CALCulate:SUB:INVert  :CALCulate:SUB:VSCale  :CALCulate:SUB:VOFFset  :CALCulate:SUB:SA :CALCulate:SUB:SB Syntax :CALCulate:SUB:SA <source> :CALCulate:SUB:SA? :CALCulate:SUB:SB <source> :CALCulate:SUB:SB? Description Set or query the channel source of signal source A or B of the subtraction operation.
  • Page 62 RIGOL 2 Command System :CALCulate:SUB:VSCale Syntax :CALCulate:SUB:VSCale <scale> :CALCulate:SUB:VSCale? Description Set or query the vertical scale of the subtraction operation result. Parameter Name Type Range Default 0.02V to 500V <scale> Real Related to the current channel vertical scale Note: For the channel vertical scale, refer to the :CHANnel<n>:SCALe...
  • Page 63: Calculate:multiply

    RIGOL 2 Command System :CALCulate:MULTiply :CALCulate:MULTiply:SA  :CALCulate:MULTiply:SB  :CALCulate:MULTiply:INVert  :CALCulate:MULTiply:VSCale  :CALCulate:MULTiply:VOFFset  :CALCulate:MULTiply:SA :CALCulate:MULTiply:SB Syntax :CALCulate:MULTiply:SA <source> :CALCulate:MULTiply:SA? :CALCulate:MULTiply:SB <source> :CALCulate:MULTiply:SB? Description Set or query the channel source of signal source A or B of the multiplication operation.
  • Page 64 RIGOL 2 Command System :CALCulate:MULTiply:VSCale Syntax :CALCulate:MULTiply:VSCale <scale> :CALCulate:MULTiply:VSCale? Description Set or query the vertical scale of the multiplication operation result. Parameter Name Type Range Default 5.0e-08U to 1.0e+07U <scale> Real Related to the current channel vertical scale Note: For the channel vertical scale, refer to the :CHANnel<n>:SCALe...
  • Page 65: Calculate:division

    RIGOL 2 Command System :CALCulate:DIVision :CALCulate:DIVision:SA  :CALCulate:DIVision:SB  :CALCulate:DIVision:INVert  :CALCulate:DIVision:VSCale  :CALCulate:DIVision:VOFFset  :CALCulate:DIVision:SA :CALCulate:DIVision:SB Syntax :CALCulate:DIVision:SA <source> :CALCulate:DIVision:SA? :CALCulate:DIVision:SB <source> :CALCulate:DIVision:SB? Description Set or query the channel source of signal source A or B of the division operation.
  • Page 66 RIGOL 2 Command System :CALCulate:DIVision:VSCale Syntax :CALCulate:DIVision:VSCale <scale> :CALCulate:DIVision:VSCale? Description Set or query the vertical scale of the division operation result. Parameter Name Type Range Default 5.0e-07U to 5.0e+08U <scale> Real Related to the current channel vertical scale Note: For the channel vertical scale, refer to the :CHANnel<n>:SCALe...
  • Page 67: Calculate:fft

    RIGOL 2 Command System :CALCulate:FFT :CALCulate:FFT:SOURce  :CALCulate:FFT:WINDow  :CALCulate:FFT:SPLit  :CALCulate:FFT:VSMode  :CALCulate:FFT:VSCale  :CALCulate:FFT:VOFFset  :CALCulate:FFT:HSCale  :CALCulate:FFT:HOFFset  :CALCulate:FFT:HSPan  :CALCulate:FFT:HCENter  :CALCulate:FFT:SOURce Syntax :CALCulate:FFT:SOURce <source> :CALCulate:FFT:SOURce? Description Set or query the signal source of FFT operation.
  • Page 68 RIGOL 2 Command System :CALCulate:FFT:WINDow Syntax :CALCulate:FFT:WINDow <window> :CALCulate:FFT:WINDow? Description Set or query the window function of the FFT operation. Parameter Name Type Range Default <window> Discrete {RECTangle|HANNing|HAMMing|BLACkman} RECTangle Explanation The window function can effectively reduce the spectrum leakage effect.
  • Page 69 RIGOL 2 Command System :CALCulate:FFT:VSMode Syntax :CALCulate:FFT:VSMode <vmode> :CALCulate:FFT:VSMode? Description Set or query the vertical scale type of the FFT operation result. Parameter Name Type Range Default <vmode> Discrete {VRMS|DB} Return Format The query returns VRMS or DBVR. :CALCulate:FFT:VSCale Syntax :CALCulate:FFT:VSCale <vscale>...
  • Page 70 RIGOL 2 Command System :CALCulate:FFT:VOFFset Syntax :CALCulate:FFT:VOFFset <offs> :CALCulate:FFT:VOFFset? Description Set or query the vertical offset of the FFT operation result. Parameter Name Type Range Default <offs> Real -40×VScale to 40×VScale Note: For the VScale (the vertical scale of MATH), refer to the :CALCulate:FFT:VSCale command.
  • Page 71 RIGOL 2 Command System :CALCulate:FFT:HOFFset Syntax :CALCulate:FFT:HOFFset <offs> :CALCulate:FFT:HOFFset? Description Set or query the horizontal offset of the FFT operation result. The unit is Hz. Parameter Name Type Range Default -0.4*the current FFT sample rate of the <offs> Real screen to +0.4*the current FFT sample rate of the screen Note: The current FFT sample rate of the screen = the number of points per grid horizontally/horizontal time base.
  • Page 72 RIGOL 2 Command System :CALCulate:FFT:HCENter Syntax :CALCulate:FFT:HCENter <center> :CALCulate:FFT:HCENter? Description Set or query the center frequency of the FFT operation result. The unit is Hz. Parameter Name Type Range Default Horizontal offset of the operation result <center> Real 35MHz +7*the current horizontal scale...
  • Page 73: Calculate:logic

    RIGOL 2 Command System :CALCulate:LOGic :CALCulate:LOGic:SA  :CALCulate:LOGic:SB  :CALCulate:LOGic:INVert  :CALCulate:LOGic:VSCale  :CALCulate:LOGic:VOFFset  :CALCulate:LOGic:OPERator  :CALCulate:LOGic:ATHReshold  :CALCulate:LOGic:BTHReshold  :CALCulate:LOGic:SA :CALCulate:LOGic:SB Syntax :CALCulate:LOGic:SA <source> :CALCulate:LOGic:SA? :CALCulate:LOGic:SB <source> :CALCulate:LOGic:SB? Description Set or query the channel source of signal source A or B of the logic operation.
  • Page 74 RIGOL 2 Command System :CALCulate:LOGic:INVert Syntax :CALCulate:LOGic:INVert <bool> :CALCulate:LOGic:INVert? Description Enable or disable the inverted display of the logic operation result; or query the current status of the inverted display of the logic operation result. Parameter Name Type Range Default <bool>...
  • Page 75 RIGOL 2 Command System :CALCulate:LOGic:VOFFset Syntax :CALCulate:LOGic:VOFFset <offs> :CALCulate:LOGic:VOFFset? Description Set or query the vertical offset of the logic operation result. Parameter Name Type Range Default <offs> Real -40×VScale to 40×VScale Note: For the VScale (the vertical scale of MATH), refer to the :CALCulate:LOGic:VSCale command.
  • Page 76 RIGOL 2 Command System :CALCulate:LOGic:ATHReshold :CALCulate:LOGic:BTHReshold Syntax :CALCulate:LOGic:ATHReshold <thre> :CALCulate:LOGic:ATHReshold? :CALCulate:LOGic:BTHReshold <thre> :CALCulate:LOGic:BTHReshold? Description Set or query the threshold of signal source A or B of logic operation. Parameter Name Type Range Default <thre> Real -4×VerticalScale-OFFSet to 4×VerticalScale-OFFSet Note: For the VerticalScale, refer to the :CHANnel<n>:SCALe...
  • Page 77: Calculate:advanced

    RIGOL 2 Command System :CALCulate:ADVanced :CALCulate:ADVanced:EXPRession  :CALCulate:ADVanced:INVert  :CALCulate:ADVanced:VARiable1  :CALCulate:ADVanced:VARiable2  :CALCulate:ADVanced:VSCale  :CALCulate:ADVanced:VOFFset  :CALCulate:ADVanced:EXPRession Syntax :CALCulate:ADVanced:EXPRession <expression> :CALCulate:ADVanced:EXPRession? Description Set or query the expression of advanced operation. Parameter Name Type Range Default <expression> ASCII string Refer to the Explanation...
  • Page 78 RIGOL 2 Command System :CALCulate:ADVanced:INVert Syntax :CALCulate:ADVanced:INVert <bool> :CALCulate:ADVanced:INVert? Description Enable or disable the inverted display of the advanced operation result; or query the current status of the inverted display of the advanced operation result. Parameter Name Type Range Default <bool>...
  • Page 79 RIGOL 2 Command System :CALCulate:ADVanced:VSCale Syntax :CALCulate:ADVanced:VSCale <numeric_value> :CALCulate:ADVanced:VSCale? Description Set or query the vertical scale of the advanced operation result. Parameter Name Type Range Default 2.0e-02V to 5.0e+02V <numeric_value> Real Related to the current channel vertical scale Note: For the channel vertical scale, refer to the :CHANnel<n>:SCALe...
  • Page 80: Calibrate Commands

    RIGOL 2 Command System :CALibrate Commands :CALibrate:DATE?  :CALibrate:STARt  :CALibrate:TIME?  :CALibrate:QUIT  :CALibrate:DATE? Syntax :CALibrate:DATE? Description Query the date of the last calibration. Return Format The query returns the date in <year>,<month>,<day> format. Wherein, <day> and <month> are double-digit figures and <year>...
  • Page 81: Calibrate:time

    RIGOL 2 Command System :CALibrate:TIME? Syntax :CALibrate:TIME? Description Query the time of the last calibration. Return Format The query returns the time in <hours>,<minutes>,<seconds> format. Wherein, <hours>, <minutes> and <seconds> are all double-digit figures. For example, 15,19,25. :CALibrate:QUIT Syntax :CALibrate:QUIT Description Exit the self-calibration at any time.
  • Page 82: Channel Commands

    RIGOL 2 Command System :CHANnel<n> Commands :CHANnel<n>:BWLimit  :CHANnel<n>:COUPling  :CHANnel<n>:DISPlay  :CHANnel<n>:INVert  :CHANnel<n>:IMPedance  :CHANnel<n>:OFFSet  :CHANnel<n>:SCALe  :CHANnel<n>:PROBe  :CHANnel<n>:UNITs  :CHANnel<n>:VERNier  :CHANnel<n>:TCAL  :CHANnel<n>:BWLimit Syntax :CHANnel<n>:BWLimit <type> :CHANnel<n>:BWLimit? Description Set or query bandwidth limit of the specified analog channel.
  • Page 83: Channel:Coupling

    RIGOL 2 Command System :CHANnel<n>:COUPling Syntax :CHANnel<n>:COUPling <coupling> :CHANnel<n>:COUPling? Description Set or query the coupling mode of the specified analog channel. Parameter Name Type Range Default <n> Discrete {1|2} <coupling> Discrete {AC|DC|GND} Explanation AC: the DC components of the signal under test are blocked.
  • Page 84: Channel:Invert

    RIGOL 2 Command System :CHANnel<n>:INVert Syntax :CHANnel<n>:INVert <bool> :CHANnel<n>:INVert? Description Enable or disable the inverted display of the specified analog channel; or query the current status of the inverted display of the specified analog channel. Parameter Name Type Range Default <n>...
  • Page 85: Channel:Offset

    RIGOL 2 Command System :CHANnel<n>:OFFSet Syntax :CHANnel<n>:OFFSet <offset> :CHANnel<n>:OFFSet? Description Set or query the vertical offset of the specified analog channel. The default unit is V. Parameter Name Type Range Default <n> Discrete {1|2} When the input impedance is 50Ω and the probe ratio is 1X: 500μV/div to 50mV/div: -2V to 2V...
  • Page 86: Channel:Scale

    RIGOL 2 Command System :CHANnel<n>:SCALe Syntax :CHANnel<n>:SCALe <scale> :CHANnel<n>:SCALe? Description Set or query the vertical scale of the specified analog channel. The default unit is V. Parameter Name Type Range Default <n> Discrete {1|2} When the input impedance is 50Ω...
  • Page 87: Channel:Probe

    RIGOL 2 Command System :CHANnel<n>:PROBe Syntax :CHANnel<n>:PROBe <atten> :CHANnel<n>:PROBe? Description Set or query the probe attenuation ratio of the specified analog channel. Parameter Name Type Range Default <n> Discrete {1|2} {0.01|0.02|0.05|0.1|0.2|0.5|1|2|5|10|20 <atten> Discrete |50|100|200|500|1000} Explanation After setting the probe ratio, multiply the sampled signal by the specified multiple and then display ...
  • Page 88: Channel:Vernier

    RIGOL 2 Command System :CHANnel<n>:VERNier Syntax :CHANnel<n>:VERNier <bool> :CHANnel<n>:VERNier? Description Enable or disable the fine adjustment function of the vertical scale of the specified analog channel; or query the current status of the fine adjustment function of the vertical scale of the specified analog channel.
  • Page 89: Channel:Tcal

    RIGOL 2 Command System :CHANnel<n>:TCAL Syntax :CHANnel<n>:TCAL <time> :CHANnel<n>:TCAL? Description Set or query the delay calibration time of the specified analog channel. The default unit is s. Parameter Name Type Range Default <n> Discrete {1|2} <time> Real -200ns to 200ns 0.00s...
  • Page 90: Cursor Commands

    RIGOL 2 Command System :CURSor Commands :CURSor:MODE  :CURSor:MANual  :CURSor:TRACk  :CURSor:MODE Syntax :CURSor:MODE <mode> :CURSor:MODE? Description Set or query the cursor measurement mode. Parameter Name Type Range Default <mode> Discrete {OFF|MANual|TRACk|AUTO|XY} Explanation OFF: disable the cursor measurement. MANual: enable the manual cursor measurement.
  • Page 91: Cursor:manual

    RIGOL 2 Command System :CURSor:MANual :CURSor:MANual:TYPE  :CURSor:MANual:SOURce  :CURSor:MANual:TUNit  :CURSor:MANual:VUNit  :CURSor:MANual:CAX  :CURSor:MANual:CBX  :CURSor:MANual:CAY  :CURSor:MANual:CBY  :CURSor:MANual:AXValue?  :CURSor:MANual:AYValue?  :CURSor:MANual:BXValue?  :CURSor:MANual:BYValue?  :CURSor:MANual:XDELta?  :CURSor:MANual:IXDelta?  :CURSor:MANual:YDELta?  :CURSor:MANual:TYPE Syntax :CURSor:MANual:TYPE <type> :CURSor:MANual:TYPE? Description Set or query the cursor type of manual cursor measurement.
  • Page 92 RIGOL 2 Command System :CURSor:MANual:SOURce Syntax :CURSor:MANual:SOURce <source> :CURSor:MANual:SOURce? Description Set or query the channel source of manual cursor measurement. Parameter Name Type Range Default <source> Discrete {CHANnel1|CHANnel2|MATH|LA|NONE} CHANnel1 Note: Only channels currently enabled can be selected as the channel source.
  • Page 93 RIGOL 2 Command System :CURSor:MANual:VUNit Syntax :CURSor:MANual:VUNit <unit> :CURSor:MANual:VUNit? Description Set or query vertical unit in manual cursor measurement. Parameter Name Type Range Default <unit> Discrete {SUNit|PERCent} SUNit SUNit: in the measurement results, the units of A->Y, B->Y and △Y will be automatically set to the unit of Explanation PERCent: in the measurement results, A->Y, B->Y and △X are in “%”.
  • Page 94 RIGOL 2 Command System :CURSor:MANual:CAX :CURSor:MANual:CBX Syntax :CURSor:MANual:CAX <ax> :CURSor:MANual:CAX? :CURSor:MANual:CBX <bx> :CURSor:MANual:CBX? Description Set or query the horizontal position of cursor A or cursor B in manual cursor measurement. Parameter Name Type Range Default <ax> Integer 0 to 699 <bx>...
  • Page 95 RIGOL 2 Command System :CURSor:MANual:CAY :CURSor:MANual:CBY Syntax :CURSor:MANual:CAY <ay> :CURSor:MANual:CAY? :CURSor:MANual:CBY <by> :CURSor:MANual:CBY? Description Set or query the vertical position of cursor A or cursor B in manual cursor measurement. Parameter Name Type Range Default <ay> Integer 0 to 399 <by>...
  • Page 96 RIGOL 2 Command System :CURSor:MANual:AXValue? :CURSor:MANual:AYValue? Syntax :CURSor:MANual:AXValue? :CURSor:MANual:AYValue? Description Query the X or Y value at cursor A in manual cursor measurement. Explanation For the horizontal position of cursor A, refer to the :CURSor:MANual:CAX command. The unit is ...
  • Page 97 RIGOL 2 Command System :CURSor:MANual:XDELta? Syntax :CURSor:MANual:XDELta? Query the difference △X between the X values at cursor A and cursor B in manual cursor measurement. Description Explanation For the horizontal position of cursor A, refer to the :CURSor:MANual:CAX command. ...
  • Page 98 RIGOL 2 Command System :CURSor:MANual:YDELta? Syntax :CURSor:MANual:YDELta? Query the difference △Y between the Y values at cursor A and cursor B in manual cursor measurement. Description Explanation For the vertical position of cursor A, refer to the :CURSor:MANual:CAY command. ...
  • Page 99: Cursor:track

    RIGOL 2 Command System :CURSor:TRACk :CURSor:TRACk:SOURce1  :CURSor:TRACk:SOURce2  :CURSor:TRACk:CAX  :CURSor:TRACk:CBX  :CURSor:TRACk:CAY?  :CURSor:TRACk:CBY?  :CURSor:TRACk:AXValue?  :CURSor:TRACk:AYValue?  :CURSor:TRACk:BXValue?  :CURSor:TRACk:BYValue?  :CURSor:TRACk:XDELta?  :CURSor:TRACk:YDELta?  :CURSor:TRACk:IXDelta?  :CURSor:TRACk:SOURce1 :CURSor:TRACk:SOURce2 Syntax :CURSor:TRACk:SOURce1 <source> :CURSor:TRACk:SOURce1? :CURSor:TRACk:SOURce2 <source> :CURSor:TRACk:SOURce2? Description Set or query the channel source of cursor A or cursor B in track cursor measurement.
  • Page 100 RIGOL 2 Command System :CURSor:TRACk:CAX :CURSor:TRACk:CBX Syntax :CURSor:TRACk:CAX <ax> :CURSor:TRACk:CAX? :CURSor:TRACk:CBX <bx> :CURSor:TRACk:CBX? Description Set or query the horizontal position of cursor A or cursor B in track cursor measurement. Parameter Name Type Range Default <ax> Integer 0 to 699 Explanation The horizontal and vertical positions of the cursor are defined by the pixel coordinate of the screen.
  • Page 101 RIGOL 2 Command System :CURSor:TRACk:AXValue? :CURSor:TRACk:AYValue? Syntax :CURSor:TRACk:AXValue? :CURSor:TRACk:AYValue? Description Query the X or Y value at cursor A in track cursor measurement. Explanation For the horizontal position of cursor A, refer to the :CURSor:TRACk:CAX command.  For the vertical position of cursor A, refer to the :CURSor:TRACk:CAY? command.
  • Page 102 RIGOL 2 Command System :CURSor:TRACk:XDELta? Syntax :CURSor:TRACk:XDELta? Query the difference △X between the X values at cursor A and cursor B in track cursor measurement and Description the unit is s. Explanation :CURSor:TRACk:CAX command. For the horizontal position of cursor A, refer to the ...
  • Page 103 RIGOL 2 Command System :CURSor:TRACk:IXDelta? Syntax :CURSor:TRACk:IXDelta? Description Query the reciprocal (1/△X) of the difference between the X values at cursor A and cursor B in track cursor measurement and the unit is Hz. Explanation For the horizontal position of cursor A, refer to the :CURSor:TRACk:CAX command.
  • Page 104: Display Commands

    RIGOL 2 Command System :DISPlay Commands :DISPlay:CLEar  :DISPlay:TYPE  :DISPlay:GRADing:TIME  :DISPlay:WBRightness  :DISPlay:GRID  :DISPlay:GBRightness  :DISPlay:MPERsistence  :DISPlay:DATA?  :DISPlay:CLEar Syntax :DISPlay:CLEar Description Clear all the waveforms on the screen. The function of this command is the same as that of CLEAR at the front panel.
  • Page 105: Display:type

    RIGOL 2 Command System :DISPlay:TYPE Syntax :DISPlay:TYPE <type> :DISPlay:TYPE? Description Set or query the display mode of the waveform on the screen. Parameter Name Type Range Default <type> Discrete {VECTors|DOTS} VECTors Explanation VECTors: the sample points are connected by lines and displayed. Normally, this mode can provide ...
  • Page 106: Display:grading:time

    RIGOL 2 Command System :DISPlay:GRADing:TIME Syntax :DISPlay:GRADing:TIME <time> :DISPlay:GRADing:TIME? Description Set or query the persistence time and the unit is s. Parameter Name Type Range Default <time> Discrete {MIN|0.05|0.1|0.2|0.5|1|2|5|10|20|INFinite} Explanation MIN: set the persistence time to its minimum to view the waveform changing in high refresh rate.
  • Page 107: Display:grid

    RIGOL 2 Command System :DISPlay:GRID Syntax :DISPlay:GRID <grid> :DISPlay:GRID? Description Set or query the grid type of screen display. Parameter Name Type Range Default <grid> Discrete {FULL|HALF|NONE} FULL Explanation FULL: turn the background grid and coordinate on.  HALF: turn the background grid off and coordinate on.
  • Page 108: Display:mpersistence

    RIGOL 2 Command System :DISPlay:MPERsistence Syntax :DISPlay:MPERsistence <time> :DISPlay:MPERsistence? Description Set or query the menu display time and the unit is s. Parameter Name Type Range Default <time> Discrete {1|2|5|10|20|INFinite} INFinite Return Format The query returns the menu display time set.
  • Page 109 RIGOL 2 Command System Note : The width is 800, the height is 480, the bit depth is 24Bit=3Byte, 54 is the size of the bitmap file header. Example Make sure that the buffer is large enough to receive the data stream; otherwise the program might be abnormal when reading the data stream.
  • Page 110: Function Commands

    RIGOL 2 Command System :FUNCtion Commands :FUNCtion:WRMode  :FUNCtion:WRECord  :FUNCtion:WREPlay  :FUNCtion:WANalyze  :FUNCtion:WRMode Syntax :FUNCtion:WRMode <mode> :FUNCtion:WRMode? Description Set or query the mode of waveform record. Parameter Name Type Range Default <mode> Discrete {OFF|RECord|PLAY‫׀‬KEEP|ANALyze} Explanation RECord: recording mode ...
  • Page 111: Function:wrecord

    RIGOL 2 Command System :FUNCtion:WRECord :FUNCtion:WRECord:FEND  :FUNCtion:WRECord:FMAX?  :FUNCtion:WRECord:INTerval  :FUNCtion:WRECord:OPERate  :FUNCtion:WRECord:FEND Syntax :FUNCtion:WRECord:FEND <frame> :FUNCtion:WRECord:FEND? Description Set or query the end frame of waveform record. Parameter Name Type Range Default 1 to the maximum number of frames can be <frame>...
  • Page 112 RIGOL 2 Command System :FUNCtion:WRECord:FMAX? Syntax :FUNCtion:WRECord:FMAX? Description Query the maximum number of frames that can be recorded currently. Explanation You can use the :FUNCtion:WRECord:FEND command to set the desired end frame. The maximum number of frames that can be recorded currently depends on the current memory depth...
  • Page 113 RIGOL 2 Command System :FUNCtion:WRECord:OPERate Syntax :FUNCtion:WRECord:OPERate <oper> :FUNCtion:WRECord:OPERate? Description Start or stop the waveform recording; or query the current status of the waveform recording. Parameter Name Type Range Default <oper> Discrete {RECord|STOP} STOP Return Format The query returns REC or STOP.
  • Page 114: Function:wreplay

    RIGOL 2 Command System :FUNCtion:WREPlay :FUNCtion:WREPlay:MODE  :FUNCtion:WREPlay:INTerval  :FUNCtion:WREPlay:FSTart  :FUNCtion:WREPlay:FCURrent  :FUNCtion:WREPlay:FEND  :FUNCtion:WREPlay:FMAX?  :FUNCtion:WREPlay:OPERate  :FUNCtion:WREPlay:TTAG  :FUNCtion:WREPlay:CTAG?  :FUNCtion:WREPlay:MODE Syntax :FUNCtion:WREPlay:MODE <mode> :FUNCtion:WREPlay:MODE? Description Set or query the mode of waveform playback. Parameter Name Type...
  • Page 115 RIGOL 2 Command System :FUNCtion:WREPlay:INTerval Syntax :FUNCtion:WREPlay:INTerval <interval> :FUNCtion:WREPlay:INTerval? Description Set or query the time interval in waveform playback and the unit is s. Parameter Name Type Range Default <interval> Real 100ns to 10s 100ns Return Format The query returns the time interval set in scientific notation.
  • Page 116 RIGOL 2 Command System :FUNCtion:WREPlay:FCURrent Syntax :FUNCtion:WREPlay:FCURrent <frame> :FUNCtion:WREPlay:FCURrent? Description Set or query the current frame in waveform playback. Parameter Name Type Range Default 1 to the maximum number of The maximum number of <frame> Integer frames recorded frames recorded Return Format The query returns an integer.
  • Page 117 RIGOL 2 Command System :FUNCtion:WREPlay:FMAX? Syntax :FUNCtion:WREPlay:FMAX? Description Query the maximum end frame (namely the maximum number of frames of waveform recorded) in waveform playback. Return Format The query returns the maximum end frame in integer. :FUNCtion:WREPlay:OPERate Syntax :FUNCtion:WREPlay:OPERate <oper>...
  • Page 118 RIGOL 2 Command System :FUNCtion:WREPlay:TTAG Syntax :FUNCtion:WREPlay:TTAG <bool> :FUNCtion:WREPlay:TTAG? Description Enable or disable the time tag in waveform playback; or query the current status of the time tag in waveform playback. Parameter Name Type Range Default <bool> Bool {{0|OFF}|{1|ON}} 0|OFF Return Format The query returns 0 or 1.
  • Page 119: Function:wanalyze

    RIGOL 2 Command System :FUNCtion:WANalyze :FUNCtion:WANalyze:MODE  :FUNCtion:WANalyze:SOURce  :FUNCtion:WANalyze:FCURrent  :FUNCtion:WANalyze:TDISp  :FUNCtion:WANalyze:SETup:SSTart  :FUNCtion:WANalyze:SETup:SSENd  :FUNCtion:WANalyze:SETup:SFRame  :FUNCtion:WANalyze:SETup:EFRame  :FUNCtion:WANalyze:SETup:THReshold  :FUNCtion:WANalyze:SETup:XMASk  :FUNCtion:WANalyze:SETup:YMASk  :FUNCtion:WANalyze:STEMplate  :FUNCtion:WANalyze:CMASk  :FUNCtion:WANalyze:STARt  :FUNCtion:WANalyze:CANCel  :FUNCtion:WANalyze:PREVious  :FUNCtion:WANalyze:NEXT  :FUNCtion:WANalyze:EFCount? ...
  • Page 120 RIGOL 2 Command System :FUNCtion:WANalyze:SOURce Syntax :FUNCtion:WANalyze:SOURce <sour> :FUNCtion:WANalyze:SOURce? Description Set or query the channel source for the waveform analysis. Parameter Name Type Range Default <sour> Discrete {CHANnel1|CHANnel2} CHANnel1 Note: Only channel currently enabled can be selected as the channel source.
  • Page 121 RIGOL 2 Command System :FUNCtion:WANalyze:TDISp Syntax :FUNCtion:WANalyze:TDISp <bool> :FUNCtion:WANalyze:TDISp? Description Enable or disable the template display; or query the current status of template display. Parameter Name Type Range Default <bool> Bool {{0|OFF}|{1|ON}} 0|OFF Return Format The query returns 0 or 1.
  • Page 122 RIGOL 2 Command System :FUNCtion:WANalyze:SETup:SFRame :FUNCtion:WANalyze:SETup:EFRame Syntax :FUNCtion:WANalyze:SETup:SFRame <sframe> :FUNCtion:WANalyze:SETup:SFRame? :FUNCtion:WANalyze:SETup:EFRame <eframe> :FUNCtion:WANalyze:SETup:EFRame? Description Set or query the start frame number or end frame number of waveform analysis. Parameter Name Type Range Default 1 to the maximum number <sframe> Integer...
  • Page 123 RIGOL 2 Command System :FUNCtion:WANalyze:SETup:XMASk :FUNCtion:WANalyze:SETup:YMASk Syntax :FUNCtion:WANalyze:SETup:XMASk <x> :FUNCtion:WANalyze:SETup:XMASk? :FUNCtion:WANalyze:SETup:YMASk <y> :FUNCtion:WANalyze:SETup:YMASk? Description Set or query the horizontal or vertical adjustment parameter in analysis based on the pass/fail mask and the unit is div. Parameter Name Type Range Default <x>...
  • Page 124 RIGOL 2 Command System :FUNCtion:WANalyze:CMASk Syntax :FUNCtion:WANalyze:CMASk Description Apply the mask currently created. Explanation For the setting of the horizontal adjustment parameter, refer to  :FUNCtion:WANalyze:SETup:XMASk command. For the setting of the vertical adjustment parameter, refer to the :FUNCtion:WANalyze:SETup:YMASk ...
  • Page 125 RIGOL 2 Command System :FUNCtion:WANalyze:PREVious Syntax :FUNCtion:WANalyze:PREVious Description Locate the error frame previous to the current error frame. :FUNCtion:WANalyze:NEXT Syntax :FUNCtion:WANalyze:NEXT Description Locate the error frame next to the current error frame. :FUNCtion:WANalyze:EFCount? Syntax :FUNCtion:WANalyze:EFCount? Description Query the total number of error frames discovered in the current analysis.
  • Page 126 RIGOL 2 Command System :FUNCtion:WANalyze:ECURrent Syntax :FUNCtion:WANalyze:ECURrent <NR1> :FUNCtion:WANalyze:ECURrent? Description Set or query the number of the current error frame. Parameter Name Type Range Default <NR1> Integer 1 to the total number of error frames Return Format The query returns an integer.
  • Page 127: La Commands (Mso2000A/Mso2000A-S)

    RIGOL 2 Command System :LA Commands (MSO2000A/MSO2000A-S) :LA:STATe  :LA:ACTive  :LA:DISPlay  :LA:AUTosort  :LA:DELete  :LA:SIZE  :LA:DIGital<n>:DISPlay  :LA:DIGital<n>:POSition  :LA:DIGital<n>:LABel  :LA:POD<n>:DISPlay  :LA:POD<n>:THReshold  :LA:GROup<n>:APPend  :LA:BUS<n>:CURRent  :LA:BUS<n>:DISPlay  :LA:BUS<n>:CHANnel  :LA:BUS<n>:FORMat  :LA:STATe Syntax :LA:STATe <bool>...
  • Page 128: La:active

    RIGOL 2 Command System :LA:ACTive Syntax :LA:ACTive {<digital>|<group>|none} :LA:ACTive? Description Set or query the current active channel or channel group. Parameter Name Type Range Default {D0|D1|D2|D3|D4|D5|D6|D7|D8|D9| <digital> Discrete D10|D11|D12|D13|D14|D15} <group> Discrete {GROup1|GROup2|GROup3|GROup4} Explanation <digital> is used to select any of channels D0-D15. The channel label and waveform corresponding ...
  • Page 129: La:display

    RIGOL 2 Command System :LA:DISPlay Syntax :LA:DISPlay {<digital>|<group>|<pod>},<state> :LA:DISPlay? {<digital>|<group>|<pod>} Description Turn on or off the specified digital channel, user-defined channel group or default channel group; or query the status of the specified digital channel or channel group. Parameter Name...
  • Page 130: La:delete

    RIGOL 2 Command System :LA:DELete Syntax :LA:DELete {<digital>|<group>} Description Undo the grouping setting of any of the 16 digital channels; or undo the grouping setting of any of GROup1-GROup4. Parameter Name Type Range Default {D0|D1|D2|D3|D4|D5|D6|D7|D8|D9| <digital> Discrete D10|D11|D12|D13|D14|D15} <group> Discrete...
  • Page 131: La:digital:Display

    RIGOL 2 Command System :LA:DIGital<n>:DISPlay Syntax :LA:DIGital<n>:DISPlay <bool> :LA:DIGital<n>:DISPlay? Description Turn on or off the specified digital channel; or query the status of the specified digital channel. Parameter Name Type Range Default <n> Discrete {0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15} <bool> Bool {{0|OFF}|{1|ON}} 0|OFF Explanation...
  • Page 132: La:digital:Label

    RIGOL 2 Command System :LA:DIGital<n>:LABel Syntax :LA:DIGital<n>:LABel <label> :LA:DIGital<n>:LABel? Description Set or query the label of the specified digital channel. Parameter Name Type Range Default <n> Discrete {0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15} It can include English uppercase letters (A to Z) and <label> ASCII string numbers (0 to 9).
  • Page 133: La:pod:Threshold

    RIGOL 2 Command System :LA:POD<n>:THReshold Syntax :LA:POD<n>:THReshold <threshold> :LA:POD<n>:THReshold? Description Set or query the threshold of the specified default channel group. The default unit is V. Parameter Name Type Range Default <n> Discrete {1|2} <threshold> Real -20.0V to +20.0V 0.7V Return Format The query returns the current threshold in scientific notation.
  • Page 134: La:bus:Current

    RIGOL 2 Command System :LA:BUS<n>:CURRent Syntax :LA:BUS<n>:CURRent :LA:BUS<n>:CURRent? Description Set the specified digital bus as the current bus; or query whether the specified digital bus is the current bus. Parameter Name Type Range Default <n> Integer {1|2} Return Format The query returns TURE or FALSE.
  • Page 135: La:bus:Channel

    RIGOL 2 Command System :LA:BUS<n>:CHANnel Syntax :LA:BUS<n>:CHANnel <channel> :LA:BUS<n>:CHANnel? Description Set or query the channels of the specified digital bus. Parameter Name Type Range Default <n> Integer {1|2} <channel> Bool {L|H|HL} Explanation L: the channels of the digital bus are D7-D0 ...
  • Page 136: Lan Commands

    RIGOL 2 Command System :LAN Commands :LAN:DHCP  :LAN:AUToip  :LAN:GATeway  :LAN:DNS  :LAN:MAC?  :LAN:MANual  :LAN:INITiate  :LAN:IPADdress  :LAN:SMASk  :LAN:STATus?  :LAN:VISA?  :LAN:APPLy  :LAN:DHCP Syntax :LAN:DHCP <bool> :LAN:DHCP? Description Enable or disable the DHCP configuration mode; or query the current status of the DHCP configuration mode.
  • Page 137: Lan:autoip

    RIGOL 2 Command System :LAN:AUToip Syntax :LAN:AUToip <bool> :LAN:AUToip? Description Enable or disable the auto IP configuration mode; or query the current status of the auto IP configuration mode. Parameter Name Type Range Default <bool> Bool {{0|OFF}|{1|ON}} 1|ON Explanation When the three IP configuration types are all turned on, the priority of the parameter configuration ...
  • Page 138: Lan:gateway

    RIGOL 2 Command System :LAN:GATeway Syntax :LAN:GATeway <string> :LAN:GATeway? Description Set or query the gateway. Parameter Name Type Range Default <string> ASCII string nnn,nnn,nnn,nnn Explanation When setting <string>, the range of the first nnn is from 0 to 223 (except 127) and the ranges of the ...
  • Page 139: Lan:mac

    RIGOL 2 Command System :LAN:MAC? Syntax :LAN:MAC? Description Query the MAC address of the instrument. This address is displayed on the oscilloscope in “00-19-AF-30-00-00” format. Return Format The query returns the MAC address in string. For example, 0019af300000. :LAN:MANual Syntax :LAN:MANual <bool>...
  • Page 140: Lan:initiate

    RIGOL 2 Command System :LAN:INITiate Syntax :LAN:INITiate Description Initialize the network parameters. Before using this command, make sure that the oscilloscope has been connected to the network correctly. :LAN:IPADdress Syntax :LAN:IPADdress <string> :LAN:IPADdress? Description Set or query the IP address of the instrument.
  • Page 141: Lan:smask

    RIGOL 2 Command System :LAN:SMASk Syntax :LAN:SMASk <string> :LAN:SMASk? Description Set or query the subnet mask. Parameter Name Type Range Default <string> ASCII string nnn,nnn,nnn,nnn Explanation When setting <string>, the range of the nnn is from 0 to 255. ...
  • Page 142: Lan:apply

    RIGOL 2 Command System :LAN:APPLy Syntax :LAN:APPLy Description Apply the network configuration. 2-126 MSO2000A/DS2000A Programming Guide...
  • Page 143: Mask Commands

    RIGOL 2 Command System :MASK Commands :MASK:ENABle  :MASK:SOURce  :MASK:OPERate  :MASK:MDISplay  :MASK:SOOutput  :MASK:OUTPut  :MASK:X  :MASK:Y  :MASK:CREate  :MASK:PASSed?  :MASK:FAILed?  :MASK:TOTal?  :MASK:RESet  :MASK:DATA  :MASK:ENABle Syntax :MASK:ENABle <bool> :MASK:ENABle? Description Enable or disable the pass/fail test function;...
  • Page 144: Mask:source

    RIGOL 2 Command System :MASK:SOURce Syntax :MASK:SOURce <source> :MASK:SOURce? Description Set or query the measurement source of the pass/fail test. Parameter Name Type Range Default <source> Discrete {CHANnel1|CHANnel2} CHANnel1 Explanation Only the channel enabled can be selected as the measurement source of the pass/fail test.
  • Page 145: Mask:mdisplay

    RIGOL 2 Command System :MASK:MDISplay Syntax :MASK:MDISplay <bool> :MASK:MDISplay? Description When the pass/fail test is enabled, enable or disable the message display; or query the current status of the message display. Parameter Name Type Range Default <bool> Bool {{0|OFF}|{1|ON}} 0|OFF...
  • Page 146: Mask:output

    RIGOL 2 Command System :MASK:OUTPut Syntax :MASK:OUTPut <type> :MASK:OUTPut? Description Set or query the output mode when the test fails. Parameter Name Type Range Default <type> Discrete {FAIL|FSOund} FAIL Explanation FAIL: when a failed waveform is detected, the oscilloscope displays the statistic results and outputs a ...
  • Page 147: Mask:create

    RIGOL 2 Command System :MASK:CREate Syntax :MASK:CREate Description Create the mask of the pass/fail test using the horizontal adjustment parameter and the vertical adjustment parameter currently set. Explanation This command is valid only when the pass/fail test function is enabled (:MASK:ENABle) and is in ...
  • Page 148: Mask:total

    RIGOL 2 Command System :MASK:TOTal? Syntax :MASK:TOTal? Description Query the total number of frames of the pass/fail test. Return Format The query returns an integer. :MASK:RESet Syntax :MASK:RESet Description Reset the number of passed frames, the number of failed frames and the total number of frames.
  • Page 149: Mask:data

    RIGOL 2 Command System :MASK:DATA Syntax :MASK:DATA <mask> :MASK:DATA? Description Send or read the mask of the pass/fail test. Parameter Name Type Range Default Refer to the Explanation <mask> Explanation <mask> is binary data block. Directly place the data stream behind the command string to finish the ...
  • Page 150: Measure Commands

    RIGOL 2 Command System :MEASure Commands :MEASure:SOURce  :MEASure:COUNter:SOURce  :MEASure:COUNter:VALue?  :MEASure:CLEar  :MEASure:RECover  :MEASure:ADISplay  :MEASure:AMSource  :MEASure:STATistic:DISPlay  :MEASure:STATistic:MODE  :MEASure:STATistic:RESet  :MEASure:SETup:TYPE  :MEASure:SETup:MAX  :MEASure:SETup:MID  :MEASure:SETup:MIN  :MEASure:SETup:PSA  :MEASure:SETup:PSB  :MEASure:SETup:DSA ...
  • Page 151: Measure:source

    RIGOL 2 Command System :MEASure:VAMP  :MEASure:VAVG  :MEASure:VBASe  :MEASure:VMAX  :MEASure:VMIN  :MEASure:VPP  :MEASure:VRMS  :MEASure:PVRMs  :MEASure:VTOP  :MEASure:MARea  :MEASure:MPARea  :MEASure:SOURce Syntax :MEASure:SOURce <sour> :MEASure:SOURce? Description Set or query the signal source of the current measurement parameter.
  • Page 152: Measure:counter:source

    RIGOL 2 Command System :MEASure:COUNter:SOURce Syntax :MEASure:COUNter:SOURce <sour> :MEASure:COUNter:SOURce? Description Set or query the measurement source of the frequency counter or disable the frequency counter measurement. Parameter Name Type Range Default {D0|D1|D2|D3|D4|D5|D6|D7|D8|D9|D10|D11|D12|D13|D14|D <sour> Discrete 15|CHANnel1|CHANnel2|EXT|OFF} Return Format The query returns D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, CHAN1, CHAN2, EXT or OFF.
  • Page 153: Measure:clear

    RIGOL 2 Command System :MEASure:CLEar Syntax :MEASure:CLEar <item> Description Clear any or all of the last five measurement items that are enabled. Parameter Name Type Range Default <item> Discrete {ITEM1|ITEM2|ITEM3|ITEM4|ITEM5|ALL} Explanation The last five measurement items are derermined according to the order in which they are enabled and they will not change as you delete one or more measurement items.
  • Page 154: Measure:adisplay

    RIGOL 2 Command System :MEASure:ADISplay Syntax :MEASure:ADISplay <bool> :MEASure:ADISplay? Description Enable or disable all measurement; or query the current status of all measurement. Parameter Name Type Range Default <bool> Bool {{0|OFF}|{1|ON}} 0|OFF Explanation All measurement can measure all the time and voltage parameters of the current measurement ...
  • Page 155: Measure:statistic:display

    RIGOL 2 Command System :MEASure:STATistic:DISPlay Syntax :MEASure:STATistic:DISPlay <bool> :MEASure:STATistic:DISPlay? Description Enable or disable the statistic function; or query the current status of the statistic function. Parameter Name Type Range Default <bool> Bool {{0|OFF}|{1|ON}} 0|OFF Explanation When the statistic function is enabled, the system will make statistics and display the measurement results of at most five measurement items that are enabled last.
  • Page 156: Measure:statistic:reset

    RIGOL 2 Command System :MEASure:STATistic:RESet Syntax :MEASure:STATistic:RESet Description Clear the history statistic data and make statistic again. :MEASure:SETup:TYPE Syntax :MEASure:SETup:TYPE <type> :MEASure:SETup:TYPE? Description Set or query the type of measurement setting. Parameter Name Type Range Default <type> Discrete {DELay|PHASe|THReshold} DELay Return Format The query returns DEL, PHAS or THR.
  • Page 157: Measure:setup:max

    RIGOL 2 Command System :MEASure:SETup:MAX :MEASure:SETup:MID :MEASure:SETup:MIN Syntax :MEASure:SETup:MAX <max> :MEASure:SETup:MAX? :MEASure:SETup:MID <mid> :MEASure:SETup:MID? :MEASure:SETup:MIN <min> :MEASure:SETup:MIN? Description Set or query the upper limit, middle value or lower limit of the auto measurement of the analog channels. The unit is %.
  • Page 158: Measure:setup:psa

    RIGOL 2 Command System :MEASure:SETup:PSA :MEASure:SETup:PSB Syntax :MEASure:SETup:PSA <sourceA> :MEASure:SETup:PSA? :MEASure:SETup:PSB <sourceB> :MEASure:SETup:PSB? Description Set or query the channel source of source A or B in phase 1 →2 , phase 1 →2 , phase 1 →2 phase 1 →2 measurements.
  • Page 159: Measure:setup:dsa

    RIGOL 2 Command System :MEASure:SETup:DSA :MEASure:SETup:DSB Syntax :MEASure:SETup:DSA <sourceA> :MEASure:SETup:DSA? :MEASure:SETup:DSB <sourceB> :MEASure:SETup:DSB? Description Set or query the channel source of source A or B in delay 1 →2 , delay 1 →2 , delay 1 →2 delay 1 →2 measurements.
  • Page 160: Measure:area

    RIGOL 2 Command System :MEASure:AREA Syntax :MEASure:AREA <area> :MEASure:AREA? Description Set or query the measurement range. Parameter Name Type Range Default <area> Discrete {SCReen|CREGion} SCReen Explanation SCReen: waveforms within the screen region.  CREGion: region specified by cursor A (refer to the...
  • Page 161: Measure:history:display

    RIGOL 2 Command System :MEASure:HISTory:DISPlay Syntax :MEASure:HISTory:DISPlay <bool> :MEASure:HISTory:DISPlay? Description Enable or disable the measurement history; or query the current status of the measurement history. Parameter Name Type Range Default <bool> Bool {{0|OFF}|{1|ON}} 0|OFF Return Format The query returns 0 or 1.
  • Page 162: Measure:fdelay

    RIGOL 2 Command System :MEASure:FDELay Syntax 1 :MEASure:FDELay <chanA>,<chanB> Description 1 Enable the delay measurement function (falling edge-falling edge) between the two specified channels. Syntax 2 :MEASure:FDELay? <chanA>,<chanB> Description 2 Enable the delay measurement function (falling edge-falling edge) between the two specified channels and return the measurement result (the unit is s).
  • Page 163 RIGOL 2 Command System :MEASure:FDELay:SMAXimum? :MEASure:FDELay:SMINimum? :MEASure:FDELay:SCURrent? :MEASure:FDELay:SAVerage? :MEASure:FDELay:SDEViation? Syntax 1 :MEASure:FDELay:SMAXimum <chanA>,<chanB> :MEASure:FDELay:SMINimum <chanA>,<chanB> :MEASure:FDELay:SCURrent <chanA>,<chanB> :MEASure:FDELay:SAVerage <chanA>,<chanB> :MEASure:FDELay:SDEViation <chanA>,<chanB> Description 1 Enable the delay measurement function (falling edge-falling edge) between the two specified channels and enable the statistic function.
  • Page 164: Measure:f2Rdelay

    RIGOL 2 Command System :MEASure:F2RDeLay Syntax 1 :MEASure:F2RDeLay <chanA>,<chanB> Description 1 Enable the delay measurement function (falling edge-rising edge) between the two specified channels. Syntax 2 :MEASure:F2RDeLay? <chanA>,<chanB> Description 2 Enable the delay measurement function (falling edge-rising edge) between the two specified channels and return the measurement result (the unit is s).
  • Page 165 RIGOL 2 Command System :MEASure:F2RDeLay:SMAXimum? :MEASure:F2RDeLay:SMINimum? :MEASure:F2RDeLay:SCURrent? :MEASure:F2RDeLay:SAVerage? :MEASure:F2RDeLay:SDEViation? Syntax 1 :MEASure:F2RDeLay:SMAXimum <chanA>,<chanB> :MEASure:F2RDeLay:SMINimum <chanA>,<chanB> :MEASure:F2RDeLay:SCURrent <chanA>,<chanB> :MEASure:F2RDeLay:SAVerage <chanA>,<chanB> :MEASure:F2RDeLay:SDEViation <chanA>,<chanB> Description 1 Enable the delay measurement function (falling edge-rising edge) between the two specified channels and enable the statistic function.
  • Page 166: Measure:fphase

    RIGOL 2 Command System :MEASure:FPHase Syntax 1 :MEASure:FPHase <chanA>,<chanB> Description 1 Enable the phase deviation measurement function (falling edge-falling edge) between the two specified channels. Syntax 2 :MEASure:FPHase? <chanA>,<chanB> Description 2 Enable the phase deviation measurement function (falling edge-falling edge) between the two specified channels and return the measurement result (the unit is degree).
  • Page 167 RIGOL 2 Command System :MEASure:FPHase:SMAXimum? :MEASure:FPHase:SMINimum? :MEASure:FPHase:SCURrent? :MEASure:FPHase:SAVerage? :MEASure:FPHase:SDEViation? Syntax 1 :MEASure:FPHase:SMAXimum <chanA>,<chanB> :MEASure:FPHase:SMINimum <chanA>,<chanB> :MEASure:FPHase:SCURrent <chanA>,<chanB> :MEASure:FPHase:SAVerage <chanA>,<chanB> :MEASure:FPHase:SDEViation <chanA>,<chanB> Description 1 Enable the phase deviation measurement function (falling edge-falling edge) between the two specified channels and enable the statistic function.
  • Page 168: Measure:f2Rphase

    RIGOL 2 Command System :MEASure:F2RPhase Syntax 1 :MEASure:F2RPhase <chanA>,<chanB> Description 1 Enable the phase deviation measurement function (falling edge-rising edge) between the two specified channels. Syntax 2 :MEASure:F2RPhase? <chanA>,<chanB> Description 2 Enable the phase deviation measurement function (falling edge-rising edge) between the two specified channels and return the measurement result (the unit is degree).
  • Page 169 RIGOL 2 Command System :MEASure:F2RPhase:SMAXimum? :MEASure:F2RPhase:SMINimum? :MEASure:F2RPhase:SCURrent? :MEASure:F2RPhase:SAVerage? :MEASure:F2RPhase:SDEViation? Syntax 1 :MEASure:F2RPhase:SMAXimum <chanA>,<chanB> :MEASure:F2RPhase:SMINimum <chanA>,<chanB> :MEASure:F2RPhase:SCURrent <chanA>,<chanB> :MEASure:F2RPhase:SAVerage <chanA>,<chanB> :MEASure:F2RPhase:SDEViation <chanA>,<chanB> Description 1 Enable the phase deviation measurement function (falling edge-rising edge) between the two specified channels and enable the statistic function.
  • Page 170: Measure:frequency

    RIGOL 2 Command System :MEASure:FREQuency Syntax 1 :MEASure:FREQuency <chan> Description 1 Enable the frequency measurement function of the specified channel. Syntax 2 :MEASure:FREQuency? <chan> Description 2 Enable the frequency measurement function of the specified channel and return the measurement result (the unit is Hz).
  • Page 171 RIGOL 2 Command System :MEASure:FREQuency:SMAXimum? :MEASure:FREQuency:SMINimum? :MEASure:FREQuency:SCURrent? :MEASure:FREQuency:SAVerage? :MEASure:FREQuency:SDEViation? Syntax 1 :MEASure:FREQuency:SMAXimum <chan> :MEASure:FREQuency:SMINimum <chan> :MEASure:FREQuency:SCURrent <chan> :MEASure:FREQuency:SAVerage <chan> :MEASure:FREQuency:SDEViation <chan> Description 1 Enable the frequency measurement function of the specified channel and enable the statistic function. Syntax 2 :MEASure:FREQuency:SMAXimum? <chan>...
  • Page 172: Measure:ftime

    RIGOL 2 Command System :MEASure:FTIMe Syntax 1 :MEASure:FTIMe <chan> Description 1 Enable the fall time measurement function of the specified channel. Syntax 2 :MEASure:FTIMe? <chan> Description 2 Enable the fall time measurement function of the specified channel and return the measurement result (the unit is s).
  • Page 173 RIGOL 2 Command System :MEASure:FTIMe:SMAXimum? :MEASure:FTIMe:SMINimum? :MEASure:FTIMe:SCURrent? :MEASure:FTIMe:SAVerage? :MEASure:FTIMe:SDEViation? Syntax 1 :MEASure:FTIMe:SMAXimum <chan> :MEASure:FTIMe:SMINimum <chan> :MEASure:FTIMe:SCURrent <chan> :MEASure:FTIMe:SAVerage <chan> :MEASure:FTIMe:SDEViation <chan> Description 1 Enable the fall time measurement function of the specified channel and enable the statistic function. Syntax 2 :MEASure:FTIMe:SMAXimum? <chan>...
  • Page 174: Measure:nduty

    RIGOL 2 Command System :MEASure:NDUTy Syntax 1 :MEASure:NDUTy <chan> Description 1 Enable the negative duty cycle measurement function of the specified channel. Syntax 2 :MEASure:NDUTy? <chan> Description 2 Enable the negative duty cycle measurement function of the specified channel and return the measurement result.
  • Page 175 RIGOL 2 Command System :MEASure:NDUTy:SMAXimum? :MEASure:NDUTy:SMINimum? :MEASure:NDUTy:SCURrent? :MEASure:NDUTy:SAVerage? :MEASure:NDUTy:SDEViation? Syntax 1 :MEASure:NDUTy:SMAXimum <chan> :MEASure:NDUTy:SMINimum <chan> :MEASure:NDUTy:SCURrent <chan> :MEASure:NDUTy:SAVerage <chan> :MEASure:NDUTy:SDEViation <chan> Description 1 Enable the negative duty cycle measurement function of the specified channel and enable the statistic function. Syntax 2 :MEASure:NDUTy:SMAXimum? <chan>...
  • Page 176: Measure:nwidth

    RIGOL 2 Command System :MEASure:NWIDth Syntax 1 :MEASure:NWIDth <chan> Description 1 Enable the negative pulse width measurement function of the specified channel. Syntax 2 :MEASure:NWIDth? <chan> Description 2 Enable the negative pulse width measurement function of the specified channel and return the measurement result (the unit is s).
  • Page 177 RIGOL 2 Command System :MEASure:NWIDth:SMAXimum? :MEASure:NWIDth:SMINimum? :MEASure:NWIDth:SCURrent? :MEASure:NWIDth:SAVerage? :MEASure:NWIDth:SDEViation? Syntax 1 :MEASure:NWIDth:SMAXimum <chan> :MEASure:NWIDth:SMINimum <chan> :MEASure:NWIDth:SCURrent <chan> :MEASure:NWIDth:SAVerage <chan> :MEASure:NWIDth:SDEViation <chan> Description 1 Enable the negative pulse width measurement function of the specified channel and enable the statistic function. Syntax 2 :MEASure:NWIDth:SMAXimum? <chan>...
  • Page 178: Measure:overshoot

    RIGOL 2 Command System :MEASure:OVERshoot Syntax 1 :MEASure:OVERshoot <chan> Description 1 Enable the overshoot measurement function of the specified channel. Syntax 2 :MEASure:OVERshoot? <chan> Description 2 Enable the overshoot measurement function of the specified channel and return the measurement result.
  • Page 179 RIGOL 2 Command System :MEASure:OVERshoot:SMAXimum? :MEASure:OVERshoot:SMINimum? :MEASure:OVERshoot:SCURrent? :MEASure:OVERshoot:SAVerage? :MEASure:OVERshoot:SDEViation? Syntax 1 :MEASure:OVERshoot:SMAXimum <chan> :MEASure:OVERshoot:SMINimum <chan> :MEASure:OVERshoot:SCURrent <chan> :MEASure:OVERshoot:SAVerage <chan> :MEASure:OVERshoot:SDEViation <chan> Description 1 Enable the overshoot measurement function of the specified channel and enable the statistic function. Syntax 2 :MEASure:OVERshoot:SMAXimum? <chan>...
  • Page 180: Measure:pduty

    RIGOL 2 Command System :MEASure:PDUTy Syntax 1 :MEASure:PDUTy <chan> Description 1 Enable the positive duty cycle measurement function of the specified channel. Syntax 2 :MEASure:PDUTy? <chan> Description 2 Enable the positive duty cycle measurement function of the specified channel and return the measurement result.
  • Page 181 RIGOL 2 Command System :MEASure:PDUTy:SMAXimum? :MEASure:PDUTy:SMINimum? :MEASure:PDUTy:SCURrent? :MEASure:PDUTy:SAVerage? :MEASure:PDUTy:SDEViation? Syntax 1 :MEASure:PDUTy:SMAXimum <chan> :MEASure:PDUTy:SMINimum <chan> :MEASure:PDUTy:SCURrent <chan> :MEASure:PDUTy:SAVerage <chan> :MEASure:PDUTy:SDEViation <chan> Description 1 Enable the positive duty cycle measurement function of the specified channel and enable the statistic function. Syntax 2 :MEASure:PDUTy:SMAXimum? <chan>...
  • Page 182: Measure:period

    RIGOL 2 Command System :MEASure:PERiod Syntax 1 :MEASure:PERiod <chan> Description 1 Enable the period measurement function of the specified channel. Syntax 2 :MEASure:PERiod? <chan> Description 2 Enable the period measurement function of the specified channel and return the measurement result.
  • Page 183 RIGOL 2 Command System :MEASure:PERiod:SMAXimum? :MEASure:PERiod:SMINimum? :MEASure:PERiod:SCURrent? :MEASure:PERiod:SAVerage? :MEASure:PERiod:SDEViation? Syntax 1 :MEASure:PERiod:SMAXimum <chan> :MEASure:PERiod:SMINimum <chan> :MEASure:PERiod:SCURrent <chan> :MEASure:PERiod:SAVerage <chan> :MEASure:PERiod:SDEViation <chan> Description 1 Enable the period measurement function of the specified channel and enable the statistic function. Syntax 2 :MEASure:PERiod:SMAXimum? <chan>...
  • Page 184: Measure:preshoot

    RIGOL 2 Command System :MEASure:PREShoot Syntax 1 :MEASure:PREShoot <chan> Description 1 Enable the preshoot measurement function of the specified channel. Syntax 2 :MEASure:PREShoot? <chan> Description 2 Enable the preshoot measurement function of the specified channel and return the measurement result.
  • Page 185 RIGOL 2 Command System :MEASure:PREShoot:SMAXimum? :MEASure:PREShoot:SMINimum? :MEASure:PREShoot:SCURrent? :MEASure:PREShoot:SAVerage? :MEASure:PREShoot:SDEViation? Syntax 1 :MEASure:PREShoot:SMAXimum <chan> :MEASure:PREShoot:SMINimum <chan> :MEASure:PREShoot:SCURrent <chan> :MEASure:PREShoot:SAVerage <chan> :MEASure:PREShoot:SDEViation <chan> Description 1 Enable the preshoot measurement function of the specified channel and enable the statistic function. Syntax 2 :MEASure:PREShoot:SMAXimum? <chan>...
  • Page 186: Measure:pwidth

    RIGOL 2 Command System :MEASure:PWIDth Syntax 1 :MEASure:PWIDth <chan> Description 1 Enable the positive pulse width measurement function of the specified channel. Syntax 2 :MEASure:PWIDth? <chan> Description 2 Enable the positive pulse width measurement function of the specified channel and return the measurement result.
  • Page 187 RIGOL 2 Command System :MEASure:PWIDth:SMAXimum? :MEASure:PWIDth:SMINimum? :MEASure:PWIDth:SCURrent? :MEASure:PWIDth:SAVerage? :MEASure:PWIDth:SDEViation? Syntax 1 :MEASure:PWIDth:SMAXimum <chan> :MEASure:PWIDth:SMINimum <chan> :MEASure:PWIDth:SCURrent <chan> :MEASure:PWIDth:SAVerage <chan> :MEASure:PWIDth:SDEViation <chan> Description 1 Enable the positive pulse width measurement function of the specified channel and enable the statistic function. Syntax 2 :MEASure:PWIDth:SMAXimum? <chan>...
  • Page 188: Measure:rtime

    RIGOL 2 Command System :MEASure:RTIMe Syntax 1 :MEASure:RTIMe <chan> Description 1 Enable the rise time measurement function of the specified channel. Syntax 2 :MEASure:RTIMe? <chan> Description 2 Enable the rise time measurement function of the specified channel and return the measurement result (the unit is s).
  • Page 189 RIGOL 2 Command System :MEASure:RTIMe:SMAXimum? :MEASure:RTIMe:SMINimum? :MEASure:RTIMe:SCURrent? :MEASure:RTIMe:SAVerage? :MEASure:RTIMe:SDEViation? Syntax 1 :MEASure:RTIMe:SMAXimum <chan> :MEASure:RTIMe:SMINimum <chan> :MEASure:RTIMe:SCURrent <chan> :MEASure:RTIMe:SAVerage <chan> :MEASure:RTIMe:SDEViation <chan> Description 1 Enable the rise time measurement function of the specified channel and enable the statistic function. Syntax 2 :MEASure:RTIMe:SMAXimum? <chan>...
  • Page 190: Measure:rdelay

    RIGOL 2 Command System :MEASure:RDELay Syntax 1 :MEASure:RDELay <chanA>,<chanB> Description 1 Enable the delay measurement function (rising edge-rising edge) between the two specified channels. Syntax 2 :MEASure:RDELay? <chanA>,<chanB> Description 2 Enable the delay measurement function (rising edge-rising edge) between the two specified channels and return the measurement result (the unit is s).
  • Page 191 RIGOL 2 Command System :MEASure:RDELay:SMAXimum? :MEASure:RDELay:SMINimum? :MEASure:RDELay:SCURrent? :MEASure:RDELay:SAVerage? :MEASure:RDELay:SDEViation? Syntax 1 :MEASure:RDELay:SMAXimum <chanA>,<chanB> :MEASure:RDELay:SMINimum <chanA>,<chanB> :MEASure:RDELay:SCURrent <chanA>,<chanB> :MEASure:RDELay:SAVerage <chanA>,<chanB> :MEASure:RDELay:SDEViation <chanA>,<chanB> Description 1 Enable the delay measurement function (rising edge-rising edge) between the two specified channels and enable the statistic function.
  • Page 192: Measure:r2Fdelay

    RIGOL 2 Command System :MEASure:R2FDeLay Syntax1 :MEASure:R2FDeLay <chanA>,<chanB> Description1 Enable the delay measurement function (rising edge-falling edge) between the two specified channels. Syntax2 :MEASure:R2FDeLay? <chanA>,<chanB> Description2 Enable the delay measurement function (rising edge-falling edge) between the two specified channels and return the measurement result (the unit is s).
  • Page 193 RIGOL 2 Command System :MEASure:R2FDeLay:SMAXimum? :MEASure:R2FDeLay:SMINimum? :MEASure:R2FDeLay:SCURrent? :MEASure:R2FDeLay:SAVerage? :MEASure:R2FDeLay:SDEViation? Syntax 1 :MEASure:R2FDeLay:SMAXimum <chanA>,<chanB> :MEASure:R2FDeLay:SMINimum <chanA>,<chanB> :MEASure:R2FDeLay:SCURrent <chanA>,<chanB> :MEASure:R2FDeLay:SAVerage <chanA>,<chanB> :MEASure:R2FDeLay:SDEViation <chanA>,<chanB> Description 1 Enable the delay measurement function (rising edge-falling edge) between the two specified channels and enable the statistic function.
  • Page 194: Measure:rphase

    RIGOL 2 Command System :MEASure:RPHase Syntax 1 :MEASure:RPHase <chanA>,<chanB> Description 1 Enable the phase deviation measurement function (rising edge-rising edge) between the two specified channels. Syntax 2 :MEASure:RPHase? <chanA>,<chanB> Description 2 Enable the phase deviation measurement function (rising edge-rising edge) between the two specified channels and return the measurement result (the unit is degree).
  • Page 195 RIGOL 2 Command System :MEASure:RPHase:SMAXimum? :MEASure:RPHase:SMINimum? :MEASure:RPHase:SCURrent? :MEASure:RPHase:SAVerage? :MEASure:RPHase:SDEViation? Syntax 1 :MEASure:RPHase:SMAXimum <chanA>,<chanB> :MEASure:RPHase:SMINimum <chanA>,<chanB> :MEASure:RPHase:SCURrent <chanA>,<chanB> :MEASure:RPHase:SAVerage <chanA>,<chanB> :MEASure:RPHase:SDEViation <chanA>,<chanB> Description 1 Enable the phase deviation measurement function (rising edge-rising edge) between the two specified channels and enable the statistic function.
  • Page 196: Measure:r2Fphase

    RIGOL 2 Command System :MEASure:R2FPhase Syntax 1 :MEASure:R2FPhase <chanA>,<chanB> Description 1 Enable the phase deviation measurement function (rising edge-falling edge) between the two specified channels. Syntax 2 :MEASure:R2FPhase? <chanA>,<chanB> Description 2 Enable the phase deviation measurement function (rising edge-falling edge) between the two specified channels and return the measurement result (the unit is degree).
  • Page 197 RIGOL 2 Command System :MEASure:R2FPhase:SMAXimum? :MEASure:R2FPhase:SMINimum? :MEASure:R2FPhase:SCURrent? :MEASure:R2FPhase:SAVerage? :MEASure:R2FPhase:SDEViation? Syntax 1 :MEASure:R2FPhase:SMAXimum <chanA>,<chanB> :MEASure:R2FPhase:SMINimum <chanA>,<chanB> :MEASure:R2FPhase:SCURrent <chanA>,<chanB> :MEASure:R2FPhase:SAVerage <chanA>,<chanB> :MEASure:R2FPhase:SDEViation <chanA>,<chanB> Description 1 Enable the phase deviation measurement function (rising edge-rising edge) between the two specified channels and enable the statistic function.
  • Page 198: Measure:vamp

    RIGOL 2 Command System :MEASure:VAMP Syntax 1 :MEASure:VAMP <chan> Description 1 Enable the amplitude measurement function of the specified channel. Syntax 2 :MEASure:VAMP? <chan> Description 2 Enable the amplitude measurement function of the specified channel and return the measurement result.
  • Page 199 RIGOL 2 Command System :MEASure:VAMP:SMAXimum? :MEASure:VAMP:SMINimum? :MEASure:VAMP:SCURrent? :MEASure:VAMP:SAVerage? :MEASure:VAMP:SDEViation? Syntax 1 :MEASure:VAMP:SMAXimum <chan> :MEASure:VAMP:SMINimum <chan> :MEASure:VAMP:SCURrent <chan> :MEASure:VAMP:SAVerage <chan> :MEASure:VAMP:SDEViation <chan> Description 1 Enable the amplitude measurement function of the specified channel and enable the statistic function. Syntax 2 :MEASure:VAMP:SMAXimum? <chan>...
  • Page 200: Measure:vavg

    RIGOL 2 Command System :MEASure:VAVG Syntax 1 :MEASure:VAVG <chan> Description 1 Enable the amplitude average measurement function of the specified channel. Syntax 2 :MEASure:VAVG? <chan> Description 2 Enable the amplitude average measurement function of the specified channel and return the measurement result.
  • Page 201 RIGOL 2 Command System :MEASure:VAVG:SMAXimum? :MEASure:VAVG:SMINimum? :MEASure:VAVG:SCURrent? :MEASure:VAVG:SAVerage? :MEASure:VAVG:SDEViation? Syntax 1 :MEASure:VAVG:SMAXimum <chan> :MEASure:VAVG:SMINimum <chan> :MEASure:VAVG:SCURrent <chan> :MEASure:VAVG:SAVerage <chan> :MEASure:VAVG:SDEViation <chan> Description 1 Enable the amplitude average measurement function of the specified channel and enable the statistic function. Syntax 2 :MEASure:VAVG:SMAXimum? <chan>...
  • Page 202: Measure:vbase

    RIGOL 2 Command System :MEASure:VBASe Syntax 1 :MEASure:VBASe <chan> Description 1 Enable the amplitude base value measurement function of the specified channel. Syntax 2 :MEASure:VBASe? <chan> Description 2 Enable the amplitude base value measurement function of the specified channel and return the measurement result.
  • Page 203 RIGOL 2 Command System :MEASure:VBASe:SMAXimum? :MEASure:VBASe:SMINimum? :MEASure:VBASe:SCURrent? :MEASure:VBASe:SAVerage? :MEASure:VBASe:SDEViation? Syntax 1 :MEASure:VBASe:SMAXimum <chan> :MEASure:VBASe:SMINimum <chan> :MEASure:VBASe:SCURrent <chan> :MEASure:VBASe:SAVerage <chan> :MEASure:VBASe:SDEViation <chan> Description 1 Enable the amplitude base value measurement function of the specified channel and enable the statistic function. Syntax 2 :MEASure:VAVG:SMAXimum? <chan>...
  • Page 204: Measure:vmax

    RIGOL 2 Command System :MEASure:VMAX Syntax 1 :MEASure:VMAX <chan> Description 1 Enable the amplitude maximum value measurement function of the specified channel. Syntax 2 :MEASure:VMAX? <chan> Description 2 Enable the amplitude maximum value measurement function of the specified channel and return the measurement result.
  • Page 205 RIGOL 2 Command System :MEASure:VMAX:SMAXimum? :MEASure:VMAX:SMINimum? :MEASure:VMAX:SCURrent? :MEASure:VMAX:SAVerage? :MEASure:VMAX:SDEViation? Syntax 1 :MEASure:VMAX:SMAXimum <chan> :MEASure:VMAX:SMINimum <chan> :MEASure:VMAX:SCURrent <chan> :MEASure:VMAX:SAVerage <chan> :MEASure:VMAX:SDEViation <chan> Description 1 Enable the amplitude maximum value measurement function of the specified channel and enable the statistic function. Syntax 2 :MEASure:VMAX:SMAXimum? <chan>...
  • Page 206: Measure:vmin

    RIGOL 2 Command System :MEASure:VMIN Syntax 1 :MEASure:VMIN <chan> Description 1 Enable the amplitude minimum value measurement function of the specified channel. Syntax 2 :MEASure:VMIN? <chan> Description 2 Enable the amplitude minimum value measurement function of the specified channel and return the measurement result.
  • Page 207 RIGOL 2 Command System :MEASure:VMIN:SMAXimum? :MEASure:VMIN:SMINimum? :MEASure:VMIN:SCURrent? :MEASure:VMIN:SAVerage? :MEASure:VMIN:SDEviation? Syntax 1 :MEASure:VMIN:SMAXimum <chan> :MEASure:VMIN:SMINimum <chan> :MEASure:VMIN:SCURrent <chan> :MEASure:VMIN:SAVerage <chan> :MEASure:VMIN:SDEViation <chan> Description 1 Enable the amplitude minimum value measurement function of the specified channel and enable the statistic function. Syntax 2 :MEASure:VMIN:SMAXimum? <chan>...
  • Page 208: Measure:vpp

    RIGOL 2 Command System :MEASure:VPP Syntax 1 :MEASure:VPP <chan> Description 1 Enable the peak-peak value measurement function of the specified channel. Syntax 2 :MEASure:VPP? <chan> Description 2 Enable the peak-peak value measurement function of the specified channel and return the measurement result.
  • Page 209 RIGOL 2 Command System :MEASure:VPP:SMAXimum? :MEASure:VPP:SMINimum? :MEASure:VPP:SCURrent? :MEASure:VPP:SAVerage? :MEASure:VPP:SDEViation? Syntax 1 :MEASure:VPP:SMAXimum <chan> :MEASure:VPP:SMINimum <chan> :MEASure:VPP:SCURrent <chan> :MEASure:VPP:SAVerage <chan> :MEASure:VPP:SDEViation <chan> Description 1 Enable the peak-peak value measurement function of the specified channel and enable the statistic function. Syntax 2 :MEASure:VPP:SMAXimum? <chan>...
  • Page 210: Measure:vrms

    RIGOL 2 Command System :MEASure:VRMS Syntax 1 :MEASure:VRMS <chan> Description 1 Enable the RMS value measurement function on the whole signal of the specified channel. Syntax 2 :MEASure:VRMS? <chan> Description 2 Enable the RMS value measurement function on the whole signal of the specified channel and return the measurement result.
  • Page 211 RIGOL 2 Command System :MEASure:VRMS:SMAXimum? :MEASure:VRMS:SMINimum? :MEASure:VRMS:SCURrent? :MEASure:VRMS:SAVerage? :MEASure:VRMS:SDEViation? Syntax 1 :MEASure:VRMS:SMAXimum <chan> :MEASure:VRMS:SMINimum <chan> :MEASure:VRMS:SCURrent <chan> :MEASure:VRMS:SAVerage <chan> :MEASure:VRMS:SDEViation <chan> Description 1 Enable the RMS value measurement function on the whole signal of the specified channel and enable the statistic function.
  • Page 212: Measure:pvrms

    RIGOL 2 Command System :MEASure:PVRMs Syntax 1 :MEASure:PVRMs <chan> Description 1 Enable the RMS value measurement function within a single period of the specified channel. Syntax 2 :MEASure:PVRMs? <chan> Description 2 Enable the RMS value measurement function within a single period of the specified channel and return the measurement result.
  • Page 213 RIGOL 2 Command System :MEASure:PVRMs:SMAXimum? :MEASure:PVRMs:SMINimum? :MEASure:PVRMs:SCURrent? :MEASure:PVRMs:SAVerage? :MEASure:PVRMs:SDEViation? Syntax 1 :MEASure:PVRMs:SMAXimum <chan> :MEASure:PVRMs:SMINimum <chan> :MEASure:PVRMs:SCURrent <chan> :MEASure:PVRMs:SAVerage <chan> :MEASure:PVRMs:SDEViation <chan> Description 1 Enable the RMS value measurement function within a single period of the specified channel and enable the statistic function.
  • Page 214: Measure:vtop

    RIGOL 2 Command System :MEASure:VTOP Syntax 1 :MEASure:VTOP <chan> Description 1 Enable the amplitude top value measurement function of the specified channel. Syntax 2 :MEASure:VTOP? <chan> Description 2 Enable the amplitude top value measurement function of the specified channel and return the measurement result.
  • Page 215 RIGOL 2 Command System :MEASure:VTOP:SMAXimum? :MEASure:VTOP:SMINimum? :MEASure:VTOP:SCURrent? :MEASure:VTOP:SAVerage? :MEASure:VTOP:SDEViation? Syntax 1 :MEASure:VTOP:SMAXimum <chan> :MEASure:VTOP:SMINimum <chan> :MEASure:VTOP:SCURrent <chan> :MEASure:VTOP:SAVerage <chan> :MEASure:VTOP:SDEViation <chan> Description 1 Enable the amplitude top value measurement function of the specified channel and enable the statistic function. Syntax 2 :MEASure:VTOP:SMAXimum? <chan>...
  • Page 216: Measure:marea

    RIGOL 2 Command System :MEASure:MARea Syntax 1 :MEASure:MARea <chan> Description 1 Enable the area measurement function of the specified channel. Syntax 2 :MEASure:MARea? <chan> Description 2 Enable the area measurement function of the specified channel and return the measurement result (the...
  • Page 217 RIGOL 2 Command System :MEASure:MARea:SMAXimum? :MEASure:MARea:SMINimum? :MEASure:MARea:SCURrent? :MEASure:MARea:SAVerage? :MEASure:MARea:SDEViation? Syntax 1 :MEASure:MARea:SMAXimum <chan> :MEASure:MARea:SMINimum <chan> :MEASure:MARea:SCURrent <chan> :MEASure:MARea:SAVerage <chan> :MEASure:MARea:SDEViation <chan> Description 1 Enable the area measurement function of the specified channel and enable the statistic function. Syntax 2 :MEASure:MARea:SMAXimum? <chan>...
  • Page 218: Measure:mparea

    RIGOL 2 Command System :MEASure:MPARea Syntax 1 :MEASure:MPARea <chan> Description 1 Enable the period area measurement function of the specified channel. Syntax 2 :MEASure:MPARea? <chan> Description 2 Enable the period area measurement function of the specified channel and return the measurement result...
  • Page 219 RIGOL 2 Command System :MEASure:MPARea:SMAXimum? :MEASure:MPARea:SMINimum? :MEASure:MPARea:SCURrent? :MEASure:MPARea:SAVerage? :MEASure:MPARea:SDEViation? Syntax 1 :MEASure:MPARea:SMAXimum <chan> :MEASure:MPARea:SMINimum <chan> :MEASure:MPARea:SCURrent <chan> :MEASure:MPARea:SAVerage <chan> :MEASure:MPARea:SDEViation <chan> Description 1 Enable the period area measurement function of the specified channel and enable the statistic function. Syntax 2 :MEASure:MPARea:SMAXimum? <chan>...
  • Page 220: Output Commands (Mso2000A-S/Ds2000A-S)

    RIGOL 2 Command System :OUTPut<n> Commands (MSO2000A-S/DS2000A-S) The :OUTPut<n> commands are used to enable or disable the output of the built-in signal source as well as set its output impedance. :OUTPut[<n>][:STATe]  :OUTPut[<n>]:IMPedance  :OUTPut[<n>][:STATe] Syntax :OUTPut[<n>][:STATe] <bool> :OUTPut[<n>][:STATe]? Description Enable or disable the output of the specified signal source channel;...
  • Page 221: Recall Commands

    RIGOL 2 Command System :RECall Commands :RECall:SETup  :RECall:TRACe  :RECall:WAVeform  :RECall:SETup Syntax :RECall:SETup <file_spec> Description Recall the setup file stored in the external memory. Parameter Name Type Range Default <file_spec> ASCII string Refer to the Explanation Explanation Beforing recalling the setup file, use the...
  • Page 222: Recall:trace

    RIGOL 2 Command System :RECall:TRACe Syntax :RECall:TRACe <file_spec> Description Recall the trace file stored in the external memory. Parameter Name Type Range Default <file_spec> ASCII string Refer to the Explanation Explanation Beforing recalling the trace file, use the :SAVE:TRACe[:STARt] command to store the corresponding ...
  • Page 223: Reference Commands

    RIGOL 2 Command System :REFerence Commands :REFerence<n>:CURRent  :REFerence<n>:ENABle  :REFerence:COLor  :REFerence:CURRent?  :REFerence:DISPlay  :REFerence:RESet  :REFerence:SAVe  :REFerence:SOURce  :REFerence:VSCale  :REFerence:VOFFset  :REFerence<n>:CURRent Syntax :REFerence<n>:CURRent Description Select the current reference channel. Parameter Name Type Range Default <n>...
  • Page 224: Reference:Enable

    RIGOL 2 Command System :REFerence<n>:ENABle Syntax :REFerence<n>:ENABle <bool> :REFerence<n>:ENABle? Description Turn on or off the specified reference channel; or query the status of the specified reference channel. Parameter Name Type Range Default <n> Discrete {1|2|3|4|5|6|7|8|9|10} Ref1: 1|ON <bool> Bool {{0|OFF}|{1|ON}}...
  • Page 225: Reference:current

    RIGOL 2 Command System :REFerence:CURRent? Syntax :REFerence:CURRent? Description Query the current REF channel. Return Format The query returns REFn; wherein, n is an integer from 1 to 10. :REFerence:DISPlay Syntax :REFerence:DISPlay <bool> :REFerence:DISPlay? Description Turn on or off the REF control menu; or query whether the REF control menu is turned on.
  • Page 226: Reference:save

    RIGOL 2 Command System :REFerence:SAVe Syntax :REFerence:SAVe Description Store the waveform (screen region) of the specified signal source to the internal memory as the reference waveform of the current reference channel and display the waveform on the screen. Explanation This operation can only store the reference waveform in the volatile memory and the waveform will be cleared at power-off.
  • Page 227: Reference:vscale

    RIGOL 2 Command System :REFerence:VSCale Syntax :REFerence:VSCale <vscale> :REFerence:VSCale? Description Set or query the vertical scale of the current refrence channel waveform. The unit is the same with that of the current signal source. Parameter Name Type Range Default <vscale>...
  • Page 228: Reference:voffset

    RIGOL 2 Command System :REFerence:VOFFset Syntax :REFerence:VOFFset <voffset> :REFerence:VOFFset? Description Set or query the vertical offset of the current reference channel waveform. The unit is the same with that of the current signal source. Parameter Name Type Range Default <voffset>...
  • Page 229: Save Commands

    RIGOL 2 Command System :SAVE Commands :SAVE:CSV[:STARt]  :SAVE:CSV:FACTors  :SAVE:CSV:LENGth  :SAVE:FORMat  :SAVE:IMAGe[:STARt]  :SAVE:IMAGe:TYPE  :SAVE:IMAGe:FACTors  :SAVE:SETup[:STARt]  :SAVE:TRACe[:STARt]  :SAVE:WAVeform[:STARt]  :SAVE:REFerence[:STARt]  :SAVE:MTESt[:STARt]  :SAVE:ARB[:STARt]  2-213 MSO2000A/DS2000A Programming Guide...
  • Page 230: Save:csv[:Start]

    RIGOL 2 Command System :SAVE:CSV[:STARt] Syntax :SAVE:CSV[:STARt] <file_spec> Description Save the waveform data on the screen into the external memory in “*.csv” format. Parameter Name Type Range Default <file_spec> ASCII string Refer to the Explanation Explanation <file_spec> includes the file storage directory and the filename with suffix. Its length cannot ...
  • Page 231: Save:csv:factors

    RIGOL 2 Command System :SAVE:CSV:FACTors Syntax :SAVE:CSV:FACTors <bool> :SAVE:CSV:FACTors? Description Enable or disable the parameter storage function of CSV storage; or query whether the parameter storage function of CSV storage is enabled. Parameter Name Type Range Default <bool> Bool {{0|OFF}|{1|ON}}...
  • Page 232: Save:format

    RIGOL 2 Command System :SAVE:FORMat Syntax :SAVE:FORMat <format> :SAVE:FORMat? Description Set or query the storage format. Parameter Name Type Range Default <format> Discrete {TRACe|WAVeform|SETup|PICTure|CSV} PICTure Return Format The query returns TRAC, WAV, SET, PICT or CSV. :SAVE:IMAGe[:STARt] Syntax :SAVE:IMAGe[:STARt] <file_spec>...
  • Page 233: Save:image:type

    RIGOL 2 Command System :SAVE:IMAGe:TYPE Syntax :SAVE:IMAGe:TYPE <type> :SAVE:IMAGe:TYPE? Description Set or query the picture type of picture storage. Parameter Name Type Range Default <type> Discrete {BMP24bit|JPEG|PNG|TIFF} Return Format The query returns BMP24, JPEG, PNG or TIFF. :SAVE:IMAGe:FACTors Syntax :SAVE:IMAGe:FACTors <bool>...
  • Page 234: Save:setup[:Start]

    RIGOL 2 Command System :SAVE:SETup[:STARt] Syntax :SAVE:SETup[:STARt] {<internal_loc>|<file_spec>} Description Store the current parameter settings of the oscilloscope into the internal or external memory in “*.stp” format. Parameter Name Type Range Default <internal_loc> ASCII string C:\LocalSetup0.stp to C:\LocalSetup9.stp Refer to the Explanation <file_spec>...
  • Page 235: Save:trace[:Start]

    RIGOL 2 Command System :SAVE:TRACe[:STARt] Syntax :SAVE:TRACe[:STARt] {<file_spec>} Description Store the waveform trace into the external memory in “*.trc” format. Parameter Name Type Range Default Refer to the Explanation <file_spec> ASCII string Explanation <file_spec> includes the file storage directory and the filename with suffix. Its length cannot exceeds 64 characters.
  • Page 236: Save:reference[:Start]

    RIGOL 2 Command System :SAVE:REFerence[:STARt] Syntax :SAVE:REFerence[:STARt] {<internal_loc>|<file_spec>} Description Store the reference waveform currently stored by the oscilloscope into the internal or external memory in “*.ref” format. Parameter Name Type Range Default <internal_loc> ASCII string C:\LocalREF0.ref to C:\LocalREF9.ref Refer to the Explanation <file_spec>...
  • Page 237: Save:mtest[:Start]

    RIGOL 2 Command System :SAVE:MTESt[:STARt] Syntax :SAVE:MTESt[:STARt] {<internal_loc>|<file_spec>} Description Store the current pass/fail test mask into the internal or external memory in “*.pf” format. Parameter Name Type Range Default <internal_loc> ASCII string C:\LocalPF0 to C:\LocalPF9 Refer to the Explanation <file_spec>...
  • Page 238: Save:arb[:Start]

    RIGOL 2 Command System :SAVE:ARB[:STARt] Syntax :SAVE:ARB[:STARt] {<internal_loc>|<file_spec>} Description Store the arbitrary waveform currently edited into the internal or external memory in “*.arb” format. Parameter Name Type Range Default <internal_loc> ASCII string C:\LocalArb0 to C:\LocalArb9 Refer to the Explanation <file_spec>...
  • Page 239: Source Commands (Mso2000A-S/Ds2000A-S)

    RIGOL 2 Command System :SOURce<n> Commands (MSO2000A-S/DS2000A-S) The [:SOURce<n>] commands are used to set the output waveforms and their parameters of the built-in signal source of the oscilloscope. <n> is the number of the channel (1 or 2) and the operation will be executed on Source1 by default if [:SOURce<n>] is omitted.
  • Page 240: [:Source]:Frequency[:Fixed]

    RIGOL 2 Command System [:SOURce<n>]:FREQuency[:FIXed] Syntax [:SOURce<n>]:FREQuency[:FIXed] {<frequency>|MINimum|MAXimum} [:SOURce<n>]:FREQuency[:FIXed]? [MINimum|MAXimum] Description Set or query the output frequency of the specified signal source channel when the modulation of the specified signal source is not enabled; set or query the carrier frequency of the specified signal source channel when the modulation of the specified signal source is enabled.
  • Page 241: [:Source]:Phase:initiate

    RIGOL 2 Command System [:SOURce<n>]:PHASe:INITiate Syntax [:SOURce<n>]:PHASe:INITiate Description Execute the align phase operation. Parameter Name Type Range Default <n> Discrete {1|2} Explanation When executing the align phase operation, the oscilloscope will re-configure the two channels to output according to the preset frequency and phase.
  • Page 242: [:Source]:Function[:Shape]

    RIGOL 2 Command System [:SOURce<n>]:FUNCtion[:SHAPe] Syntax [:SOURce<n>]:FUNCtion[:SHAPe] <wave> [:SOURce<n>]:FUNCtion[:SHAPe]? Description Set or query the output waveform when the modulation of the specified signal source is not enabled. Set or query the carrier waveform of modulation when the modulation of the specified signal source is enabled;...
  • Page 243: [:Source]:Function:ramp:symmetry

    RIGOL 2 Command System [:SOURce<n>]:FUNCtion:RAMP:SYMMetry Syntax [:SOURce<n>]:FUNCtion:RAMP:SYMMetry {<val>|MINimum|MAXimum} [:SOURce<n>]:FUNCtion:RAMP:SYMMetry? [MINimum|MAXimum] Description Set or query the symmetry of the ramp. Parameter Name Type Range Default <val> Real 0% to 100% <n> Discrete {1|2} Explanation Symmetry is defined as the percentage that the rising period takes up in the whole period.
  • Page 244: [:Source]:Voltage[:Level][:Immediate][:Amplitude]

    RIGOL 2 Command System [:SOURce<n>]:VOLTage[:LEVel][:IMMediate][:AMPLitude] Syntax [:SOURce<n>]:VOLTage[:LEVel][:IMMediate][:AMPLitude] {<amplitude>|MINimum|MAXimum} [:SOURce<n>]:VOLTage[:LEVel][:IMMediate][:AMPLitude]? [MINimum|MAXimum] Description Set or query the amplitude of the waveform currently selected. The default unit is Vpp. Parameter Name Type Range Default HighZ: 20mVpp to 5Vpp <amplitude> Real 5Vpp 50Ω: 10mVpp to 2.5Vpp <n>...
  • Page 245: [:Source]:Voltage[:Level][:Immediate]:Offset

    RIGOL 2 Command System [:SOURce<n>]:VOLTage[:LEVel][:IMMediate]:OFFSet Syntax [:SOURce<n>]:VOLTage[:LEVel][:IMMediate]:OFFSet {<offset>|MINimum|MAXimum} [:SOURce<n>]:VOLTage[:LEVel][:IMMediate]:OFFSet? [MINimum|MAXimum] Description Set or query the DC offset of the waveform currently selected. The default unit is VDC. Parameter Name Type Range Default HighZ: -2.5+current amplitude/2 to 2.5- current amplitude /2 <offset>...
  • Page 246: [:Source]:Pulse:dcycle

    RIGOL 2 Command System [:SOURce<n>]:PULSe:DCYCle Syntax [:SOURce<n>]:PULSe:DCYCle {<percent>|MINimum|MAXimum} [:SOURce<n>]:PULSe:DCYCle? [MINimum|MAXimum] Description Set or query the duty cycle of the pulse. Parameter Name Type Range Default <percent> Real 10% to 90% <n> Discrete {1|2} Explanation The duty cycle is defined as the percent that the high level takes up in a whole period.
  • Page 247: [:Source]:Mod[:State]

    RIGOL 2 Command System [:SOURce<n>]:MOD[:STATe] Syntax [:SOURce<n>]:MOD[:STATe] <bool> [:SOURce<n>]:MOD[:STATe]? Description Enable or disable the modulation function; or query the status of the modulation function. Parameter Name Type Range Default <bool> Bool {{0|OFF}|{1|ON}} 0|OFF <n> Discrete {1|2} Explanation The signal source of MSO2000A/DS2000A supports AM (Amplitude Modulation) and FM (Frequency ...
  • Page 248: [:Source]:Mod:type

    RIGOL 2 Command System [:SOURce<n>]:MOD:TYPe Syntax [:SOURce<n>]:MOD:TYPe <type> [:SOURce<n>]:MOD:TYPe? Description Set or query the modulation type. Parameter Name Type Range Default <type> Discrete {AM|FM} <n> Discrete {1|2} Explanation AM: amplitude modulation. The amplitude of the carrier varies with the amplitude of the modulating ...
  • Page 249: [:Source]:Mod:am:internal:frequency

    RIGOL 2 Command System [:SOURce<n>]:MOD:AM:INTernal:FREQuency Syntax [:SOURce<n>]:MOD:AM:INTernal:FREQuency {<frequency>|MINimum|MAXimum} [:SOURce<n>]:MOD:AM:INTernal:FREQuency? [MINimum|MAXimum] Description Set or query the modulating waveform frequency of AM. The default unit is Hz. Parameter Name Type Range Default <frequency> Real 1Hz to 50kHz 1kHz <n> Discrete {1|2} Return Format The query returns the current modulating waveform frequency in scientific notation.
  • Page 250: [:Source]:Mod:fm[:Deviation]

    RIGOL 2 Command System [:SOURce<n>]:MOD:FM[:DEVIation] Syntax [:SOURce<n>]:MOD:FM[:DEVIation] {<dev>|MINimum|MAXimum} [:SOURce<n>]:MOD:FM[:DEVIation]? [MINimum|MAXimum] Description Set or query the frequency deviation of FM . The default unit is Hz. Parameter Name Type Range Default 0Hz to the current frequency of the carrier waveform. The sum of the frequency <dev>...
  • Page 251: [:Source]:Mod:fm:internal:function

    RIGOL 2 Command System [:SOURce<n>]:MOD:FM:INTernal:FUNCtion Syntax [:SOURce<n>]:MOD:FM:INTernal:FUNCtion <wave> [:SOURce<n>]:MOD:FM:INTernal:FUNCtion? Description Set or query the modulating waveform of FM. Parameter Name Type Range Default <wave> Discrete {SINusoid|SQUare|RAMP|NOISe} SINusoid <n> Discrete {1|2} Return Format The query returns SIN, SQU, RAMP or NOIS.
  • Page 252: [:Source]:Apply:noise

    RIGOL 2 Command System [:SOURce<n>]:APPLy:NOISe [:SOURce<n>]:APPLy:PULSe [:SOURce<n>]:APPLy:RAMP [:SOURce<n>]:APPLy:SINusoid [:SOURce<n>]:APPLy:SQUare [:SOURce<n>]:APPLy:USER Syntax [:SOURce<n>]:APPLy:NOISe [<amp>[,<offset>]] [:SOURce<n>]:APPLy:PULSe [<freq>[,<amp>[,<offset>]]] [:SOURce<n>]:APPLy:RAMP [<freq>[,<amp>[,<offset>[,<phase>]]]] [:SOURce<n>]:APPLy:SINusoid [<freq>[,<amp>[,<offset>[,<phase>]]]] [:SOURce<n>]:APPLy:SQUare [<freq>[,<amp>[,<offset>[,<phase>]]]] [:SOURce<n>]:APPLy:USER [<freq>[,<amp>[,<offset>[,<phase>]]]] Description Configure the specified signal source channel to output a signal with the specified waveform and parameters.
  • Page 253 RIGOL 2 Command System SINusoid: sine SQUare: square USER: arbitrary waveform <freq>: set the frequency of the specified waveform (noise does not have this parameter). The  default unit is Hz. <amp>: set the amplitude of the specified waveform. The default unit is Vpp.
  • Page 254: [:Source]:Apply

    RIGOL 2 Command System [:SOURce<n>]:APPLy? Syntax [:SOURce<n>]:APPLy? Description Query the output configuration of the specified signal source channel. Parameter Name Type Range Default [<n>] Discrete {1|2} Return Format The query returns the current output configuration in “<Waveform Name>,<Frequency>,<Amplitude>,<Offset>,<Start Phase>” format. When the corresponding parameter does not exist, the parameter will be replaced by DEF.
  • Page 255: System Commands

    RIGOL 2 Command System :SYSTem Commands :SYSTem:AOUTput  :SYSTem:AUToscale  :SYSTem:BEEPer  :SYSTem:DATE  :SYSTem:ERRor[:NEXT]?  :SYSTem:EXPand  :SYSTem:GAMount?  :SYSTem:GPIB  :SYSTem:KEY:PRESs  :SYSTem:KEY:INCRease  :SYSTem:KEY:DECRease  :SYSTem:LANGuage  :SYSTem:OPTion:INSTall  :SYSTem:OPTion:UNINSTall  :SYSTem:OPTion:VALid?  :SYSTem:PON  :SYSTem:PSTatus ...
  • Page 256: System:aoutput

    RIGOL 2 Command System :SYSTem:AOUTput Syntax :SYSTem:AOUTput <aux output> :SYSTem:AOUTput? Description Set or query the type of the signal output from the [Trigger Out] connector at the rear panel. Parameter Name Type Range Default <aux output> Discrete {TOUT|PFAil} TOUT Explanation TOUT: output a signal that can reflect the current acquisition rate of the oscilloscope via the ...
  • Page 257: System:beeper

    RIGOL 2 Command System :SYSTem:BEEPer Syntax :SYSTem:BEEPer <bool> :SYSTem:BEEPer? Description Enable or disable the beeper; or query the status of the beeper. Parameter Name Type Range Default <bool> Bool {{0|OFF}|{1|ON}} 0|OFF Return Format The query returns 0 or 1. :SYSTem:DATE Syntax :SYSTem:DATE <year>,<month>,<day>...
  • Page 258: System:error[:Next]

    RIGOL 2 Command System :SYSTem:ERRor[:NEXT]? Syntax :SYSTem:ERRor[:NEXT]? Description Query and delete the last system error message. Return Format The query returns the error message in “<Message Number>,<Message Content>” format. Wherein, <Message Number> is an integer and <Message Content> is a double-quotated ASCII string. For example, -410,"Query INTERRUPTED".
  • Page 259: System:gamount

    RIGOL 2 Command System :SYSTem:GAMount? Syntax :SYSTem:GAMount? Description Query the number of grids on the screen horizontally. Return Format The query returns the number of grids on the screen horizontally in integer. For this oscilloscope, the return value is always 14.
  • Page 260: System:key:press

    RIGOL 2 Command System :SYSTem:KEY:PRESs Syntax :SYSTem:KEY:PRESs <key> Description Press the specified key at the front panel of the oscilloscope. Parameter Name Type Range Default {CH1|CH2|MATH|REF|LA|DECode1|DECode2|AOFF| MOFF|F1|F2|F3|F4|F5|F6|F7|QPRevious|QNEXt| VPOSition|VPOSition1|VPOSition2|VSCale|VSCale1| VSCale2|HSCale|HPOSition|HMENu|KFUNction| TLEVel|TMENu|TFORce|TMODe|CLEar|AUTO|RSTop| <key> Discrete SINGle|QPRInt|MEASure|ACQuire|STORage| CURSor|DISPlay|UTILity|HELP|SRECord|ERECord| PPAuse|FFP10|FFP20|FFP30|FFP40|FFP50| FFP60|FFP70|FFN5|FFN10|FFN20|FFN30|FFN40| FFN50|FFN60|FFN70|SOURce} Explanation The ranges of <key> correspond to the keys at the front panel of the oscilloscope. The definitions are as follows.
  • Page 261 RIGOL 2 Command System TLEVel: press down the trigger level adjustment knob; namely set the trigger level to 0.  TMENu: press MENU in the trigger control area.  TFORce: press FORCE in the trigger control area.  TMODe: press MODE in the trigger control area.
  • Page 262: System:key:increase

    RIGOL 2 Command System :SYSTem:KEY:INCRease :SYSTem:KEY:DECRease Syntax :SYSTem:KEY:INCRease <key>[,<val>] :SYSTem:KEY:DECRease <key>[,<val>] Description Rotate the specified knob clockwise or counterclockwise. Parameter Name Type Range Default {VPOSition|VPOSition1|VPOSition2| <key> Discrete VSCale|VSCale1|VSCale2|HSCale|HPOSition| KFUNction|TLEVel|SFINd} Determined by the range of the parameter corresponding to <val> Integer <key>...
  • Page 263: System:language

    RIGOL 2 Command System :SYSTem:LANGuage Syntax :SYSTem:LANGuage <lang> :SYSTem:LANGuage? Description Set or query the system language. Parameter Name Type Range Default {SCHinese|TCHinese|KORean|JAPanese|ENGLish|GERMan| <lang> Discrete ENGLish PORTuguese|POLish} Return Format The query returns SCH, TCH, KOR, JAP, ENGL, GERM, PORT or POL.
  • Page 264: System:option:valid

    RIGOL 2 Command System :SYSTem:OPTion:VALid? Syntax :SYSTem:OPTion:VALid? <module> Description Query the status of the options of the oscilloscope. Parameter Name Type Range Default <module> Discrete {TRIGger|DECode| CAN|MEMDepth} Explanation TRIGger: advanced trigger option  DECode: decoding option  CAN: CAN protocol analysis option (include CAN trigger and CAN decoding) ...
  • Page 265: System:pstatus

    RIGOL 2 Command System :SYSTem:PSTatus Syntax :SYSTem:PSTatus <sat> :SYSTem:PSTatus? Description Set or query the power status of the oscilloscope. Parameter Name Type Range Default <sat> Discrete {DEFault|OPEN} DEFault Explanation DEFault: you need to press the power key at the front panel to start the oscilloscope after the ...
  • Page 266: System:ssaver:time

    RIGOL 2 Command System :SYSTem:SSAVer:TIME Syntax :SYSTem:SSAVer:TIME <time> :SYSTem:SSAVer:TIME? Description Set or query the screen saver time. Parameter Name Type Range Default {1MIN|2MIN|5MIN|15MIN|30MIN| <time> Discrete 45MIN|60MIN|2HOur|5HOur|OFF} Explanation After the oscilloscope enters idle state for the specified period of time, the screen saver program will be enabled.
  • Page 267: System:time

    RIGOL 2 Command System :SYSTem:TIME Syntax :SYSTem:TIME <hours>,<minutes>,<seconds> :SYSTem:TIME? Description Set or query the system time. Parameter Name Type Range Default <hours> Integer 0 to 23 <minutes> Integer 0 to 59 <seconds> Integer 0 to 59 Return Format The query returns the current time in string.
  • Page 268: System:version

    RIGOL 2 Command System :SYSTem:VERSion? Syntax :SYSTem:VERSion? Description Query the SCPI version number of the oscilloscope. Return Format The query always returns 1999.0. 2-252 MSO2000A/DS2000A Programming Guide...
  • Page 269: Timebase Commands

    RIGOL 2 Command System :TIMebase Commands :TIMebase:DELay:ENABle  :TIMebase:DELay:OFFSet  :TIMebase:DELay:SCALe  :TIMebase[:MAIN]:OFFSet  :TIMebase[:MAIN]:SCALe  :TIMebase:HREF:MODE  :TIMebase:HREF:POSition  :TIMebase:MODE  :TIMebase:VERNier  :TIMebase:DELay:ENABle Syntax :TIMebase:DELay:ENABle <bool> :TIMebase:DELay:ENABle? Description Enable or disable the delayed sweep mode; or query the current status of the delayed sweep mode.
  • Page 270: Timebase:delay:offset

    RIGOL 2 Command System :TIMebase:DELay:OFFSet Syntax :TIMebase:DELay:OFFSet <offset> :TIMebase:DELay:OFFSet? Description Set or query the horizontal position of the delayed sweep and the unit is s. Parameter Name Type Range Default <offset> Real -(LeftTime-DelayRange/2) to (RightTime-DelayRange/2) Note: LeftTime=7×MainScale-MainOffset. For the MainScale, refer to the :TIMebase[:MAIN]:SCALe command.
  • Page 271: Timebase[:Main]:Offset

    RIGOL 2 Command System :TIMebase[:MAIN]:OFFSet Syntax :TIMebase[:MAIN]:OFFSet <offset> :TIMebase[:MAIN]:OFFSet? Description Set or query the horizontal position of the main time base and the unit is s. Parameter Name Type Range Default RUN: When TimeScale is lower than 10ms: -MemDepth/SamplingRate to 1s TimeScale is greater than or equal to 10ms: <offset>...
  • Page 272: Timebase[:Main]:Scale

    RIGOL 2 Command System :TIMebase[:MAIN]:SCALe Syntax :TIMebase[:MAIN]:SCALe <scale_value> :TIMebase[:MAIN]:SCALe? Description Set or query the main time base and the unit is s/div. Parameter Name Type Range Default The range differs for different mode <scale_value> Real Normal: 1ns to 1ks 1us/div...
  • Page 273: Timebase:href:mode

    RIGOL 2 Command System :TIMebase:HREF:MODE Syntax :TIMebase:HREF:MODE <href> :TIMebase:HREF:MODE? Description Set or query the horizontal reference mode; namely the refrence position of the horizontal expansion and compression of the screen waveform. Parameter Name Type Range Default <href> Discrete {CENTer|TPOSition|USER} CENTer...
  • Page 274: Timebase:mode

    RIGOL 2 Command System :TIMebase:MODE Syntax :TIMebase:MODE <mode> :TIMebase:MODE? Description Set or query the horizontal time base mode. Parameter Name Type Range Default <mode> Discrete {MAIN|XY|ROLL} MAIN Return Format The query returns MAIN, XY or ROLL. :TIMebase:VERNier Syntax :TIMebase:VERNier <bool>...
  • Page 275: Trace Commands (Mso2000A-S/Ds2000A-S)

    RIGOL 2 Command System :TRACe<n> Commands (MSO2000A-S/DS2000A-S) The [:TRACe<n>] commands are used to set the arbitrary waveform related parameters of the built-in signal source. <n> denotes the corresponding built-in signal source channels and can be 1 or 2. When [:TRACe<n>] is omitted, the operation is applied to Source1 by default.
  • Page 276: [:Trace]:Data:dac16

    RIGOL 2 Command System [:TRACe<n>]:DATA:DAC16 Syntax [:TRACe<n>]:DATA:DAC16 volatile,<flag>,<binary_block_data> Description Download binary data block into the volatile memory of the built-in signal source. Parameter Name Type Range Default <n> Discrete {1|2} <flag> Discrete {END} Refer to the Explanation <binary_block_data> Explanation This command consists of two parts: the command string ([:TRACe<n>]:DATA:DAC16 ...
  • Page 277: [:Trace]:Data:dac

    RIGOL 2 Command System [:TRACe<n>]:DATA:DAC Syntax [:TRACe<n>]:DATA:DAC VOLATILE, {<binary_block_data>|<value>,<value>[,<value>[,<value>...]]} Description Download binary data block or decimal DAC values to the volatile memory of the built-in signal source. Parameter Name Type Range Default Refer to the Explanation <binary_block_data> <value> Integer 0 to 16383 <n>...
  • Page 278: [:Trace]:Data:load

    RIGOL 2 Command System [:TRACe<n>]:DATA:LOAD? Syntax [:TRACe<n>]:DATA:LOAD? 1 Description Read the specified data packet in the volatile memory of the built-in signal source. Parameter Name Type Range Default <n> Discrete {1|2} [:TRACe<n>]:DATA:POINts Syntax [:TRACe<n>]:DATA:POINts VOLATILE, {<point>|MINimum|MAXimum} [:TRACe<n>]:DATA:POINts? VOLATILE[,MINimum|MAXimum] Description Set or query the number of arbitrary waveform initial points of the specified built-in signal source channel.
  • Page 279: [:Trace]:Data:points:interpolate

    RIGOL 2 Command System [:TRACe<n>]:DATA:POINts:INTerpolate Syntax [:TRACe<n>]:DATA:POINts:INTerpolate <mode> [:TRACe<n>]:DATA:POINts:INTerpolate? Description Set or query the interpolation mode between the defined points of the arbitrary waveform of the built-in signal source. Parameter Name Type Range Default <mode> Discrete {LINear|OFF} <n> Discrete {1|2} Explanation LINear: linear interpolation.
  • Page 280: [:Trace]:Data:value

    RIGOL 2 Command System [:TRACe<n>]:DATA:VALue Syntax [:TRACe<n>]:DATA:VALue VOLATILE,<point>,<data> [:TRACe<n>]:DATA:VALue? VOLATILE,<point> Description Modify or query the decimal value of the specified point in the volatile memory of the built-in signal source. Parameter Name Type Range Default <point> Integer 1 to 16384 <data>...
  • Page 281: Trigger Commands

    RIGOL 2 Command System :TRIGger Commands :TRIGger:COUPling  :TRIGger:HOLDoff  :TRIGger:MODE  :TRIGger:NREJect  :TRIGger:STATus?  :TRIGger:SWEep  :TRIGger:DELay (Option)  :TRIGger:DURATion (Option)  :TRIGger:EDGe  :TRIGger:IIC  :TRIGger:NEDGe (Option)  :TRIGger:PATTern  :TRIGger:PULSe  :TRIGger:RS232  :TRIGger:RUNT  :TRIGger:SHOLd ...
  • Page 282: Trigger:coupling

    RIGOL 2 Command System :TRIGger:COUPling Syntax :TRIGger:COUPling <couple> :TRIGger:COUPling? Description Set or query the trigger coupling mode. Parameter Name Type Range Default <couple> Discrete {AC|DC|LFReject|HFReject} Explanation AC: allow DC and AC components to pass through the trigger path.  DC: block the DC components and attanuate signals lower than 75Hz.
  • Page 283: Trigger:mode

    RIGOL 2 Command System :TRIGger:MODE Syntax :TRIGger:MODE <mode> :TRIGger:MODE? Description Set or query the trigger type. Parameter Name Type Range Default {EDGE|PULSe|RUNT|WIND|NEDG|SLOPe|VIDeo|PATTern| <mode> Discrete EDGE DELay|TIMeout|DURATion|SHOLd|RS232|IIC|SPI|USB|CAN } Return Format The query returns EDGE, PULS, RUNT, WIND, NEDG, SLOP, VID, PATT, DEL, TIM, DURAT, SHOL, RS232, IIC, SPI, USB or CAN.
  • Page 284: Trigger:status

    RIGOL 2 Command System :TRIGger:STATus? Syntax :TRIGger:STATus? Description Query the current trigger status. Return Format The query returns TD, WAIT, RUN, AUTO or STOP. 2-268 MSO2000A/DS2000A Programming Guide...
  • Page 285: Trigger:sweep

    RIGOL 2 Command System :TRIGger:SWEep Syntax :TRIGger:SWEep <sweep> :TRIGger:SWEep? Description Set or query the trigger mode. Parameter Name Type Range Default <sweep> Discrete {AUTO|NORMal|SINGle} AUTO Explanation AUTO:  After this mode is selected, the oscilloscope starts searching for trigger signals that meet the specified condition.
  • Page 286: Trigger:delay (Option)

    RIGOL 2 Command System :TRIGger:DELay (Option) :TRIGger:DELay:SA  :TRIGger:DELay:SB  :TRIGger:DELay:SLOPA  :TRIGger:DELay:SLOPB  :TRIGger:DELay:TLOWer  :TRIGger:DELay:TUPPer  :TRIGger:DELay:TYPe  :TRIGger:DELay:SA :TRIGger:DELay:SB Syntax :TRIGger:DELay:SA <SourceA> :TRIGger:DELay:SA? :TRIGger:DELay:SB <SourceB> :TRIGger:DELay:SB? Description Set or query the trigger source of signal source A or B in delay trigger.
  • Page 287 RIGOL 2 Command System :TRIGger:DELay:SLOPA :TRIGger:DELay:SLOPB Syntax :TRIGger:DELay:SLOPA <slope> :TRIGger:DELay:SLOPA? :TRIGger:DELay:SLOPB <slope> :TRIGger:DELay:SLOPB? Description Set or query the edge type of signal source A or B of delay trigger. Parameter Name Type Range Default <slope> Discrete {POSitive|NEGative} POSitive Return Format The query returns POS or NEG.
  • Page 288 RIGOL 2 Command System :TRIGger:DELay:TUPPer Syntax :TRIGger:DELay:TUPPer <tupper> :TRIGger:DELay:TUPPer? Description Set or query the upper limit of the delay time in delay trigger when the delay type is >, <> or ><. Parameter Name Type Range Default When the delay type is <: 2ns to 4 s <tupper>...
  • Page 289: Trigger:duration (Option)

    RIGOL 2 Command System :TRIGger:DURATion (Option) :TRIGger:DURATion:SOURce  :TRIGger:DURATion:TLOWer  :TRIGger:DURATion:TUPPer  :TRIGger:DURATion:TYPe  :TRIGger:DURAtion:WHEN  :TRIGger:DURATion:SOURce Syntax :TRIGger:DURATion:SOURce <source> :TRIGger:DURATion:SOURce? Description Set or query the trigger source of duration trigger. Parameter Name Type Range Default {D0|D1|D2|D3|D4|D5|D6|D7|D8|D9|D10| <source> Discrete CHANnel1...
  • Page 290 RIGOL 2 Command System :TRIGger:DURATion:TUPPer Syntax :TRIGger:DURATion:TUPPer <tupper> :TRIGger:DURATion:TUPPer? Description Set or query the upper limit of the duration time in duration trigger. The unit is s. Parameter Name Type Range Default When the trigger condition is <: 2ns to 4s <tupper>...
  • Page 291 RIGOL 2 Command System :TRIGger:DURATion:TYPe Syntax :TRIGger:DURATion:TYPe <pa_ch1>[,<pa_ch2>[,<pa_d0>…[,<pa_d15>]]] :TRIGger:DURATion:TYPe? Description Set or query the pattern of each channel in duration trigger. Parameter Name Type Range Default <pa_ch1> Discrete {H,L,X} <pa_ch2> Discrete {H,L,X} <pa_d0> Discrete {H,L,X} …… …… …… …… <pa_d15>...
  • Page 292 RIGOL 2 Command System :TRIGger:DURAtion:WHEN Syntax :TRIGger:DURATion:WHEN <when> :TRIGger:DURATion:WHEN? Description Set or query the trigger condition in duration trigger. Parameter Name Type Range Default <when> Discrete {GREater|LESS|GLESs} PGReater Explanation GREater: you need to specify a time. The oscilloscope triggers when the duration of the pattern is ...
  • Page 293: Trigger:edge

    RIGOL 2 Command System :TRIGger:EDGe :TRIGger:EDGe:LEVel  :TRIGger:EDGe:SLOPe  :TRIGger:EDGe:SOURce  :TRIGger:EDGe:LEVel Syntax :TRIGger:EDGe:LEVel <level> :TRIGger:EDGe:LEVel? Description Set or query the trigger level in edge trigger. The unit is the same as the current amplitude unit. Parameter Name Type Range...
  • Page 294 RIGOL 2 Command System :TRIGger:EDGe:SLOPe Syntax :TRIGger:EDGe:SLOPe <slope> :TRIGger:EDGe:SLOPe? Description Set or query the edge type in edge trigger. Parameter Name Type Range Default <slope> Discrete {POSitive|NEGative|RFALl} POSitive Explanation POSitive: trigger on the rising edge of the input signal when the voltage level meets the preset ...
  • Page 295: Trigger:iic

    RIGOL 2 Command System :TRIGger:IIC :TRIGger:IIC:ADDRess  :TRIGger:IIC:AWIDth  :TRIGger:IIC:CLEVel  :TRIGger:IIC:DLEVel  :TRIGger:IIC:DATA  :TRIGger:IIC:DIRection  :TRIGger:IIC:SCL  :TRIGger:IIC:SDA  :TRIGger:IIC:WHEN  :TRIGger:IIC:ADDRess Syntax :TRIGger:IIC:ADDRess <adr> :TRIGger:IIC:ADDRess? Description Set or query the address value in I2C trigger when the trigger condition is Address or A&D.
  • Page 296 RIGOL 2 Command System :TRIGger:IIC:AWIDth Syntax :TRIGger:IIC:AWIDth <bits> :TRIGger:IIC:AWIDth? Description Set or query the number of bits of the address in I2C trigger when the trigger condition is Address or A&D. Parameter Name Type Range Default <bits> Discrete {7|8|10} Explanation...
  • Page 297 RIGOL 2 Command System :TRIGger:IIC:CLEVel :TRIGger:IIC:DLEVel Syntax :TRIGger:IIC:CLEVel <level> :TRIGger:IIC:CLEVel? :TRIGger:IIC:DLEVel <level> :TRIGger:IIC:DLEVel? Description Set or query the trigger level of SCL or SDA in I2C trigger. The unit is the same with the current amplitude unit. Parameter Name Type...
  • Page 298 RIGOL 2 Command System :TRIGger:IIC:DIRection Syntax :TRIGger:IIC:DIRection <dir> :TRIGger:IIC:DIRection? Description Set or query the data direction in I2C trigger when the trigger condition is Address or A&D. Parameter Name Type Range Default <dir> Discrete {READ|WRITe|RWRite} READ Explanation To set the I2C trigger condition, refer to the :TRIGger:IIC:WHEN command.
  • Page 299 RIGOL 2 Command System :TRIGger:IIC:WHEN Syntax :TRIGger:IIC:WHEN <trig_type> :TRIGger:IIC:WHEN? Description Set or query the trigger condition of I2C trigger. Parameter Name Type Range Default <trig_type> Discrete {STARt|RESTart|STOP|NACKnowledge|ADDRess|DATA|ADATa} STARt Explanation STARt: trigger when SDA data transitions from high level to low level while SCL is high level.
  • Page 300: Trigger:nedge (Option)

    RIGOL 2 Command System :TRIGger:NEDGe (Option) :TRIGger:NEDGe:EDGE  :TRIGger:NEDGe:IDLE  :TRIGger:NEDGe:LEVel  :TRIGger:NEDGe:SLOPe  :TRIGger:NEDGe:SOURce  :TRIGger:NEDGe:EDGE Syntax :TRIGger:NEDGe:EDGE <NR1> :TRIGger:NEDGe:EDGE? Description Set or query the edge number of Nth edge trigger. Parameter Name Type Range Default <NR1> Integer 1 to 65535 Return Format The query returns an integer between 1 and 65535.
  • Page 301 RIGOL 2 Command System :TRIGger:NEDGe:LEVel Syntax :TRIGger:NEDGe:LEVel <level> :TRIGger:NEDGe:LEVel? Description Set or query the trigger level in Nth edge trigger. The unit is the same with the current amplitude unit. Parameter Name Type Range Default When the trigger source is CHANnel1 or CHANnel2: <level>...
  • Page 302 RIGOL 2 Command System :TRIGger:NEDGe:SOURce Syntax :TRIGger:NEDGe:SOURce <source> :TRIGger:NEDGe:SOURce? Description Set or query the trigger source of Nth egde trigger. Parameter Name Type Range Default {D0|D1|D2|D3|D4|D5|D6|D7|D8|D9|D10| <source> Discrete CHANnel1 D11|D12|D13|D14|D15|CHANnel1|CHANnel2} Return Format The query returns D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, CHAN1 or CHAN2.
  • Page 303: Trigger:pattern

    RIGOL 2 Command System :TRIGger:PATTern :TRIGger:PATTern:LEVel  :TRIGger:PATTern:PATTern  :TRIGger:PATTern:SOURce  :TRIGger:PATTern:LEVel Syntax :TRIGger:PATTern:LEVel <chan>,<level> :TRIGger:PATTern:LEVel? <chan> Description Set or query the trigger level of each channel in pattern trigger. The unit is the same with the current amplitude unit.
  • Page 304 RIGOL 2 Command System :TRIGger:PATTern:PATTern Syntax :TRIGger:PATTern:PATTern <pa_ch1>[,<pa_ch2>[,<pa_d0>…[,<pa_d15>]]] :TRIGger:PATTern:PATTern? Description Set or query the pattern of each channel in pattern trigger. Parameter Name Type Range Default <pa_ch1> Discrete {H,L,X,R,F} <pa_ch2> Discrete {H,L,X,R,F} <pa_la0> Discrete {H,L,X,R,F} …… …… …… …… <pa_la15>...
  • Page 305 RIGOL 2 Command System :TRIGger:PATTern:SOURce Syntax :TRIGger:PATTern:SOURce <source> :TRIGger:PATTern:SOURce? Description Set or query the trigger source of pattern trigger. Parameter Name Type Range Default {D0|D1|D2|D3|D4|D5|D6|D7|D8|D9|D10| <source> Discrete CHANnel1 D11|D12|D13|D14|D15|CHANnel1|CHANnel2} Return Format The query returns D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, CHAN1 or CHAN2.
  • Page 306: Trigger:pulse

    RIGOL 2 Command System :TRIGger:PULSe :TRIGger:PULSe:LEVel  :TRIGger:PULSe:LWIDth  :TRIGger:PULSe:SOURce  :TRIGger:PULSe:UWIDth  :TRIGger:PULSe:WHEN  :TRIGger:PULSe:LEVel Syntax :TRIGger:PULSe:LEVel <level> :TRIGger:PULSe:LEVel? Description Set or query the trigger level in pulse trigger. The unit is the same as the current amplitude unit.
  • Page 307 RIGOL 2 Command System :TRIGger:PULSe:LWIDth Syntax :TRIGger:PULSe:LWIDth <width> :TRIGger:PULSe:LWIDth? Description Set or query the lower limit of the pulse width in pulse trigger. The unit is s. Parameter Name Type Range Default : 2ns to 4s <width> Real : 2ns to 3.99s...
  • Page 308 RIGOL 2 Command System :TRIGger:PULSe:UWIDth Syntax :TRIGger:PULSe:UWIDth <width> :TRIGger:PULSe:UWIDth? Description Set or query the lower limit of the pulse width in pulse trigger. The unit is s. Parameter Name Type Range Default : 2ns to 4s <width> Real : 12ns to 4s...
  • Page 309 RIGOL 2 Command System :TRIGger:PULSe:WHEN Syntax :TRIGger:PULSe:WHEN <when> :TRIGger:PULSe:WHEN? Description Set or query the trigger condition of pulse trigger. Parameter Name Type Range Default <when> Discrete {PGReater|PLESs|NGReater|NLESs|PGLess|NGLess} PGReater Explanation PGReater ( ): you need to specify a pulse width (refer to the :TRIGger:PULSe:LWIDth ...
  • Page 310: Trigger:rs232

    RIGOL 2 Command System :TRIGger:RS232 :TRIGger:RS232:BAUD  :TRIGger:RS232:BUSer  :TRIGger:RS232:DATA  :TRIGger:RS232:LEVel  :TRIGger:RS232:PARity  :TRIGger:RS232:SOURce  :TRIGger:RS232:STOP  :TRIGger:RS232:WHEN  :TRIGger:RS232:WIDTh  :TRIGger:RS232:BAUD Syntax :TRIGger:RS232:BAUD <baud_rate> :TRIGger:RS232:BAUD? Description Set or query the baud rate in RS232 trigger. The unit is bps.
  • Page 311 RIGOL 2 Command System :TRIGger:RS232:BUSer Syntax :TRIGger:RS232:BUSer <user baud> :TRIGger:RS232:BUSer? Description Set or query the user-defined baud rate in RS232 trigger. The unit is bps. Parameter Name Type Range Default <user baud> Integer 1 to 900000 9600 Return Format The query returns the current baud rate.
  • Page 312 RIGOL 2 Command System :TRIGger:RS232:LEVel Syntax :TRIGger:RS232:LEVel <level> :TRIGger:RS232:LEVel? Description Set or query the trigger level in RS232 trigger. The unit is the same with the current amplitude unit. Parameter Name Type Range Default When the trigger source is CHANnel1 or CHANnel2: <level>...
  • Page 313 RIGOL 2 Command System :TRIGger:RS232:SOURce Syntax :TRIGger:RS232:SOURce <source> :TRIGger:RS232:SOURce? Description Set or query the trigger source of RS232 trigger. Parameter Name Type Range Default {D0|D1|D2|D3|D4|D5|D6|D7|D8|D9|D10| <source> Discrete CHANnel1 D11|D12|D13|D14|D15|CHANnel1|CHANnel2} Return Format The query returns D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, CHAN1 or CHAN2.
  • Page 314 RIGOL 2 Command System :TRIGger:RS232:WHEN Syntax :TRIGger:RS232:WHEN <when> :TRIGger:RS232:WHEN? Description Set or query the trigger condition of RS232 trigger. Parameter Name Type Range Default <when> Discrete {STARt|ERRor|PARity|DATA} STARt Explanation STARt: trigger on the start frame position.  ERRor: trigger when error frame is detected.
  • Page 315: Trigger:runt

    RIGOL 2 Command System :TRIGger:RUNT :TRIGger:RUNT:ALEVel  :TRIGger:RUNT:BLEVel  :TRIGger:RUNT:SOURce  :TRIGger:RUNT:POLarity  :TRIGger:RUNT:WHEN  :TRIGger:RUNT:WLOWer  :TRIGger:RUNT:WUPPer  :TRIGger:RUNT:ALEVel :TRIGger:RUNT:BLEVel Syntax :TRIGger:RUNT:ALEVel <level> :TRIGger:RUNT:ALEVel? :TRIGger:RUNT:BLEVel <level> :TRIGger:RUNT:BLEVel? Description Set or query the upper limit or lower limit of the trigger level in runt trigger. The unit is the same with the current amplitude unit.
  • Page 316 RIGOL 2 Command System :TRIGger:RUNT:SOURce Syntax :TRIGger:RUNT:SOURce <source> :TRIGger:RUNT:SOURce? Description Set or query the trigger source of runt trigger. Parameter Name Type Range Default <source> Discrete {CHANnel1|CHANnel2} CHANnel1 Return Format The query returns CHAN1 or CHAN2. :TRIGger:RUNT:POLarity Syntax :TRIGger:RUNT:POLarity <polarity>...
  • Page 317 RIGOL 2 Command System :TRIGger:RUNT:WHEN Syntax :TRIGger:RUNT:WHEN <when> :TRIGger:RUNT:WHEN? Description Set or query the qualifier of runt trigger. Parameter Name Type Range Default <when> Discrete {NONE|GREater|LESS|GLESs} NONE Explanation NONE: do not set the trigger condition of runt trigger.  GREater (>):trigger when the runt pulse width is greater than the lower limit of pulse width (refer to ...
  • Page 318 RIGOL 2 Command System :TRIGger:RUNT:WUPPer Syntax :TRIGger:RUNT:WUPPer <NR3> :TRIGger:RUNT:WUPPer? Description Set or query the upper limit of the pulse width in runt trigger. Parameter Name Type Range Default When the qualifier is <: 2ns to 4s <NR3> Discrete When the qualifier is <>: 10ns to 4s Return Format The query returns the upper limit of the pulse width in scientific notation.
  • Page 319: Trigger:shold

    RIGOL 2 Command System :TRIGger:SHOLd :TRIGger:SHOLd:CSrc  :TRIGger:SHOLd:DSrc  :TRIGger:SHOLd:HTIMe  :TRIGger:SHOLd:PATTern  :TRIGger:SHOLd:SLOPe  :TRIGger:SHOLd:STIMe  :TRIGger:SHOLd:TYPe  :TRIGger:SHOLd:CSrc :TRIGger:SHOLd:DSrc Syntax :TRIGger:SHOLd:CSrc <csrc> :TRIGger:SHOLd:CSrc? :TRIGger:SHOLd:DSrc <dsrc> :TRIGger:SHOLd:DSrc? Description Set or query the clock source or data source of setup/hold trigger.
  • Page 320 RIGOL 2 Command System :TRIGger:SHOLd:HTIMe Syntax :TRIGger:SHOLd:HTIMe <NR3> :TRIGger:SHOLd:HTIMe? Description Set or query the hold time of setup/hold trigger. Parameter Name Type Range Default <NR3> Real 2ns to 1s 50ns Explanation This command is available when the hold type (refer to the...
  • Page 321 RIGOL 2 Command System :TRIGger:SHOLd:SLOPe Syntax :TRIGger:SHOLd:SLOPe <slope> :TRIGger:SHOLd:SLOPe? Description Set or query the edge type of setup/hold trigger. Parameter Name Type Range Default <slope> Discrete {POSitive|NEGative} POSitive Return Format The query returns POS or NEG. :TRIGger:SHOLd:STIMe Syntax :TRIGger:SHOLd:STIMe <NR3>...
  • Page 322 RIGOL 2 Command System :TRIGger:SHOLd:TYPe Syntax :TRIGger:SHOLd:TYPe <type> :TRIGger:SHOLd:TYPe? Description Set or query the hold type of setup/hold trigger. Parameter Name Type Range Default <type> Discrete {SETup|HOLd|SETHOLd} SETup Explanation SETup: set the time (refer to the :TRIGger:SHOLd:STIMe command) that the data stays stable and ...
  • Page 323: Trigger:slope

    RIGOL 2 Command System :TRIGger:SLOPe :TRIGger:SLOPe:ALEVel  :TRIGger:SLOPe:BLEVel  :TRIGger:SLOPe:TLOWer  :TRIGger:SLOPe:TUPPer  :TRIGger:SLOPe:SOURce  :TRIGger:SLOPe:WHEN  :TRIGger:SLOPe:WINDow  :TRIGger:SLOPe:ALEVel :TRIGger:SLOPe:BLEVel Syntax :TRIGger:SLOPe:ALEVel <level> :TRIGger:SLOPe:ALEVel? :TRIGger:SLOPe:BLEVel <level> :TRIGger:SLOPe:BLEVel? Description Set or query the upper limit or lower limit of the trigger level in slope trigger. The unit is the same with the current amplitude unit.
  • Page 324 RIGOL 2 Command System :TRIGger:SLOPe:TLOWer Syntax :TRIGger:SLOPe:TLOWer <time> :TRIGger:SLOPe:TLOWer? Description Set or query the lower limit of time in slope trigger. The unit is s. Parameter Name Type Range Default : 10ns to 1s <time> Real : 10ns to 999ms...
  • Page 325 RIGOL 2 Command System :TRIGger:SLOPe:SOURce Syntax :TRIGger:SLOPe:SOURce <source> :TRIGger:SLOPe:SOURce? Description Set or query the trigger source of slope trigger. Parameter Name Type Range Default <source> Discrete {CHANnel1|CHANnel2} CHANnel1 Return Format The query returns CHAN1 or CHAN2. 2-309 MSO2000A/DS2000A Programming Guide...
  • Page 326 RIGOL 2 Command System :TRIGger:SLOPe:WHEN Syntax :TRIGger:SLOPe:WHEN <when> :TRIGger:SLOPe:WHEN? Description Set or query the trigger condition of slope trigger. Parameter Name Type Range Default <when> Discrete {PGReater|PLESs|NGReater|NLESs|PGLess|NGLess} PGReater Explanation PGReater: you need to specify a time value (refer to the :TRIGger:SLOPe:TLOWer command).
  • Page 327 RIGOL 2 Command System :TRIGger:SLOPe:WINDow Syntax :TRIGger:SLOPe:WINDow <window> :TRIGger:SLOPe:WINDow? Description Set or query the vertical window type in slope trigger. Parameter Name Type Range Default <window> Discrete {TA|TB|TAB} Explanation Different vertical windows correspond to different trigger level adjustment modes. TA: only adjust the upper limit of the trigger level.
  • Page 328: Trigger:spi

    RIGOL 2 Command System :TRIGger:SPI :TRIGger:SPI:CLEVel  :TRIGger:SPI:DLEVel  :TRIGger:SPI:DATA  :TRIGger:SPI:SCL  :TRIGger:SPI:SDA  :TRIGger:SPI:SLOPe  :TRIGger:SPI:TIMeout  :TRIGger:SPI:WIDTh  :TRIGger:SPI:CLEVel :TRIGger:SPI:DLEVel Syntax :TRIGger:SPI:CLEVel <level> :TRIGger:SPI:CLEVel? :TRIGger:SPI:DLEVel <level> :TRIGger:SPI:DLEVel? Description Set or query the trigger level of SCL or SDA in SPI trigger. The unit is the same with the current amplitude unit.
  • Page 329 RIGOL 2 Command System :TRIGger:SPI:DATA Syntax :TRIGger:SPI:DATA <data> :TRIGger:SPI:DATA? Description Set or query the data value in SPI trigger. Parameter Name Type Range Default <data> Integer 0 to 2 Note: In the expression 2 -1, n is the current data bits (refer to the :TRIGger:SPI:WIDTh command).
  • Page 330 RIGOL 2 Command System :TRIGger:SPI:SLOPe Syntax :TRIGger:SPI:SLOPe <slope> :TRIGger:SPI:SLOPe? Description Set or query the edge type of the clock signal in SPI trigger. Parameter Name Type Range Default <slope> Discrete {POSitive|NEGative} POSitive Return Format The query returns POS or NEG.
  • Page 331 RIGOL 2 Command System :TRIGger:SPI:WIDTh Syntax :TRIGger:SPI:WIDTh <width> :TRIGger:SPI:WIDTh? Description Set or query the number of bits of data in SPI trigger. Parameter Name Type Range Default <width> Integer 4 to 32 Return Format The query returns an integer. 2-315...
  • Page 332: Trigger:timeout (Option)

    RIGOL 2 Command System :TRIGger:TIMeout (Option) :TRIGger:TIMeout:SOURce  :TRIGger:TIMeout:SLOPe  :TRIGger:TIMeout:TIMe  :TRIGger:TIMeout:SOURce Syntax :TRIGger:TIMeout:SOURce <source> :TRIGger:TIMeout:SOURce? Description Set or query the trigger source of timeout trigger. Parameter Name Type Range Default {D0|D1|D2|D3|D4|D5|D6|D7|D8|D9|D10| <source> Discrete CHANnel1 D11|D12|D13|D14|D15|CHANnel1|CHANnel2} Return Format The query returns D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, CHAN1 or CHAN2.
  • Page 333 RIGOL 2 Command System :TRIGger:TIMeout:SLOPe Syntax :TRIGger:TIMeout:SLOPe <slope> :TRIGger:TIMeout:SLOPe? Description Set or query the edge type of timeout trigger. Parameter Name Type Range Default <slope> Discrete {POSitive|NEGative|RFALl} POSitive Explanation : start timing when the rising edge of the input signal passes through the trigger level.
  • Page 334: Trigger:usb (Option)

    RIGOL 2 Command System :TRIGger:USB (Option) :TRIGger:USB:DMINus  :TRIGger:USB:DPLus  :TRIGger:USB:MLEVel  :TRIGger:USB:PLEVel  :TRIGger:USB:SPEed  :TRIGger:USB:WHEN  :TRIGger:USB:DMINus :TRIGger:USB:DPLus Syntax :TRIGger:USB:DMINus <dm> :TRIGger:USB:DMINus? :TRIGger:USB:DPLus <dp> :TRIGger:USB:DPLus? Description Set or query the D- or D+ data channel source in USB trigger.
  • Page 335 RIGOL 2 Command System :TRIGger:USB:MLEVel :TRIGger:USB:PLEVel Syntax :TRIGger:USB:MLEVel <level> :TRIGger:USB:MLEVel? :TRIGger:USB:PLEVel <level> :TRIGger:USB:PLEVel? Description Set or query the trigger level of the D- or D+ data line in USB trigger. The unit is the same with the current amplitude unit.
  • Page 336 RIGOL 2 Command System :TRIGger:USB:WHEN Syntax :TRIGger:USB:WHEN <condition> :TRIGger:USB:WHEN? Description Set or query the trigger condition of USB trigger. Parameter Name Type Range Default <condition> Discrete {SOP|EOP|RC|SUSPend|EXITsuspend} Explanation SOP: trigger at the sync bit at the start of the data packet (SOP).
  • Page 337: Trigger:video (Hdtv Option)

    RIGOL 2 Command System :TRIGger:VIDeo (HDTV Option) :TRIGger:VIDeo:MODE  :TRIGger:VIDeo:LEVel  :TRIGger:VIDeo:LINE  :TRIGger:VIDeo:POLarity  :TRIGger:VIDeo:SOURce  :TRIGger:VIDeo:STANdard  :TRIGger:VIDeo:MODE Syntax :TRIGger:VIDeo:MODE <mode> :TRIGger:VIDeo:MODE? Description Set or query the sync type in video trigger Parameter Name Type Range Default <mode>...
  • Page 338 RIGOL 2 Command System :TRIGger:VIDeo:LEVel Syntax :TRIGger:VIDeo:LEVel <level> :TRIGger:VIDeo:LEVel? Description Set or query the trigger level in video trigger. The unit is the same with the current amplitude unit. Parameter Name Type Range Default <level> Real -5×VerticalScale–OFFSet to +5×VerticalScale–OFFSet Note: For the VerticalScale, refer to the :CHANnel<n>:SCALe...
  • Page 339 RIGOL 2 Command System :TRIGger:VIDeo:LINE Syntax :TRIGger:VIDeo:LINE <line> :TRIGger:VIDeo:LINE? Description Set or query the line number in video trigger when the sync type is Line Number (refer :TRIGger:VIDeo:MODE command). Parameter Name Type Range Default NTSC: 1 to 525 PAL: 1 to 625...
  • Page 340 RIGOL 2 Command System :TRIGger:VIDeo:POLarity Syntax :TRIGger:VIDeo:POLarity <polarity> :TRIGger:VIDeo:POLarity? Description Set or query the video polarity in video trigger. Parameter Name Type Range Default <polarity> Discrete {POSitive|NEGative} POSitive Return Format The query returns POS or NEG. :TRIGger:VIDeo:SOURce Syntax :TRIGger:VIDeo:SOURce <source>...
  • Page 341 RIGOL 2 Command System :TRIGger:VIDeo:STANdard Syntax :TRIGger:VIDeo:STANdard <standard> :TRIGger:VIDeo:STANdard? Description Set or query the video standard in video trigger. Parameter Name Type Range Default {PALSecam|NTSC|480P|576P|720P60HZ|720P 50HZ|720P30HZ|720P25HZ|720P24HZ|1080P6 <standard> Discrete NTSC 0HZ|1080P50HZ|1080P30HZ|1080P25HZ|1080 P24HZ|1080I30HZ|1080I25HZ|1080I24HZ} Return Format The query returns the video standard selected.
  • Page 342: Trigger:windows (Option)

    RIGOL 2 Command System :TRIGger:WINDows (Option) :TRIGger:WINDows:POSition  :TRIGger:WINDows:TIMe  :TRIGger:WINDows:SOURce  :TRIGger:WINDows:SLOPe  :TRIGger:WINDows:POSition Syntax :TRIGger:WINDows:POSition <pos> :TRIGger: WINDows:POSition? Description Set or query the trigger position of windows trigger. Parameter Name Type Range Default <type> Discrete {EXIT|ENTER|TIMe} ENTER Explanation EXIT: trigger when the input signal exits the specified trigger level range.
  • Page 343 RIGOL 2 Command System :TRIGger:WINDows:TIMe Syntax :TRIGger:WINDows:TIMe <NR3> :TRIGger: WINDows:TIMe? Description Set or query the windows time of windows trigger. Parameter Name Type Range Default <NR3> Real 16ns to 4s Explanation This command is only available when the trigger position of windows trigger (refer to :TRIGger:WINDows:POSition command) is set to TIMe.
  • Page 344 RIGOL 2 Command System :TRIGger:WINDows:SLOPe Syntax :TRIGger:WINDows:SLOPe <type> :TRIGger: WINDows:SLOPe? Description Set or query the windows type of windows trigger. Parameter Name Type Range Default <type> Discrete {POSitive|NEGative|RFALl} POSitive Explanation POSitive: trigger on the rising edge of the input signal when the voltage level is greater than the ...
  • Page 345: Waveform Commands

    RIGOL 2 Command System :WAVeform Commands The :WAVeform commands are used to read the waveform data and its related settings. :WAVeform:MODE command is used to set the reading mode of the waveform data. In different mode, the definition of each parameter is different, as shown in Figure 2-1 and Figure 2-2.
  • Page 346: Waveform:source

    RIGOL 2 Command System :WAVeform:SOURce  :WAVeform:MODE  :WAVeform:FORMat  :WAVeform:POINts  :WAVeform:DATA?  :WAVeform:XINCrement?  :WAVeform:XORigin?  :WAVeform:XREFerence?  :WAVeform:YINCrement?  :WAVeform:YORigin?  :WAVeform:YREFerence?  :WAVeform:STARt  :WAVeform:STOP  :WAVeform:BEGin  :WAVeform:END  :WAVeform:RESet  :WAVeform:PREamble?  :WAVeform:STATus? ...
  • Page 347: Waveform:mode

    RIGOL 2 Command System :WAVeform:MODE Syntax :WAVeform:MODE <mode> :WAVeform:MODE? Description Set or query the data reading mode of the :WAVeform:DATA? Command. Parameter Name Type Range Default <mode> Discrete {NORMal|MAXimum|RAW} NORMal Explanation NORMal: read the waveform data currently displayed on the screen.
  • Page 348: Waveform:format

    RIGOL 2 Command System :WAVeform:FORMat Syntax :WAVeform:FORMat <format> :WAVeform:FORMat? Description Set or query the return format of the waveform data. Parameter Name Type Range Default <format> Discrete {WORD|BYTE|ASCii} BYTE Explanation WORD: each waveform point occupies two bytes (namely 16 bits). The lower 8 bits are valid and the ...
  • Page 349: Waveform:data

    RIGOL 2 Command System :WAVeform:DATA? Syntax :WAVeform:DATA? Description Read the waveform data. Explanation This command is affected by the :WAVeform:FORMat, :WAVeform:MODE, :WAVeform:POINts, :WAVeform:SOURce and related commands. Procedures of the screen waveform data reading: S1. :WAV:SOUR CHAN1 Set the channel source to be read S2.
  • Page 350 RIGOL 2 Command System while (true) Thread.Sleep( 100 ); visa32.viPrintf(viSession, ":WAV:STATus?\n"); visa32.viScanf(viSession, "%s", strBuild); (strBuild[0] == 'I') //IDLE visa32.viPrintf(viSession, ":WAV:DATA?\n"); visa32.viRead(viSession, wfmBuf, wfmBuf.Length, readCnt); readSum += ( readCnt -12); readTim++; Console.WriteLine("{0}: Read {1} Sum {2}" , readTim, readCnt, readSum); return readSum;...
  • Page 351: Waveform:xincrement

    RIGOL 2 Command System position in Y direction)×VerticalScale-OFFSet. For the vertical reference position in Y direction, refer to the:WAVeform:YREFerence? Command; for the VerticalScale, refer to the :CHANnel<n>:SCALe command and for the OFFSet, refer to the :CHANnel<n>:OFFSet command. Denoter Note: When the return format of the waveform data is set to ASCii (refer to the...
  • Page 352: Waveform:xorigin

    RIGOL 2 Command System :WAVeform:XORigin? Syntax :WAVeform:XORigin? Description Query the time from the trigger point to the reference time (refer to the :WAVeform:SOURce command) of the specified source (refer to the :WAVeform:XREFerence? command) in X direction. The unit is s.
  • Page 353: Waveform:yorigin

    RIGOL 2 Command System :WAVeform:YORigin? Syntax :WAVeform:YORigin? Description Query the vertical offset relative to the vertical reference position (refer to the :WAVeform:YREFerence? command) of the specified source (refer to the :WAVeform:SOURce command) in Y direction. The unit is the same with the unit of the signal source.
  • Page 354: Waveform:start

    RIGOL 2 Command System :WAVeform:STARt Syntax :WAVeform:STARt <sta> :WAVeform:STARt? Description Set or query the start position of internal memory waveform reading. Parameter Name Type Range Default NORMal: 1 to 1400 MAX: 1 to the number of effective point currently <sta>...
  • Page 355: Waveform:stop

    RIGOL 2 Command System :WAVeform:STOP Syntax :WAVeform:STOP <sta> :WAVeform:STOP? Description Set or query the stop position of internal memory waveform reading. Parameter Name Type Range Default NORMal: 1 to 1400 MAX: 1 to the number of effective point currently on <sta>...
  • Page 356: Waveform:reset

    RIGOL 2 Command System :WAVeform:RESet Syntax :WAVeform:RESet Description Reset the waveform reading. :WAVeform:PREamble? Syntax :WAVeform:PREamble? Description Query and return all the waveform parameters. Return Format The query returns 10 waveform parameters separated by ",": <format>,<type>,<points>,<count>,<xincrement>,<xorigin>,<xreference>,<yincrement>,<yorigin> ,<yreference> Wherein, <format>: 0 (BYTE), 1 (WORD) or 2 (ASC). Refer to the :WAVeform:FORMat command.
  • Page 357: Waveform:status

    RIGOL 2 Command System :WAVeform:STATus? Syntax :WAV:STATus? Description Query and return the current waveform reading state. Return Format The quey returns IDLE,n or READ,n. Wherein; IDLE: the waveform reading thread finishes. READ: the waveform reading thread is running. n: the current number of waveform points to be read.
  • Page 359: Programming Demos

    RIGOL 3 Programming Demos 3 Programming Demos This chapter lists the programming demos to illustrate how to program and control the oscilloscope in the development environments of Excel, LabVIEW, Matlab, Visual Basic 6.0 and Visual C++ 6.0 using SCPI commands on the basis of NI-VISA.
  • Page 360: Programming Preparations

    RIGOL 3 Programming Demos Programming Preparations First make sure your computer has installed the VISA library of NI (download it from http://www.ni.com/visa). Here, the default installation path is C:\Program Files\IVI Foundation\VISA. Here, the USB interface of the oscilloscope is used to communicate with the PC and please use a USB cable to connect the USB Device interface at the rear panel of the oscilloscope to the USB interface of the PC.
  • Page 361: Excel Programming Demo

    RIGOL 3 Programming Demos Excel Programming Demo The program used in this demo: Microsoft Excel 2010 The function realized in this demo: send the *IDN? Command to read the device information. Create a new Excel file. In this demo, the file is named as IDN.xls.
  • Page 362 RIGOL 3 Programming Demos Select Tools(T) in the Microsoft Visual Basic menu bar and click References. Select VISA Library in the pop-up dialog box and click OK to refer to the VISA Library. MSO2000A/DS2000A Programming Guide...
  • Page 363 RIGOL 3 Programming Demos Explanation: If you cannot find the VISA Library in the list at the left of the figure above, please follow the method below to find it. (1) Make sure that your PC has installed the NI-VISA library.
  • Page 364 RIGOL 3 Programming Demos cmdStr = "*IDN?" viErr = visa.viWrite(viDevice, cmdStr, Len(cmdStr), ret) viErr = visa.viRead(viDevice, idnStr, 128, ret) Sheet1.Cells(2, 2) = idnStr ‘Turn off the device’ visa.viClose (viDevice) visa.viClose (viDefRm) End Sub Add button control: click Insert in the Developer menu, select the desired button in Form Controls and put it into the cell of the Excel.
  • Page 365: Labview Programming Demo

    RIGOL 3 Programming Demos LabVIEW Programming Demo The program used in this demo: LabVIEW 2009 The functions realized in this demo: read the waveform data of CH1 on the screen. 1. Run LabVIEW 2009, create a VI file and name it as MSO2000A_Demo_LABVIEW.
  • Page 366 RIGOL 3 Programming Demos 4. Connect the VISA resource name with the VISA Open. Then, connect the VISA resource name outputs of all the functions with the VISA resource name and connect the error output with the error input as shown in the figure below.
  • Page 367 RIGOL 3 Programming Demos Get the length of the effective waveform data. 7. Convert the character data into array format using the String To Byte Array, namely display the waveform data on the Waveform Graph control and then remove the TMC data header using the Array Subset function.
  • Page 368 RIGOL 3 Programming Demos 9. Select the device resource from the VISA Resource Name list box and run the program. 3-10 MSO2000A/DS2000A Programming Guide...
  • Page 369: Matlab Programming Demo

    RIGOL 3 Programming Demos Matlab Programming Demo The program used in this demo: MATLAB R2009a The function realized in this demo: make FFT operation on the waveform data and draw the waveform. Run the Matlab software and modify the current directory (namely modify the Current Directory at the top of the software).
  • Page 370 RIGOL 3 Programming Demos fftRms = abs( fftSpec'); fftLg = 20*log(fftRms); subplot(212); plot(fftLg); Save the M file under the current directory. In this demo, the M file is named as MSO2000A_Demo_MATLAB.m. Run the M file and the running result is as follows.
  • Page 371: Visual Basic 6.0 Programming Demo

    RIGOL 3 Programming Demos Visual Basic 6.0 Programming Demo The program used in this demo: Visual Basic 6.0 The function realized in this demo: control the on/off state of any channel. Build a standard application program project (Standard EXE) and name it as MSO2000A_Demo_VB.
  • Page 372 RIGOL 3 Programming Demos Double-click CH1 to enter the programming environment. Add the following codes to control CH1 and CH2. The codes of CH1 are as shown below; the codes of CH2 are similar. Dim defrm As Long Dim vi As Long...
  • Page 373: Visual C++ 6.0 Programming Demo

    RIGOL 3 Programming Demos Visual C++ 6.0 Programming Demo The program used in this demo: Microsoft Visual C++ 6.0 The functions realized in this demo: search for the instrument address, connect the instrument, send command and read the return value.
  • Page 374 RIGOL 3 Programming Demos Open the Directories tab in ToolsOptions. Select Include files in Show directories for and double-click the blank in Directories to add the path of Include: C:\Program Files\IVI Foundation\VISA\WinNT\include. Select Library files in Show directories for and double-click the blank in Directories to add the path of Lib: C:\Program Files\IVI Foundation\VISA\WinNT\lib\msc.
  • Page 375 RIGOL 3 Programming Demos Open the General item in Edit Box attribute and select Disabled. Name Button as Send and Read. Add the variables m_combox and m_receive for the Combo Box and Edit controls respectively. Add codes. Double-click Send and Read to enter the programming environment. Declare the #include <visa.h>...
  • Page 376 RIGOL 3 Programming Demos ViFindList list; viOpenDefaultRM (&defaultRM); // Acquire the USB resource of visa viFindRsrc(defaultRM, "USB?*", &list,&nmatches, matches); viOpen (defaultRM,matches,VI_NULL,VI_NULL,&vi); viPrintf (vi, "*RST\n"); // Send the command received m_combox.GetLBText(m_combox.GetCurSel(),strTemp); strTemp = strTemp + "\n"; stringTemp = (char *)(LPCTSTR)strTemp; viPrintf (vi,stringTemp);...

Table of Contents