RIGOL Programming Guide MSO5000 Series Digital Oscilloscope Oct. 2018 RIGOL (SUZHOU) TECHNOLOGIES INC.
RIGOL Guaranty and Declaration Copyright © 2018 RIGOL (SUZHOU) TECHNOLOGIES INC. All Rights Reserved. Trademark Information RIGOL is a registered trademark of RIGOL (SUZHOU) TECHNOLOGIES INC. Publication Number PGA25100-1110 Software Version 00.00.00.SP1 Software upgrade might change or add product features. Please acquire the latest version of the manual from RIGOL website or contact RIGOL to upgrade the software. Notices RIGOL products are covered by P.R.C.
RIGOL Document Overview This manual is your guide to programming RIGOL MSO5000 series digital oscilloscope. MSO5000 series can communicate with the PC via the USB, LAN, or GPIB (requiring to work with RIGOL's USB-GPIB interface converter) interface. Main Topics in this Manual: Chapter 1 SCPI Command Overview This chapter introduces the syntax, symbols, parameters, and abbreviation rules of the SCPI commands.
Contents RIGOL Contents Guaranty and Declaration ......................................................................................................... I Document Overview ................................................................................................................. II Chapter 1 SCPI Command Overview ..................................................................................1-1 Syntax .............................................................................................
RIGOL Contents :COUNter Commands .............................................................................................................. 2-44 :COUNter:CURRent? ......................................................................................................... 2-44 :COUNter:CURRent? ......................................................................................................... 2-44 :COUNter:ENABle .......................................................................................
Contents RIGOL :LA:DIGital:DISPlay .......................................................................................................... 2-77 :LA:DIGital:POSition ......................................................................................................... 2-77 :LA:DIGital:LABel ............................................................................................................. 2-78 :LA:POD:DISPlay ...............................................................................
RIGOL Contents :MATH:FFT:SEARch:EXCursion .................................................................................... 2-99 :MATH:FFT:SEARch:ORDer ....................................................................................... 2-100 :MATH:FILTer:TYPE .................................................................................................. 2-100 :MATH:FILTer:W1 ....................................................................................................
Contents RIGOL :REFerence:SAVE ........................................................................................................... 2-122 :REFerence:COLor .......................................................................................................... 2-122 :REFerence:LABel:ENABle ............................................................................................... 2-123 :REFerence:LABel:CONTent ....................................................................................
RIGOL Contents [:SOURce[]]:APPLy:SQUare ...................................................................................... 2-145 [:SOURce[]]:APPLy:USER ......................................................................................... 2-145 [:SOURce[]]:OUTPut[][:STATe] .......................................................................... 2-146 [:SOURce[]]:OUTPut[]:IMPedance ..................................................................... 2-147 :SYSTem Commands ......
Contents RIGOL :TRIGger:CAN (Option) .................................................................................................. 2-204 :TRIGger:SPI (Option) .................................................................................................... 2-207 :TRIGger:FLEXray (Option) ............................................................................................. 2-212 :TRIGger:IIS (Option) ...........................................................................................
Chapter 1 SCPI Command Overview RIGOL Chapter 1 SCPI Command Overview SCPI (Standard Commands for Programmable Instruments) is a standardized instrument programming language that is built upon the existing standard IEEE 488.1 and IEEE 488.2 and conforms to various standards, such as the floating point operation rule in IEEE 754 standard, ISO 646 7-bit coded character set for information interchange (equivalent to ASCII programming).
RIGOL Chapter 1 SCPI Command Overview Syntax The command line usually starts with a colon; the keywords are separated by colons, and following the keywords are the parameter settings available. The command ending with a quotation mark indicates querying a certain function. The keywords of the command and the first parameter is separated by a space. For example, :ACQuire:TYPE :ACQuire:TYPE? ACQuire is the root keyword of the command, and TYPE is the second-level keyword.
Chapter 1 SCPI Command Overview RIGOL 3. Integer Unless otherwise specified, the parameter can be any integer (NR1 format) within the effective value range. Note: Do not set the parameter to a decimal, otherwise, errors will occur. For example, :DISPlay:GBRightness :DISPlay:GBRightness? Wherein, can be set to an integer ranging from 1 to 100. The query returns an integer ranging from 1 to 100. 4.
Chapter 2 Command System RIGOL Chapter 2 Command System This chapter introduces the syntax, functions, parameters, and usage of each MSO5000 command. Contents in this chapter: :AUTOscale :CLEar :RUN :STOP :SINGle :TFORce :ACQuire Commands :BUS Commands :CHANnel Commands :COUNter Commands :CURSor Commands :DISPlay Commands :DVM Commands :HISTogram Commands IEEE488.
Chapter 2 Command System RIGOL Note: 1. Unless otherwise specified, the descriptions in this manual all take MSO5354 as an example. 2. For the parameter setting command (time, frequency, amplitude, etc.), the digital oscilloscope can only recognize the numbers, unable to recognize the unit sent together with them. The unit of the parameter is a default one. For the default units of various parameters, refer to the descriptions for the specified command.
Chapter 2 Command System RIGOL :SINGle Syntax Description Remarks :SINGle Sets the trigger mode of the oscilloscope to "Single". This command functions the same as either of the following two operation: press SINGLE on the front panel; or send the :TRIGger:SWEep SINGle command. In the single trigger mode, the oscilloscope performs a single trigger when the trigger conditions are met and then it stops.
Chapter 2 Command System RIGOL :ACQuire Commands The :ACQuire commands are used to set the memory depth of the oscilloscope, the acquisition mode, the average times, as well as query the current sample rate. Command List[1]: :ACQuire:AVERages :ACQuire:MDEPth :ACQuire:TYPE :ACQuire:SRATe? :ACQuire:LA:SRATe? :ACQuire:AALias Note[1]: In the "Command List" in this manual, the query commands and the parameters in the setting commands are omitted.
Chapter 2 Command System Return Format Example RIGOL The maximum memory depth for the single channel is 200 M; the maximum memory depth for the half-channel is 100 M; and the maximum memory depth for the all-channel is 50 M. The query returns AUTO, 1k, 10k, 100k, 1M, 10M, 25M, 50M, 100M or 200M. :ACQuire:MDEPth 1M :ACQuire:MDEPth? /*Sets the memory depth to 1M.*/ /*The query returns 1M.
Chapter 2 Command System RIGOL Format Example :ACQuire:SRATe? /*The query returns 2.500000E+9.*/ :ACQuire:LA:SRATe? Syntax Description Return Format Example :ACQuire:LA:SRATe? Queries the current LA sample rate. The default unit is Sa/s. The query returns the sample rate in scientific notation. :ACQuire:LA:SRATe? /*The query returns 1.250000E+9.*/ :ACQuire:LA:MDEPth? Syntax Description Return Format Example :ACQuire:LA:MDEPth? Queries the current LA memory depth.
Chapter 2 Command System RIGOL :BUS Commands The : BUS commands are used to execute the decoding-related settings and operations.
Chapter 2 Command System RIGOL :BUS:DISPlay Syntax :BUS:DISPlay :BUS:DISPlay? Description Parameter Return Format Example Enables or disables the specified decoding bus; or queries the on/off display status of the specified decoding bus. Name Type Range Default Discrete {1|2|3|4} —— Bool {{1|ON}|{0|OFF}} 0|OFF The query returns 1 or 0. :BUS1:DISPlay ON :BUS1:DISPlay? /*Enables the decoding bus.*/ /*The query returns 1.
Chapter 2 Command System RIGOL :BUS:EVENt:FORMat Syntax :BUS:EVENt:FORMat :BUS:EVENt:FORMat? Description Parameter Remarks Return Format Example Sets or queries the display format of the specified decoding bus event table. Name Type Range Default Discrete {1|2|3|4} —— Discrete {HEX|ASCii|DEC|BIN} ASCii HEX indicates Hexadecimal; DEC indicates Decimal; BIN indicates Binary. The query returns HEX, ASC, DEC, or BIN.
Chapter 2 Command System RIGOL :BUS:LABel Syntax :BUS:LABel :BUS:LABel? Description Parameter Remarks Return Format Example Enables or disables the label of the specified decoding bus; or queries the on/off status of the label of the specified decoding bus. Name Type Range Default Discrete {1|2|3|4} —— Bool {{1|ON}|{0|OFF}} 0|OFF Before using the command, enable the specified decoding bus. The query returns 1 or 0.
Chapter 2 Command System RIGOL :BUS:EEXPort Syntax Description Parameter Example :BUS:EEXPort Exports the decoding information in the specified decoding bus event table in CSV form. Name Type Range Default Discrete {1|2|3|4} —— :BUS1:EEXPort C:/123.csv /*Exports the decoding information in the bus event table to the local Disk C, with the filename 123.csv.
Chapter 2 Command System RIGOL :BUS:PARallel The :BUS:PARallel commands are used to set relevant parameters for Parallel decoding.
Chapter 2 Command System Example RIGOL :BUS1:PARallel:SLOPe BOTH /*Sets the Parallel decoding to sample on any edge of the clock channel.*/ :BUS1:PARallel:SLOPe? /*The query returns BOTH.*/ :BUS:PARallel:WIDTh Syntax :BUS:PARallel:WIDTh :BUS:PARallel:WIDTh? Description Parameter Remarks Return Format Example Sets or queries the data width of the parallel bus, i.g. the number of bits per frame.
Chapter 2 Command System RIGOL :BUS:PARallel:SOURce Syntax :BUS:PARallel:SOURce :BUS:PARallel:SOURce? Description Parameter Remarks Return Format Example Sets or queries the channel source of the currently selected data bit.
Chapter 2 Command System Remarks Return Format Example RIGOL Noise rejection can remove the data that last not enough time on the bus and eliminate the burst glitch in the actual circuit. When the noise rejection is enabled, send the :BUS:PARallel:NRTime command to set the required rejection time. The query returns 1 or 0. :BUS1:PARallel:NREJect ON :BUS1:PARallel:NREJect? /*Enables the noise rejection function.*/ /*The query returns 1.
Chapter 2 Command System RIGOL :BUS:RS232 (Option) The :BUS:RS232 commands are used to set relevant parameters for RS232 decoding.
Chapter 2 Command System Format Example RIGOL D15, CHAN1, CHAN2, CHAN3, CHAN4, or OFF. :BUS1:RS232:RX D0 :BUS1:RS232:RX? /*Sets the RX channel source of RS232 decoding to D0.*/ /*The query returns D0.*/ :BUS:RS232:POLarity Syntax :BUS:RS232:POLarity :BUS:RS232:POLarity? Description Parameter Remarks Sets or queries the polarity of RS232 decoding.
Chapter 2 Command System RIGOL :BUS:RS232:BAUD Syntax :BUS:RS232:BAUD :BUS:RS232:BAUD? Description Parameter Remarks Return Format Example Sets or queries the baud rate of data transmission in RS232 decoding. The default unit is bps. Name Type Range Default Discrete {1|2|3|4} —— Integer 1 bps to 20 Mbps 9600 bps If the baud rate is set to a value with "M", then "A" should be added at the end of the value. For example, if you send 5 M, you need to send 5 MA.
Chapter 2 Command System RIGOL :BUS:RS232:PARity Syntax :BUS:RS232:PARity :BUS:RS232:PARity? Description Parameter Remarks Return Format Example Sets or queries the odd-even check mode of data transmission in RS232 decoding. Name Type Range Default Discrete {1|2|3|4} —— Discrete {NONE|ODD|EVEN} NONE None: indicates that there is no parity bit in data transmission. ODD: indicates the odd parity bit.
Chapter 2 Command System RIGOL :BUS:RS232:PEND Syntax :BUS:RS232:PEND :BUS:RS232:PEND? Description Parameter Remarks Return Format Example 2-20 Sets or queries the packet end type during data transmission. Name Type Range Default Discrete {1|2|3|4} —— Discrete {NULL|LF|CR|SP} NULL The parameters are represented in hexadecimal as follows: NULL: 00 LF: 0A CR: 0D SP: 20 The query returns NULL, LF, CR, or SP.
Chapter 2 Command System RIGOL :BUS:IIC (Option) The :BUS:IIC commands are used to set relevant parameters for I2C decoding. Command List: :BUS:IIC:SCLK:SOURce :BUS:IIC:SDA:SOURce :BUS:IIC:ADDRess :BUS:IIC:SCLK:SOURce Syntax :BUS:IIC:SCLK:SOURce :BUS:IIC:SCLK:SOURce? Description Parameter Return Format Example Sets or queries the clock source of I2C decoding.
Chapter 2 Command System RIGOL :BUS:IIC:ADDRess Syntax :BUS:IIC:ADDRess :BUS:IIC:ADDRess? Description Parameter Remarks Return Format Example 2-22 Sets or queries the address mode of I2C decoding. Name Type Range Default Discrete {1|2|3|4} —— Discrete {NORMal|RW} NORMal NORMal: indicates that the address width does not include the R/W bit. RW: indicates that the address width includes the R/W bit. The query returns NORM or RW.
Chapter 2 Command System RIGOL :BUS:SPI (Option) The :BUS:SPI commands are used to set relevant parameters for SPI decoding.
Chapter 2 Command System RIGOL :BUS:SPI:SCLK:SLOPe Syntax :BUS:SPI:SCLK:SLOPe :BUS:SPI:SCLK:SLOPe? Description Sets or queries the clock edge type of SPI decoding. Parameter Return Format Example Name Type Range Default Discrete {1|2|3|4} —— Discrete {POSitive|NEGative} POSitive The query returns POS or NEG. :BUS1:SPI:SCLK:SLOPe NEGative :BUS1:SPI:SCLK:SLOPe? /*Sets the clock edge type of SPI decoding to NEGative.*/ /*The query returns NEG.
Chapter 2 Command System RIGOL :BUS:SPI:MOSI:SOURce Syntax :BUS:SPI:MOSI:SOURce :BUS:SPI:MOSI:SOURce? Description Parameter Return Format Example Sets or queries the MOSI data source of SPI decoding.
Chapter 2 Command System RIGOL :BUS:SPI:ENDian Syntax :BUS:SPI:ENDian :BUS:SPI:ENDian? Description Parameter Remarks Return Format Example Sets or queries the endian of data transmission of SPI decoding. Name Type Range Default Discrete {1|2|3|4} —— Discrete {MSB|LSB} MSB MSB: indicates Most Significant Bit transmission sequence, i.g. the highest bit of the data is transmitted first. LSB: indicates Least Significant Bit transmission sequence, i.g.
Chapter 2 Command System RIGOL :BUS:SPI:TIMeout:TIME Syntax :BUS:SPI:TIMeout:TIME
Chapter 2 Command System RIGOL :BUS:SPI:SS:POLarity Syntax :BUS:SPI:SS:POLarity :BUS:SPI:SS:POLarity? Description Parameter Remarks Return Format Example 2-28 Sets or queries the polarity of CS line of SPI decoding. Name Type Range Default Discrete {1|2|3|4} —— Discrete {HIGH|LOW} LOW HIGH: indicates that the oscilloscope samples data of the source channel of data line on the specified edge of the clock signal when the CS signal is high level.
Chapter 2 Command System RIGOL :BUS:CAN (Option) The :BUS:CAN commands are used to set relevant parameters for CAN decoding. Command List: :BUS:CAN:SOURce :BUS:CAN:STYPe :BUS:CAN:BAUD :BUS:CAN:SPOint :BUS:CAN:SOURce Syntax :BUS:CAN:SOURce :BUS:CAN:SOURce? Description Parameter Return Format Example Sets or queries the source channel of CAN decoding.
Chapter 2 Command System RIGOL :BUS:CAN:BAUD Syntax :BUS:CAN:BAUD :BUS:CAN:BAUD? Description Parameter Remarks Return Format Example Sets or queries the signal rate of CAN decoding. The default unit is bps. Name Type Range Default Discrete {1|2|3|4} —— Integer 10 kbps to 5 Mbps 1 Mbps If the baud rate is set to a value with "M", then "A" should be added at the end of the value. For example, if you send 5 M, you need to send 5 MA.
Chapter 2 Command System RIGOL :BUS:FLEXray (Option) The :BUS:FLEXray commands are used to set the relevant parameters for FLEXray decoding. Command List: :BUS:FLEXray:BAUD :BUS:FLEXray:SOURce :BUS:FLEXray:SPOint :BUS:FLEXray:STYPe :BUS:FLEXray:BAUD Syntax :BUS:FLEXray:BAUD :BUS:FLEXray:BAUD? Description Parameter Return Format Example Sets or queries the signal rate of FlexRay decoding. The default unit is bps.
Chapter 2 Command System RIGOL :BUS:FLEXray:SPOint Syntax :BUS:FLEXray:SPOint :BUS:FLEXray:SPOint? Description Parameter Remarks Return Format Example Sets or queries the sample point position of FlexRay decoding (expressed in %). Name Type Range Default Discrete {1|2|3|4} —— Integer 10 to 90 50 Sample point is a point within a bit’s time. The oscilloscope samples the bit level at this point.
Chapter 2 Command System RIGOL :BUS:LIN (Option) The :BUS:LIN commands are used to set relevant parameters for LIN decoding. Command List: :BUS:LIN:BAUD :BUS:LIN:POLarity :BUS:LIN:SOURce :BUS:LIN:STANdard :BUS:LIN:BAUD Syntax :BUS:LIN:BAUD :BUS:LIN:BAUD? Description Parameter Remarks Return Format Example Sets or queries the baud rate of LIN decoding.
Chapter 2 Command System RIGOL :BUS:LIN:SOURce Syntax :BUS:LIN:SOURce :BUS:LIN:SOURce? Description Parameter Return Format Example Sets or queries the source of LIN bus. Name Type Range Default Discrete {1|2|3|4} —— Discrete {D0|D1|D2|D3|D4|D5|D6|D7|D8| D9|D10|D11|D12|D13|D14|D15| CHANnel1|CHANnel2|CHANnel3|CHANnel4} CHANnel1 The query returns D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, CHAN1, CHAN2, CHAN3, or CHAN4.
Chapter 2 Command System RIGOL :BUS:IIS (Option) The :BUS:IIC commands are used to set relevant parameters for I2S decoding. The commands are only available for the MSO5XX4 model or the model installed with the MSO5000-4CH option.
Chapter 2 Command System RIGOL :BUS:IIS:SOURce:WSELect Syntax :BUS:IIS:SOURce:WSELect :BUS:IIS:SOURce:WSELect? Description Parameter Return Format Example Sets or queries the audio channel of the I2S trigger.
Chapter 2 Command System RIGOL :BUS:IIS:RWIDth Syntax :BUS:IIS:RWIDth :BUS:IIS:RWIDth? Description Parameter Return Format Example Sets or queries the word size of the I2S decoding. Name Type Range Default Discrete {1|2|3|4} —— Integer 4 to 32 8 The query returns an integer ranging from 4 to 32. :BUS1:IIS:RWIDth 5 :BUS1:IIS:RWIDth? MSO5000 Programming Guide /*Sets the word size of I2S decoding to 5.*/ /*The query returns 5.
Chapter 2 Command System RIGOL :BUS:M1553 (Option) The :BUS:M1553 commands are used to set relevant parameters for the M1553 decoding. Command List: :BUS:M1553:SOURce :BUS:M1553:SOURce Syntax :BUS:M1553:SOURce :BUS:M1553:SOURce? Description Parameter Return Format Example Sets or queries the source of the M1553 decoding.
Chapter 2 Command System RIGOL :CHANnel Commands The :CHANnel commands are used to set or query the bandwidth limit, coupling, vertical scale, vertical offset, and other vertical system parameters of the analog channel.
Chapter 2 Command System RIGOL :CHANnel:COUPling Syntax :CHANnel:COUPling :CHANnel:COUPling? Description Sets or queries the coupling mode of the specified channel. Parameter Remarks Return Format Example Name Type Range Default Discrete {1|2|3|4} 1 Discrete {AC|DC} DC AC: the DC components of the signal under test are blocked. DC: both DC and AC components of the signal under test can pass through the channel. The query returns AC or DC.
Chapter 2 Command System Example RIGOL :CHANnel1:INVert ON :CHANnel1:INVert? /*Enables the waveform invert for CH1.*/ /*The query returns 1.*/ :CHANnel:OFFSet Syntax :CHANnel:OFFSet :CHANnel:OFFSet? Description Parameter Return Format Example Sets or queries the vertical offset of the specified channel. The default unit is V. Name Type Range Default Discrete 1 Real {1|2|3|4} ± 1 V (1 mV/div to 50 mV/div).
Chapter 2 Command System RIGOL :CHANnel:SCALe Syntax :CHANnel:SCALe :CHANnel:SCALe? Description Parameter Remarks Return Format Example Sets or queries the vertical scale of the specified channel. The default unit is V.
Chapter 2 Command System RIGOL :CHANnel:UNITs Syntax :CHANnel:UNITs :CHANnel:UNITs? Description Parameter Return Format Example Sets or queries the amplitude display unit of the specified analog channel. Name Type Range Default Discrete {1|2|3|4} 1 Discrete {VOLTage|WATT|AMPere|UNKNown} VOLTage The query returns VOLT, WATT, AMP, or UNKN. :CHANnel1:UNITs VOLTage :CHANnel1:UNITs? /*Sets the amplitude display unit of CH1 to VOLTage.*/ /*The query returns VOLT.
Chapter 2 Command System RIGOL :COUNter Commands Command List: :COUNter:CURRent? :COUNter:ENABle :COUNter:SOURce :COUNter:MODE :COUNter:NDIGits :COUNter:TOTalize:ENABle :COUNter:TOTalize:CLEar :COUNter:CURRent? Syntax Description Return Format :COUNter:CURRent? Queries the measurement value of the frequency counter. The query returns 1.000006E+3.
Chapter 2 Command System Example RIGOL :COUNter:SOURce CHANnel2 /*Sets the source of the frequency counter to CHANnel2.*/ :COUNter:SOURce? /*The query returns CHAN2.*/ :COUNter:MODE Syntax :COUNter:MODE :COUNter:MODE? Description Parameter Return Format Example Sets or queries the mode of the frequency counter. Name Type Range Default Discrete {FREQuency|PERiod|TOTalize} FREQuency The query returns FREQ, PER, or TOT.
Chapter 2 Command System RIGOL Example :COUNter:TOTalize:ENABle ON /*Enables the statistical function of the frequency counter.*/ :COUNter:TOTalize:ENABle? /*The query returns 1.*/ :COUNter:TOTalize:CLEar Syntax :COUNter:TOTalize:CLEar Description Clears the total count. Description Available when "Totalize" is selected under "Measure".
Chapter 2 Command System RIGOL :CURSor Commands The :CURSor commands are used to measure the X axis values (e.g. Time) and Y axis values (e.g. Voltage) of the waveform on the screen. Command List: :CURSor:MODE :CURSor:MANual :CURSor:TRACk :CURSor:XY :CURSor:MODE Syntax :CURSor:MODE :CURSor:MODE? Description Parameter Remarks Return Format Example Sets or queries the mode of the cursor measurement.
Chapter 2 Command System RIGOL :CURSor:MANual Command List: :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:TRACk:BYValue? :CURSor:MANual:XDELta? :CURSor:MANual:IXDELta? :CURSor:MANual:YDELta? :CURSor:MANual:TYPE Syntax :CURSor:MANual:TYPE :CURSor:MA
Chapter 2 Command System RIGOL :CURSor:MANual:SOURce Syntax :CURSor:MANual:SOURce :CURSor:MANual:SOURce? Description Parameter Remarks Return Format Example Sets or queries the channel source of the manual mode of cursor measurement. Name Type Range Default Discrete {CHANnel1|CHANnel2|CHANnel3|CHANnel4| MATH1|MATH2|MATH3|MATH4|LA|NONE} CHANnel1 Only the currently enabled channel can be selected as the channel source.
Chapter 2 Command System RIGOL :CURSor:MANual:VUNit Syntax :CURSor:MANual:VUNit :CURSor:MANual:VUNit? Description Parameter Remarks Return Format Example Sets or queries the vertical unit in the manual mode of cursor measurement. Name Type Range Default Discrete {SOURce|PERCent} SOUR SOURce: in the measurement results, the unit of AY, BY, and △ Y are automatically set to the unit of the current source.
Chapter 2 Command System RIGOL :CURSor:MANual:CBX Syntax :CURSor:MANual:CBX :CURSor:MANual:CBX? Description Parameter Remarks Return Format Example Sets or queries the horizontal position of Cursor B in the manual mode of cursor measurement. Name Type Range Default Integer 0 to 999 600 The horizontal and vertical position of the cursor is defined by the screen pixel coordinate. The range of the screen pixel coordinate is from (0,0) to (999,479).
Chapter 2 Command System RIGOL :CURSor:MANual:CBY Syntax :CURSor:MANual:CBY :CURSor:MANual:CBY? Description Parameter Remarks Return Format Example Sets or queries the vertical position of Cursor B in the manual mode of cursor measurement. Name Type Range Default Integer 0 to 479 300 The horizontal and vertical position of the cursor is defined by the screen pixel coordinate. The range of the screen pixel coordinate is from (0,0) to (1000,480).
Chapter 2 Command System RIGOL :CURSor:MANual:BYValue? Syntax Description Return Format Example :CURSor:MANual:BYValue? Queries the Y value at Cursor B in the manual mode of cursor measurement. The unit is determined by the currently selected vertical unit. When the channel source is CHANnel1, CHANnel2, CHANnel3, CHANnel4, MATH1, MATH2, MATH3, or MATH4, the query returns the Y value at Cursor B in scientific notation.
Chapter 2 Command System RIGOL :CURSor:TRACk Command List: :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 Syntax :CURSor:TRACk:SOURce1 :CURSor:TRACk:SOURce1? Description Parameter Remarks Return
Chapter 2 Command System RIGOL :CURSor:TRACk:SOURce2 Syntax :CURSor:TRACk:SOURce2 :CURSor:TRACk:SOURce2? Description Parameter Remarks Return Format Example Sets or queries the channel source of Cursor B in the track mode of cursor measurement. Name Type Range Default Discrete {CHANnel1|CHANnel2|CHANnel3|CHANnel4| MATH1|MATH2|MATH3|MATH4|NONE} CHANnel1 Only the currently enabled channel can be selected as the channel source.
Chapter 2 Command System RIGOL :CURSor:TRACk:CBX Syntax :CURSor:TRACk:CBX :CURSor:TRACk:CBX? Description Parameter Remarks Return Format Example Sets or queries the horizontal position of Cursor B in the track mode of cursor measurement. Name Type Range Default Integer 0 to 999 600 The horizontal and vertical position of the cursor is defined by the screen pixel coordinate. The range of the screen pixel coordinate is from (0,0) to (999,479).
Chapter 2 Command System RIGOL :CURSor:TRACk:AXValue? Syntax Description Return Format :CURSor:TRACk:AXValue? Queries the X value at Cursor A in the track mode of cursor measurement. The unit is determined by the amplitude unit selected for the currently corresponding channel. The query returns the X value at Cursor A in scientific notation. :CURSor:TRACk:AYValue? Syntax Description Return Format :CURSor:TRACk:AYValue? Queries the Y value at Cursor A in the track mode of cursor measurement.
Chapter 2 Command System RIGOL :CURSor:TRACk:IXDELTA? Syntax Description Return Format 2-58 :CURSor:TRACk:IXDELTA? Queries the reciprocal (1/△ X) of the absolute difference between the X value at Cursor A and the X value at Cursor B in the track mode of cursor measurement. The default unit is Hz. The query returns 1/△ X in scientific notation.
Chapter 2 Command System RIGOL :CURSor:XY The :CURSor:XY command is only available when the horizontal time base mode is set to XY.
Chapter 2 Command System RIGOL :CURSor:XY:BX Syntax :CURSor:XY:BX :CURSor:XY:BX? Description Parameter Remarks Return Format Example Sets or queries the horizontal position of Cursor B in the XY cursor measurement mode. Name Type Range Default Integer 0 to 479 300 In the XY time base mode, the horizontal and vertical position of the cursor is defined by the pixel coordinate in the XY display region. The range of the screen pixel coordinate is from (0,0) to (479,479).
Chapter 2 Command System RIGOL :CURSor:XY:BY Syntax :CURSor:XY:BY :CURSor:XY:BY? Description Parameter Remarks Return Format Example Sets or queries the vertical position of Cursor B in the XY cursor measurement mode. Name Type Range Default Integer 0 to 479 300 In the XY time base mode, the horizontal and vertical position of the cursor is defined by the pixel coordinate in the XY display region. The range of the screen pixel coordinate is from (0,0) to (479,479).
Chapter 2 Command System RIGOL :DISPlay Commands The :DISPlay commands can be used to set the displayed type of the waveform, persistence time, intensity, grid type, grid brightness, etc. Command List: :DISPlay:CLEar :DISPlay:TYPE :DISPlay:GRADing:TIME :DISPlay:WBRightness :DISPlay:GRID :DISPlay:GBRightness :DISPlay:DATA? :DISPlay:RULers :DISPlay:COLor :DISPlay:CLEar Syntax Description Remarks :DISPlay:CLEar Clears all the waveforms on the screen.
Chapter 2 Command System RIGOL :DISPlay:GRADing:TIME Syntax :DISPlay:GRADing:TIME :DISPlay:GRADing:TIME? Description Parameter Remarks Return Format Example Sets or queries the persistence time. The default unit is s. Name Type Range Default Discrete {MIN|0.1|0.2|0.5|1|2|5|10|INFinite} MIN MIN: sets the persistence time to its minimum value to view how the waveform changes at a high refresh rate. specified value (e.g. 0.1, 0.2, 0.
Chapter 2 Command System RIGOL scale is 140 mV. Return Format Example The query returns FULL, HALF, NONE, or IRE. :DISPlay:GRID NONE :DISPlay:GRID? /*Turns off the background grid and coordinates.*/ /*The query returns NONE.*/ :DISPlay:GBRightness Syntax :DISPlay:GBRightness :DISPlay:GBRightness? Description Parameter Return Format Example Sets or queries the brightness of the screen grid, expressed in percentage.
Chapter 2 Command System Return Format Example RIGOL The query returns 1 or 0. :DISPlay:COLor ON :DISPlay:COLor? MSO5000 Programming Guide /*Enables the color grade display.*/ /*The query returns 1.
Chapter 2 Command System RIGOL :DVM Commands Command List: :DVM:CURRent? :DVM:ENABle :DVM:SOURce :DVM:MODE :DVM:CURRent? Syntax Description DVM:CURRent? Queries the current voltage value under test. :DVM:ENABle Syntax :DVM:ENABle :DVM:ENABle? Description Parameter Return Format Example Enables or disables the digital voltmeter; or queries the on/off status of the digital voltmeter. Name Type Range Default Bool {{1|ON}|{0|OFF}} 0|OFF The query returns 1 or 0.
Chapter 2 Command System RIGOL :DVM:MODE Syntax :DVM:MODE :DVM:MODE? Description Parameter Description Return Format Example Sets or queries the mode of the digital voltmeter. Name Type Range Default Discrete {ACRMs|DC|DCRMs} ACRMs ACRMs: displays the root-mean-square value of the acquired data, with the DC component removed. DC: displays the average value of the acquired data. DCRMs: displays the root-mean-square value of the acquired data.
Chapter 2 Command System RIGOL :HISTogram Commands Command List: :HISTogram:DISPlay :HISTogram:TYPE :HISTogram:SOURce :HISTogram:SIZE :HISTogram:STATic :HISTogram:RESet :HISTogram:BLIMit :HISTogram:LLIMit :HISTogram:RLIMit :HISTogram:TLIMit :HISTogram:DISPlay Syntax :HISTogram:DISPlay :HISTogram:DISPlay? Description Parameter Return Format Example Enables or disables the histogram function; or queries the status of the histogram.
Chapter 2 Command System RIGOL :HISTogram:SOURce Syntax :HISTogram:SOURce :HISTogram:SOURce? Description Parameter Return Format Example Sets or queries the source of the histogram. Name Type Range Default Discrete {CHANnel1|CHANnel2|CHANnel3|CHANn el4|MATH1|MATH2|MATH3|MATH4|OFF} OFF The query returns CHAN1, CHAN2, CHAN3, CHAN4, MATH1, MATH2, MATH3, MATH4, or OFF. :HISTogram:SOURce CHANnel2 /*Sets the source of the histogram to CHANnel2.
Chapter 2 Command System RIGOL :HISTogram:RESet Syntax Description :HISTogram:RESet Resets the statistics. :HISTogram:BLIMit Syntax :HISTogram:BLIMit :HISTogram:BLIMit? Description Parameter Sets or queries the histogram's bottom boundary limit. Name Return Format Example Type Range Default Real (-4× VerticalScale) to (4× VerticalScale) (vertical scale of the channel source of the histogram) 0V The query returns the histogram's bottom boundary limit in scientific notation.
Chapter 2 Command System RIGOL :HISTogram:TLIMit Syntax :HISTogram:TLIMit :HISTogram:TLIMit? Description Parameter Sets or queries the histogram's top boundary limit. Name Return Format Example Type Range Default Real (-4× VerticalScale) to (4× VerticalScale) (vertical scale of the channel source of the histogram) 0V The query returns the histogram's top boundary limit in scientific notation.
Chapter 2 Command System RIGOL IEEE488.2 Common Commands The IEEE488.2 common commands are used to query the basic information of the instrument or executing basic operations. These commands usually start with "*", and the keywords in a command contain 3 characters. Command List: *CLS *ESE *ESR? *IDN? *OPC *SAV *RCL *RST *SRE *STB? *TST? *WAI *CLS Syntax Description *CLS Clears all the event registers, and also clears the error queue.
Chapter 2 Command System RIGOL *ESR? Syntax Description *ESR? Queries and clears the event register of the standard event status register. Remarks Bit 1 and Bit 6 in the standard event status register are not used and are always treated as 0; therefore, the range of the returned value is a decimal number corresponding to a binary number X0XXXX0X (X is 1 or 0). Return Format The query returns an integer. The integer equals to the binary-weighted sum of all the bits set in the register.
Chapter 2 Command System RIGOL *RST Syntax Description *RST Restores the instrument to its factory default settings. *SRE Syntax *SRE *SRE? Description Parameter Sets or queries the enable register of the status byte register set. Name Type Range Default Integer 0 to 255 0 Remarks This command queries the standard event enable register value. Bit 3 and Bit 6 in the standard event status register are not used and are always treated as 0.
Chapter 2 Command System RIGOL :LA Commands The :LA commands are used to perform relevant operations on the digital channels. PLA2216 active logic probe option is required to be ordered.
Chapter 2 Command System RIGOL :LA:ACTive Syntax :LA:ACTive {|NONE} :LA:ACTive? Description Sets or queries the current active channel or channel group. Parameter Remarks Return Format Example Name Type Range Default Discrete {D0|D1|D2|D3|D4|D5|D6|D7| D8|D9|D10|D11|D12|D13|D14|D15|NONE} —— The parameter can be any of the digital channels (D0-D15). The channel label and waveform of the selected channel are displayed in red.
Chapter 2 Command System RIGOL :LA:DIGital:DISPlay Syntax :LA:DIGital:DISPlay , :LA:DIGital:DISPlay? Description Parameter Remarks Return Format Example Turns on or off the specified digital channel; or queries the on/off status of the specified digital channel.
Chapter 2 Command System RIGOL :LA:DIGital:LABel Syntax :LA:DIGital:LABel ,
Chapter 2 Command System RIGOL specified user-defined channel group. Return Format Example The currently enabled channel or user-defined channel group can be selected as the active channel or the channel group by sending the :LA:ACTive command. POD1: D0 to D7; POD2: D8 to D15 The query returns 1 or 0. :LA:DISPlay D0,ON :LA:DISPlay? D0 /*Enables D0.*/ /*The query returns 1.
Chapter 2 Command System RIGOL :LA:TCALibrate Syntax :LA:TCALibrate :LA:TCALibrate? Description Parameter Remarks Return Format Example Sets or queries the delay calibration time of the digital channel. The default unit is s. Name Type Range Default Real -1000 ns to 100 ns 0.00 s When you use an oscilloscope to make actual measurements, the transmission delay of the probe cable may bring relatively greater errors (zero offset).
Chapter 2 Command System RIGOL :LAN Commands The :LAN commands are used to set and query the LAN parameters.
Chapter 2 Command System RIGOL :LAN:AUToip Syntax :LAN:AUToip :LAN:AUToip? Description Parameter Remarks Return Format Example Turns on or off the Auto IP configuration mode; or queries the on/off status of the current Auto IP configuration mode. Name Type Range Default Bool {{1|ON}|{0|OFF}} 1|ON When the auto IP mode is valid, disable DHCP manually. You can self-define the gateway and DNS address for the oscilloscope. The query returns 1 or 0.
Chapter 2 Command System Return Format Example RIGOL The query returns the current DNS address in strings. :LAN:DNS 192.168.1.1 :LAN:DNS? /*Sets the DNS address to 192.168.1.1.*/ /*The query returns the current DNS address.*/ :LAN:MAC? Syntax Description Return Format :LAN:MAC? Queries the MAC address of the instrument. The query returns the MAC address in strings. For example, 00:19:AF:00:11:22. :LAN:DSErver? Syntax Description Return Format :LAN:DSErver? Queries the address of the DHCP server.
Chapter 2 Command System RIGOL :LAN:IPADdress Syntax :LAN:IPADdress :LAN:IPADdress? Description Parameter Remarks Return Format Example Sets or queries the IP address of the instrument. Name Type Range Default ASCII String Refer to Remarks —— The format of is nnn,nnn,nnn,nnn. The range of the first section of "nnn" is from 0 to 223 (except 127), and the ranges of the other three sections of "nnn" are from 0 to 255.
Chapter 2 Command System RIGOL DHCPFAILED: the DHCP configuration has failed. INVALIDIP: invalid IP. IPLOSE: IP lost. :LAN:VISA? Syntax Description Return Format :LAN:VISA? Queries the VISA address of the instrument. The query returns the VISA address in strings. :LAN:MDNS Syntax :LAN:MDNS :LAN:MDNS? Description Parameter Return Format Example Enables or disables MDNS; or queries the MDNS status. Name Type Range Default Bool {{1|ON}|{0|OFF}} 0|OFF The query returns 1 or 0.
Chapter 2 Command System RIGOL :LAN:APPLy Syntax Description 2-86 :LAN:APPLy Applies the network configuration.
Chapter 2 Command System RIGOL :MASK Commands The :MASK commands are used to set or query the relevant parameters of the pass/fail test. Command List: :MASK:ENABle :MASK:SOURce :MASK:OPERate :MASK:MDISplay :MASK:X :MASK:Y :MASK:CREate :MASK:RESet :MASK:ENABle Syntax :MASK:ENABle :MASK:ENABle? Description Parameter Remarks Return Format Example Enables or disables the pass/fail test function; or queries the on/off status of the pass/fail test function.
Chapter 2 Command System RIGOL /*Sets the measurement source of the pass/fail test to CHANnel2.*/ :MASK:SOURce? /*The query returns CHAN2.*/ :MASK:OPERate Syntax :MASK:OPERate :MASK:OPERate? Description Parameter Description Return Format Example Runs or stops the pass/fail test; or queries the operating status of the pass/fail test. Name Type Range Default Discrete {RUN|STOP} STOP Before running this command, send the :MASK:ENABle command to enable the pass/fail test function.
Chapter 2 Command System RIGOL :MASK:X Syntax :MASK:X :MASK:X? Description Parameter Return Format Example Sets or queries the horizontal adjustment parameter of the pass/fail test mask. The default unit is div. Name Type Range Default Real 0.01 div to 2 div 0.24 div The query returns the current horizontal adjustment parameter in scientific notation. :MASK:X 0.28 :MASK:X? /*Sets the horizontal adjustment parameter to 0.28 div.*/ /*The query returns 2.800000E-1.
RIGOL Chapter 2 Command System :MATH Commands The :MATH commands are used to set various math operation function of the waveform between channels.
Chapter 2 Command System RIGOL :MATH:FILTer:TYPE :MATH:FILTer:W1 :MATH:FILTer:W2 :MATH:SENSitivity :MATH:DISTance :MATH:THReshold1 :MATH:THReshold2 :MATH:DISPlay Syntax :MATH:DISPlay :MATH:DISPlay? Description Parameter Return Format Example Enables or disables the math operation function; or queries the status of the math operation function.
Chapter 2 Command System RIGOL :MATH:SOURce1 Syntax :MATH:SOURce1 :MATH:SOURce1? Description Parameter Remarks Return Format Example Sets or queries the source or Source A of arithmetic operation and function operation. Name Type Range Default Discrete {1|2|3|4} —— Discrete {CHANnel1|CHANnel2|CHANnel3|CHANnel4} CHANnel1 For arithmetic operation, this command is used to set Source A. For function operation, use this command only to set the source.
Chapter 2 Command System Example RIGOL :MATH1:LSOUrce1 D3 /*Sets Source A of the logic operation to D3.*/ :MATH1:LSOUrce1? /*The query returns D3.*/ :MATH:LSOUrce2 Syntax :MATH:LSOUrce2 :MATH:LSOUrce2? Description Parameter Remarks Return Format Example Sets or queries Source B of the logic operation.
Chapter 2 Command System RIGOL :MATH:OFFSet Syntax :MATH:OFFSet :MATH:OFFSet? Description Parameter Return Format Example Sets or queries the vertical offset of the operation results. The unit is related to the currently selected operator and the unit selected by the source. Name Type Range Default Discrete {1|2|3|4} —— Real -1 GV to +1 GV 0.00 V The query returns the vertical offset of the current operation results in scientific notation.
Chapter 2 Command System RIGOL :MATH:FFT:SOURce Syntax :MATH:FFT:SOURce :MATH:FFT:SOURce? Description Parameter Return Format Example Sets or queries the channel source of FFT operation/filter. Name Type Range Default Discrete {1|2|3|4} —— Discrete {CHANnel1|CHANnel2|CHANnel3|CHANnel4|} CHANnel1 The query returns CHAN1, CHAN2, CHAN3, or CHAN4. :MATH1:FFT:SOURce CHANnel3 /*Sets the channel source of FFT operation to CH3.
Chapter 2 Command System RIGOL You can view the time-domain and frequency-domain signals clearly. Return Format Example OFF: the source channel and the FFT operation results are displayed in the same window (on the full screen) to view the frequency spectrum more clearly and to perform more precise measurement. The query returns 1 or 0. :MATH1:FFT:SPLit OFF :MATH1:FFT:SPLit? /*Disables the half-screen display.*/ /*The query returns 0.
Chapter 2 Command System RIGOL :MATH:FFT:OFFSet Syntax :MATH:FFT:OFFSet :MATH:FFT:OFFSet? Description Parameter Return Format Example Sets or queries the vertical offset of FFT operation results. Name Type Range Default Discrete {1|2|3|4} —— Real -1 GdB to 1 GdB 0 dB The query returns the current vertical offset in scientific notation. :MATH1:FFT:OFFSet 0.
Chapter 2 Command System RIGOL :MATH:FFT:FREQuency:STARt Syntax :MATH:FFT:FREQuency:STARt :MATH:FFT:FREQuency:STARt? Description Parameter Return Format Example Sets or queries the start frequency of FFT operation results. Name Type Range Default Discrete {1|2|3|4} —— Real -2.5 GHz to 2.5 GHz 0 Hz The query returns the start frequency of the operation results in scientific notation.
Chapter 2 Command System RIGOL :MATH:FFT:SEARch:NUM Syntax :MATH:FFT:SEARch:NUM :MATH:FFT:SEARch:NUM? Description Parameter Return Format Example Sets or queries the maximum number of the FFT peak search. Name Type Range Default Discrete {1|2|3|4} —— Integer 1 to 15 5 The query returns an integer ranging from 1 to 15. :MATH1:FFT:SEARch:NUM 10 :MATH1:FFT:SEARch:NUM? /*Sets the maximum number of the FFT peak search to 10.*/ /*The query returns 10.
Chapter 2 Command System RIGOL :MATH:FFT:SEARch:ORDer Syntax :MATH:FFT:SEARch:ORDer :MATH:FFT:SEARch:ORDer? Description Parameter Return Format Example Sets or queries the sequence of the FFT peak search results. Name Type Range Default Discrete {1|2|3|4} —— Discrete {AMPorder|FREQOrder} AMPorder The query returns AMP or FREQ. :MATH1:FFT:SEARch:ORDer AMPorder :MATH1:FFT:SEARch:ORDer? /*Sets the sequence of the FFT peak search results to AMPorder.
Chapter 2 Command System RIGOL :MATH:FILTer:W1 Syntax :MATH:FILTer:W1 :MATH:FILTer:W1? Description Parameter Remarks Return Format Example Sets or queries the cut-off frequency of Low Pass Filter/High Pass Filter; or the cut-off frequency 1 of Band Pass Filter/Band Stop Filter. The default unit is Hz. Name Type Range Default Discrete {1|2|3|4} —— Real Refer to Remarks Related to the filter type LPASs|BPASs|BSTop: 0.005× screen sample rate HPASs: 0.
Chapter 2 Command System RIGOL Example :MATH1:FILTer:W2 1500000 /*Sets the cut-off frequency 2 of Band Pass Filter to 1.5 MHz.*/ :MATH1:FILTer:W2? /*The query returns 1.500000E+6.*/ :MATH:SENSitivity Syntax :MATH:SENSitivity :MATH:SENSitivity? Description Sets or queries the sensitivity of the logic operation. The default unit is div.
Chapter 2 Command System RIGOL VerticalOffset indicates the vertical offset of the current Source A. The step value is VerticalScale/10. Return Format Example The query returns the threshold level of the current Source A in scientific notation. :MATH1:THReshold1 0.8 /*Sets the threshold level of Source A in logic operation to 800 mV.*/ :MATH1:THReshold1? /*The query returns 8.000000E-1.
Chapter 2 Command System RIGOL :MEASure Commands The :MEASure commands are used to set and query the relevant parameters for measurement.
Chapter 2 Command System Remarks Return Format Example RIGOL Only the currently enabled channels can be selected. The query returns D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, CHAN1, CHAN2, CHAN3, CHAN4, MATH1, MATH2, MATH3, or MATH4. :MEASure:SOURce CHANnel2 /*Sets the channel source for the parameter to CHANnel2.*/ :MEASure:SOURce? /*The query returns CHAN2.
Chapter 2 Command System RIGOL :MEASure:CLEar Syntax Description Parameter :MEASure:CLEar - Clears any one or all of the 10 measurement items that have been turned on. Name Type Range Default
- Discrete {ITEM1|ITEM2|ITEM3|ITEM4|ITEM5|ITEM6|I TEM7|ITEM8|ITEM9|ITEM10|ALL} —— Remarks Run the :MEASure:ITEM command to open one of the 41 parameters that is required to be measured.
Chapter 2 Command System RIGOL :MEASure:AMSource Syntax :MEASure:AMSource :MEASure:AMSource? Description Parameter Return Format Example Sets the source and displays all measurement values of the set source; or queries the channel source(s) of the all measurement function. Name Type Range Default Discrete {CHANnel1|CHANnel2|CHANnel3|CHANnel4|OFF} OFF The query returns CHAN1, CHAN2, CHAN3, CHAN4, or OFF. :MEASure:AMSource CHANnel1 :MEASure:AMSource? /*Sets the source to CHANnel1.
Chapter 2 Command System RIGOL Format Example :MEASure:SETup:MID 89 :MEASure:SETup:MID? /*Sets the middle value of the threshold level to 89%.*/ /*The query returns 89.*/ :MEASure:SETup:MIN Syntax :MEASure:SETup:MIN :MEASure:SETup:MIN? Description Parameter Description Return Format Example Sets or queries the threshold level lower limit of the analog channel in auto measurement.
Chapter 2 Command System RIGOL :MEASure:SETup:PSB Syntax :MEASure:SETup:PSB :MEASure:SETup:PSB? Description Parameter Return Format Example Sets or queries Source B in the phase or delay measurement.
Chapter 2 Command System RIGOL Return Format Example The query returns D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, CHAN1, CHAN2, CHAN3, CHAN4, MATH1, MATH2, MATH3, or MATH4. :MEASure:SETup:DSB CHANnel2 /*Sets Source B of the delay measurement to CHANnel2.*/ :MEASure:SETup:DSB? /*The query returns CHAN2.
Chapter 2 Command System Remarks Return Format Example RIGOL Discrete {MAXimum|MINimum|CURRent|AVERages |DEViation} —— The parameter [,[,]] is used to set the source of the parameter under measurement.
Chapter 2 Command System RIGOL must contain two sources. Otherwise, the command is invalid. Return Format Example The query returns the current measurement value in scientific notation. :MEASure:ITEM OVERshoot,CHANnel2 :MEASure:ITEM? OVERshoot,CHANnel2 /*Enables the overshoot measurement of CH2.*/ /*The query returns 8.888889E-3.*/ :MEASure:AREA Syntax :MEASure:AREA :MEASure:AREA? Description Parameter Remarks Return Format Example Sets or queries the type of the measurement range.
Chapter 2 Command System RIGOL :MEASure:CREGion:CBX Syntax :MEASure:CREGion:CBX :MEASure:CREGion:CBX? Description Parameter Remarks Return Format Example Sets or queries the position of Cursor B when the measurement range is the "cursor region". Name Type Range Default Integer 0 to 1,000 600 The position of the cursor is defined by the pixel coordinate of the screen. The range of the pixel coordinate on the screen horizontally is from 0 to 1,000 (from left to right).
Chapter 2 Command System RIGOL :POWer Commands Command List: :POWer:TYPE :POWer:CURRentsource :POWer:VOLTagesource :POWer:QUALity:FREQREFerence :POWer:REFLevel:METHod :POWer:REFLevel:PERCent:HIGH :POWer:REFLevel:PERCent:LOW :POWer:REFLevel:PERCent:MID :POWer:TYPE Syntax :POWer:TYPE :POWer:TYPE? Description Parameter Description Return Format Example Sets or queries the power analysis type.
Chapter 2 Command System RIGOL :POWer:VOLTagesource Syntax :POWer:VOLTagesource :POWer:VOLTagesource? Description Parameter Return Format Example Sets or queries the voltage source of power quality. Name Type Range Default Discrete {CHANnel1|CHANnel2|CHANnel3|CHANnel4} CHANnel1 The query returns CHAN1, CHAN2, CHAN3, or CHAN4. :POWer:VOLTagesource CHANnel2 :POWer:VOLTagesource? /*Sets the voltage source to CHANnel2.*/ /*The query returns CHAN2.
Chapter 2 Command System RIGOL :POWer:REFLevel:PERCent:HIGH Syntax :POWer:REFLevel:PERCent:HIGH :POWer:REFLevel:PERCent:HIGH? Description Parameter Remarks Sets or queries the reference level percentage upper limit of power quality. Name Type Range Default Integer (median+1) to 100 0 upper limit>median>lower limit Return Format The query returns an integer ranging from (median+1) to 100.
Chapter 2 Command System RIGOL :Quick Command The :Quick command is used to set and query the relevant parameters for shortcut keys. Command List: :Quick:OPERation :Quick:OPERation Syntax :Quick:OPERation :Quick:OPERation? Description Parameter Remarks Return Format Example Sets or queries the type of the shortcut keys. Name Type Range Default Discrete {SIMage|SWAVe|SSETup|AMEasure|SRESet} SIMage SIMage: indicates the screen image. SWAVe: indicates the waveform saving.
Chapter 2 Command System RIGOL :RECord Commands Command List: :RECord:ENABle :RECord:STARt :RECord:PLAY :RECord:CURRent :RECord:FRAMes :RECord:ENABle Syntax :RECord:ENABle :RECord:ENABle? Description Parameter Return Format Example Enables or disables the waveform recording function; or queries the on/off status of the waveform recording function. Name Type Range Default Bool {{1|ON}|{0|OFF}} 0|OFF The query returns 1 or 0.
Chapter 2 Command System RIGOL :RECord:PLAY Syntax :RECord:PLAY :RECord:PLAY? Description Parameter Return Format Example Enables or disables the waveform playing function; or queries the on/off status of the waveform playing function. Name Type Range Default Bool {{1|ON}|{0|OFF}} 0|OFF The query returns 1 or 0. :RECord:PLAY ON :RECord:PLAY? /*Sets to play the waveforms.*/ /*The query returns 1.
Chapter 2 Command System RIGOL :REFerence Commands The :REFerence commands are used to set relevant parameters for reference waveforms.
Chapter 2 Command System Format Example RIGOL D15, CHAN1, CHAN2, CHAN3, CHAN4, MATH1, MATH2, MATH3, or MATH4. :REFerence:SOURce 1,CHANnel1 /*Sets the source of the reference channel 1 to CHANnel1.*/ :REFerence:SOURce? 1 /*The query returns CHAN1.*/ :REFerence:VSCale Syntax :REFerence:VSCale [, :REFerence:VSCale? ][ Description Parameter Sets or queries the vertical scale of the specified reference channel. The unit is the same as that of the current source.]
Chapter 2 Command System RIGOL :REFerence:RESet Syntax Description Parameter :REFerence:RESet [ Resets the vertical scale and vertical offset of the specified reference channel to the defaults. Name Type Range Default ][ Discrete {1|2|3|4|5|6|7|8|9|10} —— :REFerence:CURRent Syntax Description Parameter Remarks :REFerence:CURRent ][ Selects the specified reference channel.]
Chapter 2 Command System RIGOL :REFerence:LABel:ENABle Syntax :REFerence:LABel:ENABle :REFerence:LABel:ENABle? Description Parameter Return Format Example Enables or disables the display of all the labels; or queries the on/off display of all the labels. Name Type Range Default [ Discrete {1|2|3|4|5|6|7|8|9|10} —— Bool {{1|ON}|{0|OFF}} 0|OFF The query returns 1 or 0. :REFerence:LABel:ENABle 1,ON /*Enables the display of all the labels.]
Chapter 2 Command System RIGOL :SAVE and :Load Commands Command List: :SAVE:CSV :SAVE:CSV:LENGth :SAVE:FORMat :SAVE:IMAGe :SAVE:IMAGe:TYPE :SAVE:IMAGe:INVert :SAVE:IMAGe:COLor :SAVE:SETup :SAVE:WAVeform :SAVE:STATus? :LOAD:SETup :SAVE:CSV Syntax Description Parameter Remarks Example :SAVE:CSV Saves the waveform data displayed on the screen to the internal or external memory in "*.csv" format.
Chapter 2 Command System Example RIGOL :SAVE:CSV:LENGth MAXimum :SAVE:CSV:LENGth? /*Sets the data length type to MAXimum.*/ /*The query returns MAX.*/ :SAVE:FORMat Syntax :SAVE:FORMat :SAVE:FORMat? Description Parameter Return Format Example Sets or queries the storage format. Name Type Range Default Discrete {TRACe|WAVeform|SETup|PICTure|CSV} PICTure The query returns TRAC, WAV, SET, PICT, or CSV. :SAVE:FORMat TRACe :SAVE:FORMat? /*Sets the storage format to TRACe.
Chapter 2 Command System RIGOL :SAVE:IMAGe:INVert Syntax :SAVE:IMAGe:INVert :SAVE:IMAGe:INVert? Description Parameter Enables or disables the invert function when saving the image; or queries whether the invert function is enabled when saving the image. Name Type Range Default Bool {{1|ON}|{0|OFF}} 0|OFF Return Format The query returns 1 or 0. Example :SAVE:IMAGe:INVert ON :SAVE:IMAGe:INVert? /*Enables the invert function when saving the image.*/ /*The query returns 1.
Chapter 2 Command System RIGOL :SAVE:WAVeform Syntax Description Parameter :SAVE:WAVeform Saves the waveform data to the internal or external memory as a file. Name Type Range Default ASCII String Refer to Remarks —— Remarks includes the file storage location and the filename with a suffix. By default, its suffix is in ".bin" format. The filename suffixed with ".csv" and ".wfm" are also supported.
Chapter 2 Command System RIGOL :SEARch Commands Command List: :SEARch:STATe :SEARch:MODE :SEARch:EVENt :SEARch:EDGE:SLOPe :SEARch:EDGE:SOURce :SEARch:PULSe:POLarity :SEARch:PULSe:QUALifier :SEARch:PULSe:SOURce :SEARch:RUNT:POLarity :SEARch:RUNT:QUALifier :SEARch:RUNT:SOURce :SEARch:SLOPe:POLarity :SEARch:SLOPe:QUALifier :SEARch:SLOPe:SOURce :SEARch:STATe Syntax :SEARch:STATe :SEARch:STATe? Description Parameter Return Format Example 2-128
Chapter 2 Command System RIGOL :SEARch:MODE Syntax :SEARch:MODE :SEARch:MODE? Description Sets the search type. Parameter Remarks Return Format Example Name Type Range Default Bool {EDGE|PULSe|RUNT|SLOPe|RS232|I2C|SPI} EDGE EDGE: selects "Edge" as the search type. PULSe: selects "Pulse" as the search type. RUNT: selects "Runt" as the search type. SLOPe: selects "Slope" as the search type. RS232: selects "RS232" as the search type.
Chapter 2 Command System RIGOL Return Format Example The query returns POS, NEG, or EITH. :SEARch:EDGE:SLOPe NEGative :SEARch:EDGE:SLOPe? /*Sets the edge type to NEGative.*/ /*The query returns NEG.*/ :SEARch:EDGE:SOURce Syntax :SEARch:EDGE:SOURce :SEARch:EDGE:SOURce? Description Parameter Return Format Example Sets or queries the source for the "Edge" search type.
Chapter 2 Command System Return Format Example RIGOL GLESs: the positive/negative pulse width of the input signal is greater than the specified lower limit of pulse width and smaller than the specified upper limit of pulse width. The query returns GRE, LESS, or GLES. :SEARch:PULSe:QUALifier LESS :SEARch:PULSe:QUALifier? /*Sets the search condition for "Pulse" search type to LESS.*/ /*The query returns LESS.
Chapter 2 Command System RIGOL Return Format Example GREater: triggers when the runt pulse width is greater than the lower limit of pulse width. LESS: triggers when the runt pulse width is smaller than the upper limit of pulse width. GLESs: triggers when the runt pulse width is greater than the lower limit and smaller than the upper limit of pulse width. Note: The lower limit of the pulse width must be smaller than the upper limit. The query returns NONE, GRE, LESS, or GLES.
Chapter 2 Command System RIGOL :SEARch:SLOPe:QUALifier Syntax :SEARch:SLOPe:QUALifier :SEARch:SLOPe:QUALifier? Description Parameter Remarks Return Format Example Sets or queries the search condition for "Slope" search type. Name Type Range Default Discrete {GREater|LESS|GLESs} GREater GREater: the positive slope time of the input signal is greater than the specified time. LESS: the positive slope time of the input signal is smaller than the specified time.
RIGOL Chapter 2 Command System [:SOURce[]] Commands The [:SOURce[]] commands are used to set the relevant parameters of the built-in function/arbitrary waveform generator. can set to 1 or 2, which indicates the corresponding built-in function/arbitrary waveform generator channel. When or :SOURce[] is omitted, by default, the operations are carried out on AWG GI. The commands are only available for the model installed with the MSO5000-AWG option.
Chapter 2 Command System RIGOL [:SOURce[]]:FREQuency[:FIXed] Syntax [:SOURce[]]:FREQuency[:FIXed] [:SOURce[]]:FREQuency[:FIXed]? Description Parameter If modulation is not enabled for the specified function/arbitrary waveform generator channel, this command is used to set or query the output frequency of the specified function/arbitrary waveform generator channel.
Chapter 2 Command System RIGOL [:SOURce[]]:PHASe:INITiate Syntax Description Parameter Remarks [:SOURce[]]:PHASe:INITiate Performs the "align phase" operation. Name Type Range Default [] Discrete {1|2} When omitted, by default, the operations are carried out on GI. When you perform the "align phase" operation, the instrument will re-configure the two channels to output according to the preset frequency and phase.
Chapter 2 Command System RIGOL [:SOURce[]]:FUNCtion:RAMP:SYMMetry Syntax [:SOURce[]]:FUNCtion:RAMP:SYMMetry [:SOURce[]]:FUNCtion:RAMP:SYMMetry? Description Parameter Remarks Sets or queries the symmetry of the Ramp waveforms output from the specified function/arbitrary waveform generator channel. Name Type Range Default [] Discrete {1|2} When omitted, by default, the operations are carried out on GI.
Chapter 2 Command System RIGOL [:SOURce[]]:VOLTage[:LEVel][:IMMediate]:OFFSet Syntax [:SOURce[]]:VOLTage[:LEVel] [:IMMediate]:OFFSet [:SOURce[]]:VOLTage[:LEVel] [:IMMediate]:OFFSet? Description Parameter Sets or queries the DC offset of the signal output from the specified function/arbitrary waveform generator channel. By default, the unit is VDC. Name Type Range Default [] Discrete {1|2} When omitted, by default, the operations are carried out on GI.
Chapter 2 Command System RIGOL Duty Cycle=t/T*100% t T Return Format Example The query returns the current duty cycle in scientific notation. :PULSe:DCYCle 50 :PULSe:DCYCle? /*Sets the duty cycle of GI pulse to 50%.*/ /*The query returns 5.000000E+1.*/ [:SOURce[]]:MOD:TYPE Syntax [:SOURce[]]:MOD:TYPE [:SOURce[]]:MOD:TYPE? Description Parameter Remarks Return Format Example Sets or queries the modulation type of the specified function/arbitrary waveform generator channel.
Chapter 2 Command System RIGOL [:SOURce[]]:MOD:AM[:DEPTh] Syntax [:SOURce[]]:MOD:AM[:DEPTh] [:SOURce[]]:MOD:AM[:DEPTh]? Description Parameter Remarks Return Format Example Sets or queries the depth of AM of the specified function/arbitrary waveform generator channel. The modulation depth refers to the strength of the AM and is expressed in percentage. Name Type Range Default [] Discrete {1|2} When omitted, by default, the operations are carried out on GI.
Chapter 2 Command System RIGOL Format Example :MOD:AM:INTernal:FREQuency 100 /*Sets the modulating waveform frequency of AM of GI to 100 Hz.*/ :MOD:AM:INTernal:FREQuency? /*The query returns 100.
Chapter 2 Command System RIGOL [:SOURce[]]:MOD:FM[:DEVIation] Syntax [:SOURce[]]:MOD:FM[:DEVIation] [:SOURce[]]:MOD:FM[:DEVIation]? Description Parameter Remarks Return Format Example Sets or queries the frequency offset of FM of the specified function/arbitrary waveform generator channel. By default, the unit is Hz. Name Type Range Default [] Discrete {1|2} When omitted, by default, the operations are carried out on GI.
Chapter 2 Command System RIGOL [:SOURce[]]:SWEep:STIMe Syntax Description Parameter Remarks Return Format Example [:SOURce[]]:SWEep:STIMe [:SOURce[]]:SWEep:STIMe? Sets or queries the sweep time of the specified signal source channel. Name Type Range Default [] Discrete {1|2} When omitted, by default, the operations are carried out on GI.
Chapter 2 Command System RIGOL receiving the trigger signal. Return Format Example INFinite: sets the number of cycles to Infinite. It outputs continuous waveforms once receiving the trigger signal. The query returns NCYC or INF. :BURSt:TYPE INFinite :BURSt:TYPE? /*Sets the burst type of GI to INFinite.*/ /*The query returns INF.
Chapter 2 Command System RIGOL [:SOURce[]]:APPLy? Syntax Description Parameter Return Format Example [:SOURce[]]:APPLy? Queries the current output configuration of the specified function/arbitrary waveform generator channel. Name Type Range Default [] Discrete {1|2} When omitted, by default, the operations are carried out on GI. The query returns the current output configuration in ",,,," format.
Chapter 2 Command System RIGOL HighZ: (-2.5V + current amplitude/2) to (2.5V current amplitude/2) 50Ω: (-1.25V + current amplitude/2) to (1.25V current amplitude/2) Remarks Real 0° to 360° 0° This series of commands are used to select the waveform shape. NOISe: noise PULSe: pulse RAMP: ramp waveform SINusoid: sine waveform SQUare: square waveform ARBitrary: arbitrary waveform : sets the frequency of the specified waveform (this parameter is not available for Noise waveform).
Chapter 2 Command System RIGOL Format Example :OUTPut 1 :OUTPut? /*Enables the output of GI.*/ /*The query returns ON.*/ [:SOURce[]]:OUTPut[]:IMPedance Syntax [:SOURce[]]:OUTPut[]:IMPedance [:SOURce[]]:OUTPut[]:IMPedance? Description Parameter Remarks Return Format Example Sets or queries the impedance of the specified function/arbitrary waveform generator channel.
RIGOL Chapter 2 Command System :SYSTem Commands The :SYSTem commands are used to set sound, language, and other relevant system settings.
Chapter 2 Command System RIGOL :SYSTem:AOUTput Syntax :SYSTem:AOUTput :SYSTem:AOUTput? Description Parameter Remarks Return Format Example Sets or queries the type of the signal output from the [TRIG OUT] connector on the rear panel.
Chapter 2 Command System RIGOL :SYSTem:BEEPer Syntax :SYSTem:BEEPer :SYSTem:BEEPer? Description Parameter Return Format Example Turns on or off the beeper; or queries the on/off status of the beeper. Name Type Range Default Bool {{1|ON}|{0|OFF}} 0|OFF The query returns 1 or 0. :SYSTem:BEEPer ON :SYSTem:BEEPer? /*Enables the beeper.*/ /*The query returns 1.*/ :SYSTem:DATE Syntax :SYSTem:DATE ,,.
Chapter 2 Command System RIGOL :SYSTem:GPIB Syntax :SYSTem:GPIB :SYSTem:GPIB? Description Parameter Return Format Example Sets or queries the GPIB address. Name Type Range Default Integer 1 to 30 1 The query returns an integer ranging from 1 to 30. :SYSTem:GPIB 2 :SYSTem:GPIB? /*Sets the GPIB address to 2.*/ /*The query returns 2.*/ :SYSTem:KEY:PRESs Syntax Description Parameter Remarks :SYSTem:KEY:PRESs Press down the specified key on the front panel of the oscilloscope.
Chapter 2 Command System RIGOL Example VSCale3: press down the vertical scale knob of CH3, i.g. switch the vertical scale of CH3 to "Coarse" or "Fine". VSCale4: press down the vertical scale knob of CH4, i.g. switch the vertical scale of CH4 to "Coarse" or "Fine". GENerator1|GENerator2: press down AWG1 or AWG2. HSCale: press down the horizontal time base adjustment knob, i.g. switch the horizontal time base to "Coarse" or "Fine". HPOSition: press down the horizontal position knob, i.g.
Chapter 2 Command System RIGOL it is 1. Example :SYSTem:KEY:INCRease VOFFset2 /*Rotates the vertical offset adjustment knob of CH2 clockwise.*/ :SYSTem:LANGuage Syntax :SYSTem:LANGuage :SYSTem:LANGuage? Description Parameter Sets or queries the system language.
Chapter 2 Command System RIGOL :SYSTem:OPTion:INSTall Syntax Description Parameter Remarks :SYSTem:OPTion:INSTall Installs an option. Name Type Range Default ASCII String Refer to Remarks —— Example To install the option, first purchase the required option to obtain the key, and then use the key to obtain the option license according to the following steps. Log in to the RIGOL official website (www.rigol.
Chapter 2 Command System RIGOL :SYSTem:RAMount? Syntax Description Return Format :SYSTem:RAMount? Queries the number of analog channels of the current instrument. The query returns the number of analog channels of the current instrument in integer. :SYSTem:RESet Syntax Description :SYSTem:RESet Resets the system to power on again. :SYSTem:SETup Syntax :SYSTem:SETup :SYSTem:SETup? Description Parameter Remarks Sends or reads the data stream of the system setup file.
Chapter 2 Command System RIGOL Example :SYSTem:SSAVEr:TIME 10 :SYSTem:SSAVEr:TIME? /*Sets the screen saver time to 10 minutes.*/ /*The query returns 10.*/ :SYSTem:TIME Syntax :SYSTem:TIME ,, :SYSTem:TIME? Description Parameter Remarks Return Format Example Sets or queries the system time.
Chapter 2 Command System RIGOL :TIMebase Commands The :TIMebase commands are used to set the horizontal system. For example, enable the delayed sweep, set the horizontal time base mode, etc.
Chapter 2 Command System RIGOL scale. Return Format Example The query returns the offset of the delayed time base in scientific notation. :TIMebase:DELay:OFFSet 0.000002 /*Sets the offset of the delayed time base to 2 μs.*/ :TIMebase:DELay:OFFSet? /*The query returns 2.000000E-6.*/ :TIMebase:DELay:SCALe Syntax :TIMebase:DELay:SCALe :TIMebase:DELay:SCALe? Description Parameter Remarks Return Format Example Sets or queries the scale of the delayed time base. The default unit is s/div.
Chapter 2 Command System RIGOL :TIMebase[:MAIN]:SCALe Syntax :TIMebase[:MAIN]:SCALe :TIMebase[:MAIN]:SCALe? Description Parameter Remarks Sets or queries the scale of the main time base. Name Type Range Default Real Refer to Remarks 1 μs/div The range of is related to the current horizontal time base mode of the oscilloscope and its model.
Chapter 2 Command System RIGOL Return Format Example LB: when the horizontal time base is modified, the waveform displayed will be expanded or compressed relative to the left border of the screen. RB: when the horizontal time base is modified, the waveform displayed will be expanded or compressed relative to the right border of the screen. TRIG: when the horizontal time base is modified, the waveform displayed will be expanded or compressed horizontally relative to the trigger position.
Chapter 2 Command System RIGOL :TRIGger Commands The :TRIGger commands are used to set the trigger system of the oscilloscope.
Chapter 2 Command System RIGOL :TRIGger:MODE Syntax :TRIGger:MODE :TRIGger:MODE? Description Parameter Return Format Example Selects or queries the trigger type. Name Type Range Default Discrete {EDGE|PULSe|SLOPe|VIDeo|PATTern|DURation| TIMeout|RUNT|WINDow|DELay|SETup|NEDGe| RS232|IIC|SPI|CAN|FLEXray|LIN|IIS|M1553} EDGE The query returns EDGE, PULS, SLOP, VID, PATT, DUR, TIM, RUNT, WIND, DEL, SET, NEDG, RS232, IIC, SPI, CAN, CANF, FLEX, LIN, IIS, or M1553.
Chapter 2 Command System RIGOL :TRIGger:SWEep Syntax :TRIGger:SWEep :TRIGger:SWEep? Description Parameter Remarks Return Format Example Sets or queries the trigger mode. Name Type Range Default Discrete {AUTO|NORMal|SINGle} AUTO AUTO: Auto trigger. The waveforms are displayed no matter whether the trigger conditions are met. NORMal: normal trigger. The waveforms are displayed when trigger conditions are met.
Chapter 2 Command System RIGOL :TRIGger:NREJect Syntax :TRIGger:NREJect :TRIGger:NREJect? Description Parameter Remarks Return Format Example Turns on or off noise rejection; or queries the on/off status of noise rejection. Name Type Range Default Bool {{1|ON}|{0|OFF}} 0|OFF Noise rejection reduces the possibility of the Noise trigger. This command is only available for the External trigger in which the analog channel is selected as the source. The query returns 1 or 0.
Chapter 2 Command System Remarks Return Format Example RIGOL POSitive: indicates the rising edge. NEGative: indicates the falling edge. RFALl: indicates the rising or falling edge. The query returns POS, NEG, or RFAL. :TRIGger:EDGE:SLOPe NEGative :TRIGger:EDGE:SLOPe? /*Sets the edge type to Falling Edge.*/ /*The query returns NEG.
Chapter 2 Command System RIGOL :TRIGger:PULSe Command List: :TRIGger:PULSe:SOURce :TRIGger:PULSe:WHEN :TRIGger:PULSe:UWIDth :TRIGger:PULSe:LWIDth :TRIGger:PULSe:LEVel :TRIGger:PULSe:SOURce Syntax :TRIGger:PULSe:SOURce :TRIGger:PULSe:SOURce? Description Parameter Return Format Example Sets or queries the trigger source of Pulse trigger.
Chapter 2 Command System RIGOL :TRIGger:PULSe:UWIDth Syntax :TRIGger:PULSe:UWIDth :TRIGger:PULSe:UWIDth? Description Sets or queries the pulse upper limit of the Pulse trigger. The default unit is s. Parameter Remarks Return Format Example Name Type Range Default Real Pulse lower limit to 10 s 2 μs The set upper limit cannot be smaller than the lower limit, otherwise, the lower limit will be automatically changed.
Chapter 2 Command System RIGOL :TRIGger:SLOPe Command List: :TRIGger:SLOPe:SOURce :TRIGger:SLOPe:WHEN :TRIGger:SLOPe:TUPPer :TRIGger:SLOPe:TLOWer :TRIGger:SLOPe:WINDow :TRIGger:SLOPe:ALEVel :TRIGger:SLOPe:BLEVel :TRIGger:SLOPe:SOURce Syntax :TRIGger:SLOPe:SOURce < channel > :TRIGger:SLOPe:SOURce? Description Parameter Return Format Example Sets or queries the trigger source of Slope trigger.
Chapter 2 Command System RIGOL :TRIGger:SLOPe:TUPPer Syntax :TRIGger:SLOPe:TUPPer :TRIGger:SLOPe:TUPPer? Description Parameter Remarks Return Format Example Sets or queries the upper time limit value of the Slope trigger. The default unit is s. Name Type Range Default Real Lower limit to 10 s 1 μs The set upper limit cannot be smaller than the lower limit, otherwise, the lower limit will be automatically changed. The query returns the upper time limit in scientific notation.
Chapter 2 Command System RIGOL :TRIGger:SLOPe:ALEVel Syntax :TRIGger:SLOPe:ALEVel :TRIGger:SLOPe:ALEVel? Description Parameter Remarks Return Format Example Sets or queries the upper limit of the trigger level of Slope trigger. The unit is the same as that of the current amplitude.
Chapter 2 Command System RIGOL :TRIGger:VIDeo Command List: :TRIGger:VIDeo:SOURce :TRIGger:VIDeo:POLarity :TRIGger:VIDeo:MODE :TRIGger:VIDeo:LINE :TRIGger:VIDeo:STANdard :TRIGger:VIDeo:LEVel :TRIGger:VIDeo:SOURce Syntax :TRIGger:VIDeo:SOURce :TRIGger:VIDeo:SOURce? Description Parameter Return Format Example Sets or queries the trigger source of Video trigger.
Chapter 2 Command System RIGOL :TRIGger:VIDeo:MODE Syntax :TRIGger:VIDeo:MODE :TRIGger:VIDeo:MODE? Description Parameter Remarks Return Format Example Sets or queries the sync type of Video trigger. Name Type Range Default Discrete {ODDField|EVENfield|LINE|ALINes} ALINes ODDField: indicates the odd field. The oscilloscope triggers on the rising edge of the first ramp waveform in the odd field. It is available when the video standard is NTSC or PAL/SECAM.
Chapter 2 Command System RIGOL :TRIGger:VIDeo:STANdard Syntax :TRIGger:VIDeo:STANdard :TRIGger:VIDeo:STANdard? Description Parameter Remarks Return Format Example Sets or queries the video standard of Video trigger. Name Type Range Default Discrete {PALSecam|NTSC|480P|576P} NTSC PALSecam: PAL: indicates that the frame frequency is 25 frames per second. The TV scan line is 625, with the odd field going first and the even field following behind.
Chapter 2 Command System RIGOL :TRIGger:PATTern Command List: :TRIGger:PATTern:PATTern :TRIGger:PATTern:LEVel :TRIGger:PATTern:SOURce :TRIGger:PATTern:PATTern Syntax :TRIGger:PATTern:PATTern [,[,[,,[,[,[,[,[,[,[,[,[,[,[,[,[,[,< pla14>[,]]]]]]]]]]]]]]]]]]]] :TRIGger:PATTern:PATTern? Description Parameter Remarks Return Format Example 2-174 Sets or queries the channel pat
Chapter 2 Command System RIGOL :TRIGger:PATTern:LEVel Syntax :TRIGger:PATTern:LEVel , :TRIGger:PATTern:LEVel? Description Parameter Remarks Return Format Example Sets or queries the trigger level of the specified channel in Pattern trigger. The unit is the same as that of the current amplitude.
Chapter 2 Command System RIGOL :TRIGger:DURATion Command List: :TRIGger:DURATion:SOURce :TRIGger:DURATion:TYPE :TRIGger:DURATion:WHEN :TRIGger:DURATion:TUPPer :TRIGger:DURATion:TLOWer :TRIGger:DURation:LEVel :TRIGger:DURATion:SOURce Syntax :TRIGger:DURATion:SOURce :TRIGger:DURATion:SOURce? Description Parameter Return Format Example Sets or queries the trigger source of Duration trigger.
Chapter 2 Command System RIGOL channels "D0 to D15". Return Format Example In the parameter range, H indicates high level (higher than the threshold level of the channel), L indicates low level (lower than the threshold level of the channel), and X indicates omitting the channel (This channel is not used as a part of the pattern. When all the channels are set to X, the oscilloscope will not trigger.) The query returns the currently set pattern of all the channels.
Chapter 2 Command System RIGOL :TRIGger:DURATion:TLOWer Syntax :TRIGger:DURATion:TLOWer :TRIGger:DURATion:TLOWer? Description Parameter Remarks Return Format Example Sets or queries the lower limit of the duration time of Duration trigger. The default unit is s. Name Type Range Default Real 800 ps to 10 s 1 μs This command is only available when the trigger conditions are GREater and GLESs. The query returns the lower limit of the duration time in scientific notation.
Chapter 2 Command System RIGOL :TRIGger:TIMeout Command List: :TRIGger:TIMeout:SOURce :TRIGger:TIMeout:SLOPe :TRIGger:TIMeout:TIME :TRIGger:TIMeout:LEVel :TRIGger:TIMeout:SOURce Syntax :TRIGger:TIMeout:SOURce :TRIGger:TIMeout:SOURce? Description Parameter Return Format Example Sets or queries the trigger source of Timeout trigger.
Chapter 2 Command System RIGOL :TRIGger:TIMeout:TIME Syntax :TRIGger:TIMeout:TIME :TRIGger:TIMeout:TIME? Description Parameter Return Format Example Sets or queries the timeout value of Timeout trigger. The default unit is s. Name Type Range Default Real 16 ns to 1 s 1 μs The query returns the timeout value in scientific notation. :TRIGger:TIMeout:TIME 0.002 :TRIGger:TIMeout:TIME? /*Sets the timeout value to 2 ms.*/ /*The query returns 2.000000E-3.
Chapter 2 Command System RIGOL :TRIGger:RUNT Command List: :TRIGger:RUNT:SOURce :TRIGger:RUNT:POLarity :TRIGger:RUNT:WHEN :TRIGger:RUNT:WUPPer :TRIGger:RUNT:WLOWer :TRIGger:RUNT:ALEVel :TRIGger:RUNT:BLEVel :TRIGger:RUNT:SOURce Syntax :TRIGger:RUNT:SOURce :TRIGger:RUNT:SOURce? Description Parameter Return Format Example Sets or queries the trigger source of Runt trigger.
Chapter 2 Command System RIGOL :TRIGger:RUNT:WHEN Syntax :TRIGger:RUNT:WHEN :TRIGger:RUNT:WHEN? Description Parameter Remarks Return Format Example Sets or queries the qualifier of Runt trigger. Name Type Range Default Discrete {NONE|GREater|LESS|GLESs} NONE NONE: indicates not setting the trigger condition of Runt trigger. GREater: triggers when the Runt pulse width is greater than the set lower limit of pulse width.
Chapter 2 Command System RIGOL :TRIGger:RUNT:WLOWer Syntax :TRIGger:RUNT:WLOWer :TRIGger:RUNT:WLOWer? Description Parameter Remarks Return Format Example Sets or queries the lower limit of the pulse width of Runt trigger. The default unit is s. Name Type Range Default Real 8 ns to 9.9 s 8 ns This command is only available when the qualifier is set to GREater or GLESs.
Chapter 2 Command System RIGOL :TRIGger:WINDows Command List: :TRIGger:WINDows:SOURce :TRIGger:WINDows:SLOPe :TRIGger:WINDows:POSition :TRIGger:WINDows:TIME :TRIGger:WINDows:ALEVel :TRIGger:WINDows:BLEVel :TRIGger:WINDows:SOURce Syntax :TRIGger:WINDows:SOURce :TRIGger:WINDows:SOURce? Description Parameter Return Format Example Sets or queries the trigger source of Window trigger.
Chapter 2 Command System RIGOL :TRIGger:WINDows:POSition Syntax :TRIGger:WINDows:POSition :TRIGger:WINDows:POSition? Description Parameter Remarks Return Format Example Sets or queries the trigger position of Window trigger. Name Type Range Default Discrete {EXIT|ENTer|TIME} ENTer EXIT: triggers when the input signal exits the specified trigger level range. ENTer: triggers when the input signal enters the specified trigger level range.
Chapter 2 Command System RIGOL :TRIGger:WINDows:BLEVel Syntax :TRIGger:WINDows:BLEVel :TRIGger:WINDows:BLEVel? Description Parameter Remarks Return Format Example 2-186 Sets or queries the lower limit of the trigger level of Window trigger. The unit is the same as that of the current amplitude.
Chapter 2 Command System RIGOL :TRIGger:DELay Command List: :TRIGger:DELay:SA :TRIGger:DELay:SLOPa :TRIGger:DELay:SB :TRIGger:DELay:SLOPb :TRIGger:DELay:TYPE :TRIGger:DELay:TUPPer :TRIGger:DELay:TLOWer :TRIGger:DELay:ALEVel :TRIGger:DELay:BLEVel :TRIGger:DELay:SA Syntax :TRIGger:DELay:SA :TRIGger:DELay:SA? Description Parameter Return Format Example Sets or queries the trigger source of Source A in Delay trigger.
Chapter 2 Command System RIGOL :TRIGger:DELay:SB Syntax :TRIGger:DELay:SB :TRIGger:DELay:SB? Description Parameter Return Format Example Sets or queries the trigger source of Source B in Delay trigger. Name Type Range Default Discrete {D0|D1|D2|D3|D4|D5|D6|D7|D8|D9|D10| D11|D12|D13|D14|D15|CHANnel1|CHANn el2|CHANnel3|CHANnel4} CHANnel2 The query returns D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, CHAN1, CHAN2, CHAN3, or CHAN4.
Chapter 2 Command System Return Format Example RIGOL The query returns GRE, LESS, GLES, or GOUT. :TRIGger:DELay:TYPE GOUT :TRIGger:DELay:TYPE? /*Sets the delay type to "><".*/ /*The query returns GOUT.*/ :TRIGger:DELay:TUPPer Syntax :TRIGger:DELay:TUPPer :TRIGger:DELay:TUPPer? Description Parameter Remarks Return Format Example Sets or queries the upper limit of delay time of the Delay trigger. The default unit is s. Name Type Range Default Real 8.
Chapter 2 Command System RIGOL Return Format Example The query returns the trigger level of Delay trigger Source A in scientific notation. :TRIGger:DELay:ALEVel 0.16 :TRIGger:DELay:ALEVel? /*Sets the trigger level of Delay trigger Source A to 160 mV.*/ /*The query returns 1.600000E-1.*/ :TRIGger:DELay:BLEVel Syntax :TRIGger:DELay:BLEVel :TRIGger:DELay:BLEVel? Description Parameter Sets or queries the trigger level of Delay trigger Source B.
Chapter 2 Command System RIGOL :TRIGger:SHOLd Command List: :TRIGger:SHOLd:DSRC :TRIGger:SHOLd:CSRC :TRIGger:SHOLd:SLOPe :TRIGger:SHOLd:PATTern :TRIGger:SHOLd:TYPE :TRIGger:SHOLd:STIMe :TRIGger:SHOLd:HTIMe :TRIGger:SHOLd:DLEVel :TRIGger:SHOLd:CLEVel :TRIGger:SHOLd:DSRC Syntax :TRIGger:SHOLd:DSRC :TRIGger:SHOLd:DSRC? Description Parameter Return Format Example Sets or queries the data source of Setup&Hold trigger.
Chapter 2 Command System RIGOL :TRIGger:SHOLd:SLOPe Syntax :TRIGger:SHOLd:SLOPe :TRIGger:SHOLd:SLOPe? Description Parameter Return Format Example Sets or queries the edge type of Setup&Hold trigger. Name Type Range Default Discrete {POSitive|NEGative} POSitive The query returns POS or NEG. :TRIGger:SHOLd:SLOPe NEGative :TRIGger:SHOLd:SLOPe? /*Sets the edge type to NEGative.*/ /*The query returns NEG.
Chapter 2 Command System RIGOL :TRIGger:SHOLd:STIMe Syntax :TRIGger:SHOLd:STIMe :TRIGger:SHOLd:STIMe? Description Parameter Remarks Return Format Example Sets or queries the setup time of Setup&Hold trigger. The default unit is s. Name Type Range Default Real 8 ns to 1 s 1 μs Setup time indicates the time that the data remain stable and unchanged before the clock signal of the trigger comes. This command is only available when the hold type is SETup or SETHOld.
Chapter 2 Command System RIGOL :TRIGger:SHOLd:CLEVel Syntax :TRIGger:SHOLd:CLEVel :TRIGger:SHOLd:CLEVel? Description Parameter Remarks Return Format Example 2-194 Sets or queries the trigger level of the clock source. The unit is the same as that of the current amplitude. Name Type Range Default Real (-5 × VerticalScale - OFFSet) to (5 × VerticalScale - OFFSet) 0V For VerticalScale, refer to the :CHANnel:SCALe command; for OFFSet, refer to the :CHANnel:OFFSet command.
Chapter 2 Command System RIGOL :TRIGger:NEDGe Command List: :TRIGger:NEDGe:SOURce :TRIGger:NEDGe:SLOPe :TRIGger:NEDGe:IDLE :TRIGger:NEDGe:EDGE :TRIGger:NEDGe:LEVel :TRIGger:NEDGe:SOURce Syntax :TRIGger:NEDGe:SOURce :TRIGger:NEDGe:SOURce? Description Parameter Return Format Example Sets or queries the trigger source of the Nth Edge trigger.
Chapter 2 Command System RIGOL :TRIGger:NEDGe:IDLE Syntax :TRIGger:NEDGe:IDLE :TRIGger:NEDGe:IDLE? Description Parameter Return Format Example Sets or queries the idle time of the Nth Edge trigger. The default unit is s. Name Type Range Default Real 16 ns to 1 s 1 μs The query returns the idle time in scientific notation. :TRIGger:NEDGe:IDLE 0.002 :TRIGger:NEDGe:IDLE? /*Sets the idle time to 2 ms.*/ /*The query returns 2.000000E-3.
Chapter 2 Command System RIGOL :TRIGger:RS232 (Option) Command List: :TRIGger:RS232:SOURce :TRIGger:RS232:WHEN :TRIGger:RS232:PARity :TRIGger:RS232:STOP :TRIGger:RS232:DATA :TRIGger:RS232:WIDTh :TRIGger:RS232:BAUD :TRIGger:RS232:LEVel :TRIGger:RS232:SOURce Syntax :TRIGger:RS232:SOURce :TRIGger:RS232:SOURce? Description Parameter Return Format Example Sets or queries the trigger source of RS232 trigger.
Chapter 2 Command System RIGOL :TRIGger:RS232:PARity Syntax :TRIGger:RS232:PARity :TRIGger:RS232:PARity? Description Parameter Return Format Example Sets or queries the check mode of RS232 trigger. Name Type Range Default Discrete {EVEN|ODD|NONE} NONE The query returns EVEN, ODD, or NONe. :TRIGger:RS232:PARity EVEN :TRIGger:RS232:PARity? /*Sets the check mode to EVEN.*/ /*The query returns EVEN.
Chapter 2 Command System RIGOL :TRIGger:RS232:WIDTh Syntax :TRIGger:RS232:WIDTh :TRIGger:RS232:WIDTh? Description Parameter Return Format Example Sets or queries the data width of RS232 trigger when the trigger condition is "Data". Name Type Range Default Discrete {5|6|7|8} 8 The query returns 5, 6, 7, or 8. :TRIGger:RS232:WIDTh 6 :TRIGger:RS232:WIDTh? /*Sets the data width to 6.*/ /*The query returns 6.
Chapter 2 Command System RIGOL :TRIGger:IIC (Option) Command List: :TRIGger:IIC:SCL :TRIGger:IIC:SDA :TRIGger:IIC:WHEN :TRIGger:IIC:AWIDth :TRIGger:IIC:ADDRess :TRIGger:IIC:DIRection :TRIGger:IIC:DATA :TRIGger:IIC:CLEVel :TRIGger:IIC:DLEVel :TRIGger:IIC:SCL Syntax :TRIGger:IIC:SCL :TRIGger:IIC:SCL? Description Parameter Return Format Example Sets or queries the source channel of the clock line of I2C trigger.
Chapter 2 Command System RIGOL :TRIGger:IIC:WHEN Syntax :TRIGger:IIC:WHEN :TRIGger:IIC:WHEN? Description Parameter Remarks Return Format Example Sets or queries the trigger condition of I2C trigger. Name Type Range Default Discrete {STARt|RESTart|STOP|NACKnowledge|ADD Ress|DATA|ADATa} STARt STARt: indicates that the oscilloscope triggers when SCL is high level and SDA transitions from high level to low level.
Chapter 2 Command System RIGOL :TRIGger:IIC:ADDRess Syntax :TRIGger:IIC:ADDRess
:TRIGger:IIC:ADDRess? Description Parameter Remarks Return Format Example Sets or queries the address of I2C trigger when the trigger condition is "ADDRess" or "ADATa". Name Type Range Default Integer 0 to 2n - 1: 0 to 127, 0 to 255, or 0 to 1,023 0 n In the expression 2 -1, n indicates the current address width. The query returns an integer.Chapter 2 Command System RIGOL :TRIGger:IIC:CLEVel Syntax :TRIGger:IIC:CLEVel :TRIGger:IIC:CLEVel? Description Parameter Remarks Return Format Example Sets or queries the trigger level of the clock line in I2C trigger. The unit is the same as that of the current amplitude. Name Type Range Default Real (-5 × VerticalScale - OFFSet) to (5 × VerticalScale - OFFSet) 0V For VerticalScale, refer to the :CHANnel:SCALe command; for OFFSet, refer to the :CHANnel:OFFSet command.
Chapter 2 Command System RIGOL :TRIGger:CAN (Option) Command List: :TRIGger:CAN:BAUD :TRIGger:CAN:SOURce :TRIGger:CAN:STYPe :TRIGger:CAN:WHEN :TRIGger:CAN:SPOint :TRIGger:CAN:LEVel :TRIGger:CAN:BAUD Syntax :TRIGger:CAN:BAUD :TRIGger:CAN:BAUD? Description Parameter Remarks Return Format Example Sets or queries the signal rate of CAN trigger. The unit is bps.
Chapter 2 Command System RIGOL :TRIGger:CAN:STYPe Syntax :TRIGger:CAN:STYPe :TRIGger:CAN:STYPe? Description Parameter Return Format Remarks Example Sets or queries the signal type of CAN trigger. Name Type Range Default Discrete {H|L|RXTX|DIFFerential} H The query returns H, L, RXTX, or DIFF. H: indicates the actual CAN_H differential bus signal. L: indicates the actual CAN_L differential bus signal.
Chapter 2 Command System RIGOL :TRIGger:CAN:SPOint Syntax :TRIGger:CAN:SPOint :TRIGger:CAN:SPOint? Description Parameter Remarks Return Format Example Sets or queries the sample point position of CAN trigger (expressed in %). Name Type Range Default Integer 10 to 90 50 Sample point is a point within a bit’s time. The oscilloscope samples the bit level at this point.
Chapter 2 Command System RIGOL :TRIGger:SPI (Option) Command List: :TRIGger:SPI:SCL :TRIGger:SPI:SDA :TRIGger:SPI:WHEN :TRIGger:SPI:WIDTh :TRIGger:SPI:DATA :TRIGger:SPI:TIMeout :TRIGger:SPI:SLOPe :TRIGger:SPI:CLEVel :TRIGger:SPI:DLEVel :TRIGger:SPI:SLEVel :TRIGger:SPI:MODE :TRIGger:SPI:CS :TRIGger:SPI:SCL Syntax :TRIGger:SPI:SCL :TRIGger:SPI:SCL? Description Parameter Return Format Example Sets or queries the channel source of the clock line of
Chapter 2 Command System RIGOL Format Example D15, CHAN1, CHAN2, CHAN3, or CHAN4. :TRIGger:SPI:SDA CHANnel2 /*Sets the channel source of the data line to CHANnel2.*/ :TRIGger:SPI:SDA? /*The query returns CHAN2.*/ :TRIGger:SPI:WHEN Syntax :TRIGger:SPI:WHEN :TRIGger:SPI:WHEN? Description Parameter Remarks Sets or queries the trigger condition of SPI trigger.
Chapter 2 Command System RIGOL :TRIGger:SPI:TIMeout Syntax :TRIGger:SPI:TIMeout :TRIGger:SPI:TIMeout? Description Parameter Return Format Example Sets or queries the timeout value when the trigger condition of SPI trigger is "Timeout". The default unit is s. Name Type Range Default Real 16 ns to 1 s 1 μs The query returns the timeout value in scientific notation. :TRIGger:SPI:TIMeout 0.001 :TRIGger:SPI:TIMeout? /*Sets the timeout value to 1 ms.*/ /*The query returns 1.
Chapter 2 Command System RIGOL :TRIGger:SPI:DLEVel Syntax :TRIGger:SPI:DLEVel :TRIGger:SPI:DLEVel? Description Parameter Remarks Return Format Example Sets or queries the trigger level of the data channel of SPI trigger. The unit is the same as that of the current amplitude. Name Type Range Default Real (-5 × VerticalScale - OFFSet) to (7 × VerticalScale - OFFSet) 0V For VerticalScale, refer to the :CHANnel:SCALe command; for OFFSet, refer to the :CHANnel:OFFSet command.
Chapter 2 Command System RIGOL :TRIGger:SPI:CS Syntax :TRIGger:SPI:CS :TRIGger:SPI:CS? Description Parameter Return Format Example Sets or queries the source channel of the CS line when the trigger condition of SPI is set to CS.
Chapter 2 Command System RIGOL :TRIGger:FLEXray (Option) Command List: :TRIGger:FLEXray:BAUD :TRIGger:FLEXray:LEVel :TRIGger:FLEXray:SOURce :TRIGger:FLEXray:WHEN :TRIGger:FLEXray:BAUD Syntax :TRIGger:FLEXray:BAUD :TRIGger:FLEXray:BAUD? Description Parameter Return Format Example Sets or queries the signal rate of FlexRay trigger. The default unit is bps.
Chapter 2 Command System RIGOL :TRIGger:FLEXray:SOURce Syntax :TRIGger:FLEXray:SOURce :TRIGger:FLEXray:SOURce? Description Parameter Return Format Example Sets or queries the trigger source of FlexRay trigger. Name Type Range Default Discrete {D0|D1|D2|D3|D4|D5|D6|D7|D8|D9|D10|D 11|D12|D13|D14|D15|CHANnel1|CHANnel2 |CHANnel3|CHANnel4} CHANnel1 The query returns D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, CHAN1, CHAN2, CHAN3, or CHAN4.
Chapter 2 Command System RIGOL :TRIGger:IIS (Option) The commands are only available for the MSO5XX4 model or the model installed with the MSO5000-4CH option.
Chapter 2 Command System RIGOL :TRIGger:IIS:SOURce:CLOCk Syntax :TRIGger:IIS:SOURce:CLOCk :TRIGger:IIS:SOURce:CLOCk? Description Parameter Return Format Example Sets or queries the clock source of the I2S trigger. Name Type Range Default Discrete {D0|D1|D2|D3|D4|D5|D6|D7|D8|D9|D 10|D11|D12|D13|D14|D15|CHANnel1| CHANnel2|CHANnel3|CHANnel4} CHANnel1 The query returns D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, CHAN1, CHAN2, CHAN3, or CHAN4.
Chapter 2 Command System RIGOL :TRIGger:IIS:WHEN Syntax :TRIGger:IIS:WHEN :TRIGger:IIS:WHEN? Description Parameter Description Return Format Example Sets or queries the trigger condition of I2S trigger. Name Type Discrete Range {EQUal|NOTequal|LESSthan|GREaterthan| INRange|OUTRange} Default EQUal EQUal: triggers on when the channel's data value equals the set value. NOTequal: triggers on when the channel's data value does not equal the set value.
Chapter 2 Command System RIGOL :TRIGger:IIS:DATA Syntax :TRIGger:IIS:DATA :TRIGger:IIS:DATA? Description Parameter Sets or queries the data value of the I2S trigger. Name Description Return Format Example Type Integer Range 32 0 to 2 -1 Default 0 The settable range of is affected by the byte length. The maximum byte length can be set to 4, i.g. 32-bit binary data. Therefore, the range of is from 0 to 232 - 1. The query returns an integer ranging from 0 to 232 - 1.
Chapter 2 Command System RIGOL :TRIGger:LIN (Option) Command List: :TRIGger:LIN:SOURce :TRIGger:LIN:ID :TRIGger:LIN:BAUD :TRIGger:LIN:STANdard :TRIGger:LIN:SAMPlepoint :TRIGger:LIN:WHEN :TRIGger:LIN:LEVel :TRIGger:LIN:SOURce Syntax :TRIGger:LIN:SOURce :TRIGger:LIN:SOURce? Description Parameter Return Format Example Sets or queries the trigger source of LIN trigger.
Chapter 2 Command System RIGOL :TRIGger:LIN:BAUD Syntax :TRIGger:LIN:BAUD :TRIGger:LIN:BAUD? Description Sets or queries the baud rate of LIN trigger. The default unit is bps. Parameter Remarks Return Format Example Name Type Range Default Integer 1 kbps to 20 Mbps 9600 bps If the baud rate is set to a value with "M", then "A" should be added at the end of the value. For example, if you send 5 M, you need to send 5 MA.
Chapter 2 Command System RIGOL :TRIGger:LIN:WHEN Syntax :TRIGger:LIN:WHEN :TRIGger:LIN:WHEN? Description Parameter Description Return Format Example Sets or queries the trigger condition of LIN trigger. Name Type Range Default Discrete {SYNCbreak|ID|DATA|IDData|SLEep|WAKeup| ERRor} ID SYNCbreak: triggers on the last bit of the sync field. ID: triggers when the frames with the specified ID are found.
Chapter 2 Command System RIGOL :TRIGger:M1553 (Option) Command List: :TRIGger:M1553:SOURce :TRIGger:M1553:WHEN :TRIGger:M1553:POLarity :TRIGger:M1553:ALEVel :TRIGger:M1553:BLEVel :TRIGger:M1553:SOURce Syntax :TRIGger:M1553:SOURce :TRIGger:M1553:SOURce? Description Parameter Return Format Example Sets or queries the trigger source of M1553 trigger.
Chapter 2 Command System RIGOL :TRIGger:M1553:POLarity Syntax :TRIGger:M1553:POLarity :TRIGger:M1553:POLarity? Description Parameter Return Format Example Sets or queries the polarity of M1553 trigger. Name Type Range Default Discrete {POSitive|NEGative} POSitive The query returns POS or NEG. :TRIGger:M1553:POLarity POSitive /*Sets the polarity of M1553 trigger to POSitive.*/ :TRIGger:M1553:POLarity? /*The query returns POS.
Chapter 2 Command System RIGOL :WAVeform Commands The :WAVeform commands are used to read waveform data and relevant settings. The :WAVeform:MODE command is used to set the reading mode of waveform data. In different modes, the definitions for the parameters are different, as shown in Figure 2-1 and 2-2.
Chapter 2 Command System RIGOL Command List: :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:PREamble? :WAVeform:SOURce Syntax :WAVeform:SOURce :WAVeform:SOURce? Description Parameter Sets or queries the source channel of waveform data readi
Chapter 2 Command System RIGOL :WAVeform:MODE Syntax :WAVeform:MODE :WAVeform:MODE? Description Parameter Remarks Return Format Example Sets or queries the mode of the :WAVeform:DATA? command in reading data. Name Type Range Default Discrete {NORMal|MAXimum|RAW} NORMal NORMal: reads the waveform data currently displayed on the screen.
Chapter 2 Command System RIGOL :WAVeform:POINts Syntax :WAVeform:POINts :WAVeform:POINts? Description Sets or queries the number of the waveform points to be read. Parameter Remarks Return Format Name Type Range Default Integer Refer to Remarks —— The range of is related to the current reading mode of the waveform data.
Chapter 2 Command System RIGOL the command reads the memory waveform data, it returns the signal status of the channel group where the currently selected channel sources reside. 1 byte represents the status of one group of digital signals. When the waveform data in the internal memory are read in batches, the waveform data returned each time might be the data in one area of the internal memory. In "WORD" or "BYTE" return format, each returned data in blocks contain the TMC data block header.
Chapter 2 Command System RIGOL :WAVeform:YINCrement? Syntax :WAVeform:YINCrement? Description Queries the unit voltage of the current channel in the Y axis. Its unit is the same as that of the current amplitude. Remarks The returned value is related to the current data reading mode: In NORMal mode, YINCrement = VerticalScale/25. In RAW mode, YINCrement and VerticalScale of the memory waveforms are related to the currently selected VerticalScale.
Chapter 2 Command System RIGOL :WAVeform:STARt Syntax :WAVeform:STARt :WAVeform:STARt? Description Parameter Sets or queries the start position of waveform data reading.
Chapter 2 Command System RIGOL :WAVeform:PREamble? Syntax Description Return Format :WAVeform:PREamble? Queries all the waveform parameters. The query returns 10 waveform parameters, separated by commas. ,,,,,,,,, Wherein, : indicates 0 (BYTE), 1 (WORD), or 2 (ASC). : indicates 0 (NORMal), 1 (MAXimum), or 2 (RAW).
Chapter 3 Programming Examples RIGOL Chapter 3 Programming Examples This chapter illustrates how to control the MSO5000 series digital oscilloscope by programming in Excel, LabVIEW, Visual Basic, and Visual C++. These instances are programmed based on Virtual Instrument Software Architecture (VISA) library.
RIGOL Chapter 3 Programming Examples Programming Preparations Before programming, you need to prepare the following tasks: Install Ultra Sigma (PC) software. You can log in to the RIGOL official website (www.rigol.com) to download the software. Then install the software according to the installation wizard. After Ultra Sigma is installed successfully, NI-VISA library will be completely installed automatically. In this manual, the default installation path is C:\Program Files\IVI Foundation\VISA.
Chapter 3 Programming Examples RIGOL Excel Programming Example Program used in this instance: Microsoft Excel 2007 Function realized in this example: send the *IDN? command and read the instrument information. 1. Open a new Macro-enabled Excel file and name it "MSO5000_Demo_Excel.xlsm". 2. Run the MSO5000_Demo_Excel.xlsm file. Click FileOptions at the upper-left corner of the Excel file to open the interface as shown in the figure below.
RIGOL 4. Chapter 3 Programming Examples Click Tools(T) in the Microsoft Visual Basic menu bar and select References. In the displayed dialog box, select VISA Library, and click OK to refer to VISA Library. Remarks: If you cannot find VISA Library in the left section of the above dialog box, please follow the method below to find it. (1) Make sure that your PC has installed the NI-VISA library. (2) Click Browse... at the right section to search visa32.
Chapter 3 Programming Examples 5. RIGOL Click View Code under Developer menu to enter the interface of Microsoft Visual Basic. Add the following codes and save it. Note: If the Excel file created in Step 2 does not enable the Macros, a prompt message "The following features cannot be saved in macro-free workbooks" will be displayed. In this case, please save the file as a macro-enabled file type (filename with a suffix of ".xlsm").
RIGOL Chapter 3 Programming Examples The default name of the button is "Button1". Right-click the button and select Edit Text in the pop-up menu to change the button name to "*IDN?". 7. 3-6 Click the "*IDN?" button to send request and read data. The returned value is in CELLS(2,2) of SHEET1.
Chapter 3 Programming Examples RIGOL LabVIEW Programming Example Program used in this instance: LabVIEW2010 Function realized in this example: read the waveform data of CH1 on the screen. 1. Run LabVIEW, create a VI file and name it as MSO5000_Demo. 2. Add controls and create the front panel as shown in the figure below. 3. Open the Block Diagram interface. Click Instrument I/O VISA. Add the following functions: VISA Open, VISA Read, VISA Write, and VISA Close. 4.
RIGOL Chapter 3 Programming Examples 5. 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. 6. Add string constant in the write buffer areas of the VISA Write function and input the following instructions in the figure below.
Chapter 3 Programming Examples RIGOL Used to obtain the TMC header"#N". After obtaining the number of bytes that the TMC header occupies, ignore the data header to obtain the waveform data strings. Used to obtain the waveform data length bytes. Used to delete the terminator at the end of the waveform data. Used to transfer waveform data strings to the byte group. 8. The complete program block diagram is as shown in the figure below. 9.
RIGOL 3-10 Chapter 3 Programming Examples MSO5000 Programming Guide
Chapter 3 Programming Examples RIGOL Visual Basic Programming Example Program used in this example: Visual Basic 6.0 Function realized in this example: control the on/off state of any channel. Enter the Visual Basic 6.0 programming environment, and perform the following procedures. 1. Build a standard application program project (Standard EXE), and name it "Demo". 2. Click Project Add Module to open the Add Module dialog box. In the dialog box, click the Existing tab to search for the visa32.
RIGOL Chapter 3 Programming Examples Dim defrm As Long Dim vi As Long Dim strRes As String * 200 Dim list As Long Dim nmatches As Long Dim matches As String * 200 ' Reserve the obtained device number Dim s32Disp As Integer ' Obtain the usb resource of visa Call viOpenDefaultRM(defrm) Call viFindRsrc(defrm, "USB?*", list, nmatches, matches) ' Turn on the instrument Call viOpen(defrm, matches, 0, 0, vi) ' Send a command to query the status of CH1 Call viVPrintf(vi, ":CHAN1:DISP?" + Chr$(10), 0) ' Obtain the
Chapter 3 Programming Examples RIGOL Visual C++ Programming Example Program used in this example: Visual C++6.0 Function realized in this example: search for the instrument address, connect to the instrument, send and read commands. Enter the Visual C++6.0 programming environment, and perform the following procedures. 1. Create a MFC project based on a dialog box. 2. Click Project Settings to open the Project Setting dialog box.
RIGOL 4. Chapter 3 Programming Examples Click Tools Options to open the Options dialog box. Then, click the Directories tab. Select Include files from the drop-down list under Show directories for. Double click the empty space under Directories to enter the specified path of Include files: C:\Program Files\IVI Foundation\VISA\WinNT\include. Click OK to close the dialog box. Select Library files from the drop-down list under Show directories for.
Chapter 3 Programming Examples 7. Add the variables m_combox and m_receive to the Combo Box and Edit Box controls respectively. 8. Add codes. Double-click Send and Read to enter the programming environment. Declare the #include
RIGOL Chapter 3 Programming Examples viOpenDefaultRM (&defaultRM); //Acquire the USB resource of VISA viFindRsrc(defaultRM, "USB?*", &list,&nmatches, matches); viOpen (defaultRM,matches,VI_NULL,VI_NULL,&vi); //Send the command received m_combox.GetLBText(m_combox.