UNI-T MSO/UPO2000 Series Programming Manual
UNI-T MSO/UPO2000 Series Programming Manual

UNI-T MSO/UPO2000 Series Programming Manual

Digital phosphor oscilloscope

Advertisement

Quick Links

Programming Manual
MSO/UPO2000 Series Digital Phosphor Oscilloscope

Advertisement

Table of Contents
loading

Summary of Contents for UNI-T MSO/UPO2000 Series

  • Page 1 Programming Manual MSO/UPO2000 Series Digital Phosphor Oscilloscope...
  • Page 2: Product Certification

     Information provided in this manual is subject to change without prior notice.  UNI-T shall not be liable for any errors that may be contained in this manual. For any incidental or consequential damages, arising out of the use or the information and deductive functions provided in this manual.
  • Page 3: Instruction Format

    Programming Manual MSO/UPO2000 Series The physical hardware communications link is not defined by SCPI. While it was originally created for the IEEE-488.1 (GPIB) bus, SCPI can also be used with RS-232, RS-422, Ethernet, USB, VXIbus, HiSLIP, etc. SCPI commands are ASCII textual strings, which are send to the instrument over the physical layer (e.g., IEEE-488.1).
  • Page 4 Programming Manual MSO/UPO2000 Series  Boolean Parameter value can set “ON” (1) or “OFF” (0) Such as SYSTem:LOCK {{1 | ON} | {0 | OFF}}  Integer Parameter can take any valid integer value unless there have some other descriptions.
  • Page 5: Ieee488.2 Common Command

    For querying manufacture name, model, product serial number and software version. Return format:  Manufacture name, model, product serial number, software version separated by dot mark. For example:  UNI-T Technologies, MSO2000CS, MSO1000, 00.00.01 *RST Command format:  *RST Functional description:...
  • Page 6 Programming Manual MSO/UPO2000 Series :RUN Command format:  :RUN Functional description:  This command is used to start the sampling operating of the oscilloscope, if it need to stop, executing: STOP command. :STOP Command format:  :STOP Functional description: ...
  • Page 7 Programming Manual MSO/UPO2000 Series Query returns the last error message, Query returns error message in the format of “<Message number>, <Message content>. <Message number> is an integer; <Message content> is an ASCII character string with double quotation marks. Such as-113,"Undefined header; command cannot be found".
  • Page 8 Programming Manual MSO/UPO2000 Series :SYSTem:CAL Command format:  :SYSTem: Functional description:  This command is used to set the self-calibration of the system, it cannot be normal communicated during self-calibration. :SYSTem:CLEAr Command format:  CLEAr :SYSTem: Functional description:  Empty all the saved waveforms and data settings.
  • Page 9 Programming Manual MSO/UPO2000 Series Return format:  Query returns { 10 Hz | 100 Hz | 1 kHz | 10 kHz }. For example:  :SYSTem:SQUare:SELect 10 Hz Select 10 Hz square wave output. :SYSTem:SQUare:SELect? Query returns 10 Hz. :SYSTem:OUTPut:SELect Command format:...
  • Page 10 Programming Manual MSO/UPO2000 Series :SYSTem:VERSion? Command format:  :SYSTem:VERSion? Return format:  Query returns version information, which are 128 bytes character string. HW is hardware version number, SW is software version number, PD is created date, ICV is protocol version number.
  • Page 11 Programming Manual MSO/UPO2000 Series :SYSTem:COMMunicate:LAN:IPADdress Command format:  :SYSTem:COMMunicate:LAN:IPADdress <ip> :SYSTem:COMMunicate:LAN:IPADdress? Functional description:  This command is used to set IP address. <ip> is belong to the parameter of ASCII character string, the format is xxx.xxx.xxx.xxx. Return format:  Query returns IP address.
  • Page 12 Programming Manual MSO/UPO2000 Series channel is automatically set based on the current status. Return format:  Query {AUTO|KEEP}. For example:  SYSTem:AUTO:CHANnel KEEP The channel keeps the automatic setting of the current status. SYSTem:AUTO:CHANnel Query returns KEEP. :SYSTem:AUTO:ACQuire Command format:...
  • Page 13 Programming Manual MSO/UPO2000 Series This command is used to set whether the channel for input signal (Active channel) keeps the current status when inautomatic setting. AUTO represents that the active channel is automatically set by the preset parameter; KEEP represents by the the active channel is automatically set based on the current status.
  • Page 14 Programming Manual MSO/UPO2000 Series :CHANnel<n>:BWLimit Command format:  :CHANnel<n>:BWLimit {{1|ON}|{0|OFF}} :CHANnel<n>:BWLimit? Functional description:  This command is used to set the bandwidth limit to ON or OFF. ON: turn on bandwidth limit to 20 MHz, to reduce display noise. OFF: turn off bandwidth limit to achieve full babdwidth display.
  • Page 15 Programming Manual MSO/UPO2000 Series :CHAN1:DISP? Query returns 1, it represents the channel 1 is turned on. :CHANnel<n>:INVert Command format:  :CHANnel<n>:INVert { {1|ON} | {0|OFF} } :CHANnel<n>:INVert? Functional description:  This command is used to turn on/off the waveform phase reverse.
  • Page 16 Programming Manual MSO/UPO2000 Series Query returns the setting value of offset in scientific notation. Unit is related to :CHANnel<n>:UNITs. For example:  :CHAN1:OFFS 20V Set the vertical displacement of channel 1 to 20 V. :CHAN1:OFFS? Query returns 2.000e001. :CHANnel<n>:SCALe Command format:...
  • Page 17 Programming Manual MSO/UPO2000 Series <n>: {1|2|3|4}, it represents {CH1|CH2| CH3|CH4} separately. Return format:  Query returns 1 or 0, it represents ON or OFF. For example:  :CHAN1:VERN ON Turn on fine tuning of channel 1. :CHAN1:VERN? Query returns 1.
  • Page 18 Programming Manual MSO/UPO2000 Series :TIMebase:OFFSet? Functional description:  This command is used to adjust the offset of MAIN (main timebase), which is displacement of the waveform position from the center of the screen. Return format:  Query returns <offset> value in scientific notation, unit is s.
  • Page 19 Programming Manual MSO/UPO2000 Series This command is used to set timebase scale of WINDow(<Zoomed> timebase), which is s/div. Return format:  Query returns < scale> value in scientific notation, unit is s/div. For example:  :TIM:WIND:SCAL 2 Set the offset of WINDow to 2 s/div.
  • Page 20: Function Command

    Programming Manual MSO/UPO2000 Series :TIMebase:SPLit:SCReen CHANnel1 The waveform of channel 1 displays independently. :TIMebase:SPLit:SCReen? Query returns CHANnel1. FUNCtion Command This command is used to display the operation result of the waveform of CH1, CH2, CH3, and CH4. The operation is add, subtract, multiply, divide and FFT. Set filter to use the expression to operating.
  • Page 21 Programming Manual MSO/UPO2000 Series FFT are not suitable. <value> represents CHANnel<n>. <n> take value from 1/2/3/4{CH1/ CH2/ CH3/ CH4}. Return format:  Query returns CHANnel1, CHANnel2, CHANnel3 or CHANnel4. For example:  :FUNCtion:SOUR1 CHAN1 Set channel 1 as the first source.
  • Page 22 Programming Manual MSO/UPO2000 Series This command is used to select the segment of FFT waterfall curve, which can select the range to 1~200. Return format:  Query returns which frame segment is currently selected. For example:  FUNCtion:FFT SLICe : WATerfall : Set FFT waterfall curve to select 100 frame segment.
  • Page 23 Programming Manual MSO/UPO2000 Series :FUNCtion:FFT:FREQuency:STARt Command format:  :FUNCtion:FFT:FREQuency :STARt <freq> FUNCtion:FFT:FREQuency :STARt? Functional description:  This command is used to set the start frequency of FFT. Return format:  Query returns the start frequency of FFT, unit is Hz.
  • Page 24 Programming Manual MSO/UPO2000 Series Return format:  Query returns the frequency bandwidth of FFT, unit is Hz. For example:  :FUNCtion:FFT:FREQuency : the frequency bandwidth of FFT to 1 kHz. :FUNC:FFT:FREQ: Query returns 1.000e003. FUNCtion:FFT:DETEction:REALTime Command format:  :FUNCtion:FFT:DETEction:REALTime {OFF|PPEAK|NPEAK| AVERage| SAMPle} FUNCtion:FFT:DETEction:REALTime ? Functional description:...
  • Page 25 Programming Manual MSO/UPO2000 Series :FUNCtion:FFT: :AVERage:COUNt DETEction Command format:  :AVERage:COUNt :FUNCtion:FFT:DETEction <value> :COUNt FUNCtion:FFT:DETEction:AVERage Functional description:  This command is used to set the average number of times of average spectrum. The range is 2^n, n take value from 1~10.
  • Page 26 Programming Manual MSO/UPO2000 Series AVERage:Take the average value within the range of each sampling point; SAMPle:Take the value of first point within the range of each sampling point. Return format:  Query returns the detection mode of the minimum hold spectrum.
  • Page 27 Programming Manual MSO/UPO2000 Series MAXHold:Mark the maximum hold spectrum. MINHold:Mark the minimum hold spectrum. Return format:  Query returns the currently selected mark source For example:  :FUNCtion:FFT:MARK:SOURce AVERage Set mark source of the spectrum marker to average spectrum. :FUNCtion:FFT:MARK:SOURce? Query returns AVERage.
  • Page 28 Programming Manual MSO/UPO2000 Series For example:  :FUNCtion:FFT:MARK:DATA? Query returns: #9000000089FFT, ID,Freq,Amp, 1,1.000E+003,7.800E-001, 2,2.000E+003,7.900E-001, 3,3.000E+003,7.700E-001, 4,4.000E+003,7.300E-001, 5,5.000E+003,7.400E-001, FFT represents FFT mode, the event table data in CSV format followed behind. The specified format of the event table data is automatically adapted by different devices. The data are separated by commas and will automatically line wrap according to the decoding list.
  • Page 29 Programming Manual MSO/UPO2000 Series :FUNCtion:FILTer:TYPE {LP|HP|BP|BS} :FUNCtion:FILTer:TYPE? Functional description:  This command is used to set the filter type. LP, HP, BP, BS respectively represents low-pass filter, high- pass filter, band-pass filter and band-limit filter separately. Return format:  Query returns LP, HP, BP, BS.
  • Page 30 Programming Manual MSO/UPO2000 Series :FUNCtion:EXPRession Command format:  :FUNCtion:EXPRession <expression> Functional description:  Use free combination expression to peform mathematical calculation. Expression format refer to Advance option in MATH menu of the oscilloscope, <expression> is belong to ASCII character string parameter.
  • Page 31 Programming Manual MSO/UPO2000 Series Functional description:  This command is used to select measuring source. <source> is CHANnel<n>, n take value from 1, 2, 3, 4. Return format:  Query returns {CHANnel1 | CHANnel2 | CHANnel3 | CHANnel4 | MATH} For example:...
  • Page 32 Programming Manual MSO/UPO2000 Series This command is used to measure time delay of <source1> and <source2> with respect to rising edge. <source> take value from CHANnel1, CHANnel2, CHANnel3 or CHANnel4. Return format:  Query returns -1.000e-004, unit is s. For example:...
  • Page 33 Programming Manual MSO/UPO2000 Series :MEASure:VMAX? Command format:  :MEASure:VMAX? [<source>] Functional description:  This command is used to measure the maximum value of the specified channel waveform. <source> take value from CHANnel1, CHANnel2, CHANnel3 or CHANnel4. Omitting represents the current channel.
  • Page 34 Programming Manual MSO/UPO2000 Series value from CHANnel1, CHANnel2, CHANnel3 or CHANnel4. Omitting represents the current channel. Return format:  Query returns -3.120e000, unit is V. :MEASure:VMIDdle? Command format:  :MEASure:VMIDdle? [<source>] Functional description:  This command is used to measure the middle value of the specified channel waveform. <source> take value from CHANnel1, CHANnel2, CHANnel3 or CHANnel4.
  • Page 35 Programming Manual MSO/UPO2000 Series <source> is the specified channel and take value from CHANnel1, CHANnel2, CHANnel3 or CHANnel4. If there is no assigned <source>, then the current channel as the default. Return format:  Query returns 1.230e000, unit is V.
  • Page 36 Programming Manual MSO/UPO2000 Series Query returns 2.000e003, unit is Hz. :MEASure:RISetime? Command format:  :MEASure:RISetime? [<source>] Functional description:  This command is used to measure rising time of the specified channel waveform. <source> take value from CHANnel1, CHANnel2, CHANnel3 or CHANnel4. Omitting represents the current channel.
  • Page 37 Programming Manual MSO/UPO2000 Series Functional description:  This command is used to measure negative pulse width of the specified channel waveform. <source> take value from CHANnel1, CHANnel2, CHANnel3 or CHANnel4. Omitting represents the current channel. Return format:  Query returns 5.000e-003, unit is s.
  • Page 38 Programming Manual MSO/UPO2000 Series :MEASure:FFF? Command format:  :MEASure:FFF? <source1>, <source2> Functional description:  This command is used to measure the time between <source1> and the first falling edge of <source2>. <source> take value from CHANnel1, CHANnel2, CHANnel3 or CHANnel4.
  • Page 39: Trigger Command

    Programming Manual MSO/UPO2000 Series edge of <source2>. <source> take value from CHANnel1, CHANnel2, CHANnel3 or CHANnel4. Return format:  Query returns 5.000e-003, unit is s. TRIGger Command This command is used to control trigger sweep mode and trigger specification. Trigger determines when the oscilloscope to start sampling data and display waveform.
  • Page 40 Programming Manual MSO/UPO2000 Series :TRIGger:SWEep {AUTO|NORMal|SINGle} :TRIGger:SWEep? Functional description:  This command is used to select trigger sweep mode. AUTO: In no trigger condition, the internal will generate a trigger signal to force trigger. NORMal: It will be generated only when the trigger condition is met.
  • Page 41 Programming Manual MSO/UPO2000 Series For example:  :TRIG:LEV 2 Set trigger level of the trigger to 2 V. :TRIG:LEV? Query returns 2.000e000. :TRIGger:LEVel:LOW Command format:  :TRIGger:LEVel:LOW <level> :TRIGger:LEVel:LOW? Functional description:  This command is used to set low level value of slop trigger. Nuerical value of <level> must be set after the conversion according to the amplitude volts/div scale and screen information.
  • Page 42: Edge Trigger

    Programming Manual MSO/UPO2000 Series Return format:  Query returns trigger source { CHANnel1| CHANnel2| CHANnel3| CHANnel4|EXT|EXT5|ACLINE}. For example:  :TRIGger:SOUR CHAN1 Set channel 1 as edge trigger. :TRIGger:SOUR? Query returns CHANnel1. :TRIGger:COUPling Command format:  :TRIGger:COUPling {DC|AC|LF|HF|NOISE} :TRIGger:COUPling? Functional description:...
  • Page 43 Programming Manual MSO/UPO2000 Series :TRIGger:PULSe:QUALifier {GREaterthan | LESSthan | INRange} :TRIGger:PULSe:QUALifier? Functional description:  This command is used to set the setting condition of pulse time, which is GREaterthan (greater than), LESSthan (less than) and INRange (between). Return format: ...
  • Page 44: Video Trigger

    Programming Manual MSO/UPO2000 Series This command is used to set the upper time limit of pulse trigger. Return format:  Query returns the current upper time limit, unit is s. For example:  :UPPer :TRIGger:PULSe:TIME Set the upper time limit of pulse trigger to 1s.
  • Page 45: Slope Trigger

    Programming Manual MSO/UPO2000 Series This command is used to set video standard. Return format:  Query returns { NTSC | PAL | SECAM }. For example:  :TRIGger:VIDeo:STANdard NTSC Set video standard to NTSC. :TRIGger:VIDeo:STANdard? Query returns NTSC. :TRIGger:VIDEO:LINE Command format:...
  • Page 46 Programming Manual MSO/UPO2000 Series This command is used to set slop trigger type, which includes POSitive (rising) and NEGative (falling). Return format:  Query returns {POSitive|NEGative}. For example:  :TRIGger:SLOPe:SLOPe POS Set slop trigger as POSitive. :TRIGger:SLOPe:SLOPe? Query returns POSitive.
  • Page 47 Programming Manual MSO/UPO2000 Series :SLOPe :LOWer :TRIGger :TIME Set the low time limit of slope trigger to 1s. :SLOPe :LOWer :TRIGger :TIME Query returns 1.000e000. :TRIGger:SLOPe:THReshold Command format:  :TRIGger:SLOPe:THReshold {LOW|HIGH|LH} :TRIGger:SLOPe:THReshold? Functional description:  This command is used to set threshold mode of slop trigger.
  • Page 48: Runt Trigger

    Programming Manual MSO/UPO2000 Series Runt Trigger :TRIGger:RUNT:QUALifier Command format:  :TRIGger:RUNT:QUALifier {GREaterthan | LESSthan | INRange | NONE} :TRIGger:RUNT:QUALifier? Functional description:  This command is used to set the setting condition of runt level time, which includes GREaterthan (greater than), LESSthan (less than), INRange (within the range) and NONE (random).
  • Page 49 Programming Manual MSO/UPO2000 Series :TRIGger:RUNT:TIME Command format:  :TRIGger:RUNT:TIME <time> :TRIGger:RUNT:TIME? Functional description:  This command is used to set time interval of runt level trigger. Return format:  Query returns the current time interval, unit is s. For example:...
  • Page 50: Over-Amplitude Trigger

    Programming Manual MSO/UPO2000 Series Over-amplitude Trigger :TRIGger:WINDow:SLOPe Command format:  :TRIGger:WINDow:SLOPe {POSitive|NEGative|ALTernation} :TRIGger:WINDow:SLOPe? Functional description:  This command is used to set edge type of trigger source, which is POSitive (rising edge), NEGative (falling edge) and ALTernation (rising/falling edge). Return format:...
  • Page 51: Delay Trigger

    Programming Manual MSO/UPO2000 Series :TRIGger:WINDow:POSition Command format:  :TRIGger:WINDow:POSition {ENTER|EXIT|TIME} :TRIGger:WINDow:POSition? Functional description:  This command is used to set window trigger position. Return format:  Query returns {ENTER|EXIT|TIME}. For example:  :TRIGger:WINDow:POS TIME Set window trigger position to TIME.
  • Page 52 Programming Manual MSO/UPO2000 Series :TRIGger:DELay:TRIGger:SOURce Command format:  TRIGger :TRIGger:DELay: :SOURce {CHANnel1 | CHANnel2| CHANnel3| CHANnel4} TRIGger :TRIGger:DELay: :SOURce? Functional description:  This command is used to set trigger source of delay trigger. Return format:  Query returns {CHANnel1 | CHANnel2| CHANnel3| CHANnel4}.
  • Page 53 Programming Manual MSO/UPO2000 Series :TRIGger:DELay:TIME Command format:  DELay :TRIGger: :TIME <time> DELay :TRIGger: :TIME? Functional description:  This command is used to set the time interval of delay trigger. Return format:  Query returns the current time interval, unit is s.
  • Page 54: Timeout Trigger

    Programming Manual MSO/UPO2000 Series :TRIGger:DELay:SELect Functional description:  This command is used to switch the selected source. SOURce<n> represents source, n take value from 1, SOURce1 represents focus source; SOURce2 represents trigger source. Return format:  Query returns { SOURce1 | SOURce2 }.
  • Page 55: Duration Trigger

    Programming Manual MSO/UPO2000 Series Duration Trigger :TRIGger:DURation:PATTern Command format:  :TRIGger:DURation:PATTern { HIGH | LOW | X } :TRIGger:DURation:PATTern? Functional description:  This command is used to set pattern of duration trigger, which is HIGH (pattern value is 1), LOW (pattern value is 0) and X (channel is invalid).
  • Page 56: Setup Hold Trigger

    Programming Manual MSO/UPO2000 Series :TRIGger:DURation:TIME:LOWer? Query returns 1.000e000. :TRIGger:DURation:TIME:UPPer Command format:  :TRIGger:DURation:TIME:UPPer <time> :TRIGger:DURation:TIME:UPPer? Functional description:  This command is used to set the upper time limit of duration trigger. It can be set when time interval condition is LESSthan (less than).
  • Page 57 Programming Manual MSO/UPO2000 Series :TRIGger:SHOLd:CLOCK:SOUR CHAN1 Set channel 1 as clock source. :TRIGger:SHOLd:CLOCK:SOUR? Query returns CHANnel1. :TRIGger:SHOLd:SLOPe Command format:  :TRIGger:SHOLd:SLOPe {POSitive|NEGative} :TRIGger:SHOLd:SLOPe? Functional description:  This command is used to set edge type of setup hold trigger, which includes POSitive (rising edge) and NEGative (falling edge).
  • Page 58: Nth Edge Trigger

    Programming Manual MSO/UPO2000 Series :TRIGger:SHOLd:MODE? Query returns HOLD. :TRIGger:SHOLd:TIME Command format:  :TRIGger:SHOLd:TIME <time> :TRIGger:SHOLd:TIME? Functional description:  This command is used to set time interval of setup hold trigger. Return format:  Query returns the current time interval, unit is s.
  • Page 59: Pattern Trigger

    Programming Manual MSO/UPO2000 Series Query returns edge type of the trigger {POSitive|NEGative }. For example:  :TRIGger:NEDGE:SLOP POS Set edge trigger to POSitive. :TRIGger:NEDGE:SLOP? Query returns POSitive. :TRIGger:NEDGE:TIME Command format:  NEDGE :TRIGger: :TIME <time> NEDGE :TRIGger: :TIME? Functional description:...
  • Page 60 Programming Manual MSO/UPO2000 Series Query returns { HIGH | LOW | X | POSitive | NEGative }. For example:  :TRIGger:PATTern:PATTern HIGH Set patter trigger to 1. :TRIGger:PATTern:PATTern? Query returns HIGH. CURSor Command This command is uset to set cursor parameter to measure the waveform data on the screen.
  • Page 61 Programming Manual MSO/UPO2000 Series Return format:  Query returns { CHANnel1 | CHANnel2 | CHANnel3 | CHANnel4| MATH }. For example:  :CURSor:SOURce CHAN1 Set channel 1 as cursor source. :CURSor:SOURce? Query returns CHANnel1. :CURSor:CURA Command format:  :CURSor:CURA <value>...
  • Page 62 Programming Manual MSO/UPO2000 Series For example:  :CURSor:AXV? Query returns 2.000000E+02. :CURSor:AYValue? Command format:  :CURSor:AYValue? Functional description:  Query Y value at cursor A, unit is determined by the amplitude unit of the currently selected channel. Return format: ...
  • Page 63 Programming Manual MSO/UPO2000 Series :FILE:LOAD <filename>, [<source>], [<disk>] Functional description:  This command is used to load waveform to the reference channel or set the data. <filename> represents the filename and it must be character string data with double quotation mark, for example “test.bsv”.
  • Page 64: Record Command

    Programming Manual MSO/UPO2000 Series oscilloscope’s suffix name. The file name of *.bode.csv represents load the bode diagram data of a file into the oscilloscope, it  matched with the oscilloscope’s suffix name. And it’s only effect to U flash disk.
  • Page 65 Programming Manual MSO/UPO2000 Series Query returns 1 or 0, it respectively represents ON or OFF. For example:  :RECord:ENABle ON Turn on recording waveform function. :RECord:ENABle? Query returns 1, it represents recording waveform function is turned on. :RECord:STARt Command format:...
  • Page 66 Programming Manual MSO/UPO2000 Series :RECord:PLAY Command format:  :PLAY :RECord { {1|ON} | {0|OFF} } :PLAY :RECord Functional description:  This command is used to start or stop play recording waveform. Return format:  Query returns 1 or 0, it respectively represents ON or OFF.
  • Page 67 Programming Manual MSO/UPO2000 Series This command is used to set or query the frame number of recording waveform. Return format:  Query returns the frame of recording waveform, it is integer data. For example:  :FRAMes :RECord Set the frame number of recording waveform to 400.
  • Page 68 Programming Manual MSO/UPO2000 Series Query returns {RUN|STOP}. For example:  :PF:OPERate Run Pass/Fail test. :PF:OPERate Query returns RUN. :PF:OUTPut Command format:  :PF:OUTPut {PASS|FAILED} :PF:OUTPut? Functional description:  This command is used to set or query the output of Pass/Fail test.
  • Page 69 Programming Manual MSO/UPO2000 Series :PF:STOP THReshold Command format:  :PF:STOP THReshold <value> :PF:STOP THReshold? Functional description:  This command is used to set or query the stop threshold of Pass/fail test. <value>: stop threshold, range is 1~30000, the specified range will self-adapting according to the oscilloscope.
  • Page 70 Programming Manual MSO/UPO2000 Series :PF:TEMPlate :X <value> :PF:TEMPlate Functional description:  This command is used to set or query the horizontal tolerance of template setting of Pass/fail test. <value>: horizontal tolerance, range is 1~100, the specified range will self-adapting according to the oscilloscope.
  • Page 71 Programming Manual MSO/UPO2000 Series :ACQuire:TYPE Command format:  :ACQuire:TYPE {NORMal | AVERage | PEAKdetect | ENVelope | HRESolution } :ACQuire:TYPE? Functional description:  This command is used to set sampling mode of the oscilloscope, which is NORMal, AVERage, PEAKdetect, ENVelope and HRESolution.
  • Page 72 Programming Manual MSO/UPO2000 Series :DISPlay:DATA? Command format:  :DISPlay:DATA? Functional description:  This command is used to query the current image data of the oscilloscope. Return format:  Query returns BMP format image data, returned data is conform with Appendix 2:IEEE 488.2 binary data format.
  • Page 73 Programming Manual MSO/UPO2000 Series This command is used to set the gridding brightness, <count> take value from 1~100, the larger the number, the brighter the grid. Return format:  Query returns the current gridding brightness. For example:  :DISPlay:GRID:BRIGhtness 50 Set the gridding brightness to 50.
  • Page 74 Programming Manual MSO/UPO2000 Series Query returns 1, it represents inverse color display is turned on. :DISPlay:WAVE:BRIGhtness Command format:  :DISPlay:WAVE:BRIGhtness <count> :DISPlay:WAVE:BRIGhtness? Functional description:  This command is used to set waveform brightness, <count> take value from 1~100, larger the number, the brighter the waveform.
  • Page 75 Programming Manual MSO/UPO2000 Series :WAVeform:MODE {NORMal | RAW} :WAVeform:MODE? Functional description:  NORMal: Read the current waveform data, the count of waveform data is fixed count. RAW: Read the waveform data from internal storage, the count of waveform data is related to storage depth.
  • Page 76 Programming Manual MSO/UPO2000 Series :WAVeform:STARt 200 Set the start position of waveform data reading to 200. :WAVeform:STARt? Query returns 200. :WAVeform:STOP Command format:  :WAVeform:STOP <stop> :WAVeform:STOP? Functional description:  This command is used to set or query the cut-off position of waveform data reading, < stop> is integer data type.
  • Page 77 Programming Manual MSO/UPO2000 Series :WAVeform:DATA? Command format:  :WAVeform:DATA? Functional description:  This command is used to read the waveform data from the specified data source. Return format:  WAVeform:POINts the specified quantity of waveform data. Waveform data source is related to: WAVeform:SOURce.
  • Page 78 Programming Manual MSO/UPO2000 Series :WAVeform:PREamble? Command format:  :WAVeform:PREamble? Functional description:  Query returns the waveform configuration parameter of the current system. Return format:  Query returns sparated by comma“,”. Return data format: Format, Type, Points, Count, Xinc, Xor, Xref, Yinc, Yor, Yref.
  • Page 79 Programming Manual MSO/UPO2000 Series Returned value is related to the current data reading mode, time of trigger point is zero, before the trigger point is negative. In NORMal mode, return start time of waveform data displayed on the screen: XORigin = -1*TimeScale*7...
  • Page 80 Programming Manual MSO/UPO2000 Series Return format:  Query returns the vertical displacement, it is integer type. For example:  :WAV:YOR? Query returns 0. :WAVeform:YREFerence? Command format:  :WAVeform:YREFerence? Functional description:  This command is used to query the vertical reference position of the current selected channel source in Y direction, and ADC value of channel zero level.
  • Page 81 Programming Manual MSO/UPO2000 Series This command is used to select bus decoding and trigger mode. FR representes FlexRay bus. Return format:  Query returns { RS232 | I2C | SPI | CAN | CANFD | LIN | FR }. For example:...
  • Page 82 Programming Manual MSO/UPO2000 Series :SBUS:DATA? Query returns: #9000000089RS232, TIME,DATA,CHECK, -1us,0,0, -890.5ns,1,0, -403.4ns,0,0, 9.8ns,1,0, 531.7ns,0,0, RS232 represents decoding type (it may be I2C, SPI or CAN), the event table data in CSV format followed behind. The specified format of the event table data is automatically adapted by different devices. The data are separated by commas and will automatically line wrap according to the decoding list, the data value is related to the setting system display.
  • Page 83 Programming Manual MSO/UPO2000 Series RS232 :SBUS:RS232:BAUDrate Command format:  :SBUS:RS232:BAUDrate <baudrate> :SBUS:RS232:BAUDrate? Functional description:  This command is used to set RS232 decoding baud rate of the oscilloscope. Parameter is integer, range is 120~5000000. Return format:  Query returns baud rate.
  • Page 84 Programming Manual MSO/UPO2000 Series :SBUS:RS232:SOURce? Query returns CHANnel1. :SBUS:RS232:POLarity Command format:  :SBUS:RS232:POLarity { POSitive | NEGative } :SBUS:RS232:POLarity? Functional description:  This command is used to set RS232 bus decoding polarity of the oscilloscope, which includes POSitive and NEGative.
  • Page 85 Programming Manual MSO/UPO2000 Series :SBUS:RS232:STOP:BIT Command format:  :SBUS:RS232:STOP:BIT {1 | 2 } :SBUS:RS232:STOP:BIT? Functional description:  This command is used to set RS232 bus stop bit of the oscilloscope. Return format:  Query returns {1 | 2 }. For example:...
  • Page 86 Programming Manual MSO/UPO2000 Series :SBUS:I2C:CLOCk:SOURce Command format:  :SBUS:I2C:CLOCk:SOURce {CHANnel1|CHANnel2|CHANnel3|CHANnel4|<Dx>} :SBUS:I2C:CLOCk:SOURce? Functional description:  This command is used to set I2C bus clock source of the oscilloscope. <Dx>: It presents the oscilloscope has LA function and it can set D0-D15 channel as the bus decoding source.
  • Page 87 Programming Manual MSO/UPO2000 Series :SBUS:I2C:ADIRection Command format:  :SBUS:I2C:ADIRection { READ | WRITE } :SBUS:I2C:ADIRection? Functional description:  This command is used to set I2C bus address direction of the oscilloscope. Return format:  Query returns { READ | WRITE }.
  • Page 88 Programming Manual MSO/UPO2000 Series :SBUS:I2C:DATA Command format:  :SBUS:I2C:DATA <value> :SBUS:I2C:DATA? Functional description:  This command is used to set I2C bus data. Binary character string data presented by parameter is 0 , 1 or X. X represents it is unsure. And its rang is related to the value set by instruction setting value *8bits :SBUS:I2C:DATA:LEN , the rang is 0x0~0xFFFFFFFFFFFFFFFF.
  • Page 89 Programming Manual MSO/UPO2000 Series :SBUS:SPI:CS:SOURce? Query returns CHANnel1. :SBUS:SPI:CLOCk:SOURce Command format:  :SBUS:SPI:CLOCk:SOURce {CHANnel1|CHANnel2|CHANnel3|CHANnel4|<Dx>} :SBUS:SPI:CLOCk:SOURce? Functional description:  This command is used to set SPI bus clock source of the oscilloscope. <Dx>: It presents the oscilloscope has LA function and it can set D0-D15 channel as the bus decoding source.
  • Page 90 Programming Manual MSO/UPO2000 Series :SBUS:SPI:BITorder? Query returns LSBFirst. :SBUS:SPI:CS:POLarity Command format:  :SBUS:SPI:CS:POLarity {NEGative | POSitive} :SBUS:SPI:CS:POLarity? Functional description:  This command is used to set SPI bus chip selection polarity of the oscilloscope, which includes POSitive and NEGative. Return format:...
  • Page 91 Programming Manual MSO/UPO2000 Series :SBUS:SPI:MOSI:POLarity? Query returns POSitive. :SBUS:SPI:WIDTh Command format:  :SBUS:SPI:WIDTh <width> :SBUS:SPI:WIDTh? Functional description:  This command is used to set SPI bus data bit width of the osciolloscope. <width> is integer data and the range is 4~32.
  • Page 92 Programming Manual MSO/UPO2000 Series :SBUS:SPI:DATA "X00X00X1" Set SPI bus data to X00X00X1. :SBUS:SPI:DATA? Query returns X00X00X1. :SBUS:SPI:QUALifier Command format:  :SBUS:SPI:QUALifier {CS|CSDATA|IDLE|IDLEDATA} :SBUS:SPI:QUALifier? Functional description:  This command is used to set SPI bus condition of the oscilloscope. Return format:...
  • Page 93 Programming Manual MSO/UPO2000 Series Return format:  Query returns {CHANnel1|CHANnel2|CHANnel3|CHANnel4|<Dx>}. For example:  :SBUS:CAN:SOURce CHANnel1 Set channel 1 as CAN bus input source. :SBUS:CAN:SOURce? Query returns CHANnel1. :SBUS:CAN:SIGNal:DEFinition Command format:  :SBUS:CAN:SIGNal:DEFinition { CANH | CANL} :SBUS:CAN:SIGNal:DEFinition? Functional description: ...
  • Page 94 Programming Manual MSO/UPO2000 Series Return format:  Query returns {START | ID | DATA | ACKerror | BITFILL | IDDATA | END}. For example:  :SBUS:CAN:QUALifier ACK Set CAN bus trigger condition to ACKerror. :SBUS:CAN:QUALifier? Query returns ACKerror. :SBUS:CAN:FRAMe:TYPE Command format:...
  • Page 95 Programming Manual MSO/UPO2000 Series bit occupies 29bits. Return format:  Query returns binary character data. For example:  :SBUS:CAN:ID "X00X00X1" Set ID identifier frame data of CAN bus to X00X00X1. :SBUS:CAN:ID? Query returns X00X00X1. :SBUS:CAN:ID: DIRection Command format:  :SBUS:CAN:ID:DIRection { READ | WRITE | ANY} :SBUS:CAN:ID:DIRection? Functional description:...
  • Page 96 Programming Manual MSO/UPO2000 Series Return format:  Query returns binary character data. For example:  :SBUS:CAN:DATA "X00X00X1" Set CAN bus data to X00X00X1. :SBUS:CAN:DATA? Query returns X00X00X1. CAN-FD This command is used to set the relevant parameter of CAN-FD bus decoding and trigger.
  • Page 97 Programming Manual MSO/UPO2000 Series CANFD :SBUS: :BAUDrate <baudrate> CANFD :SBUS: :BAUDrate? Functional description:  This command is used to set CAN-FD bus signal baud rate of the oscilloscope, <baudrate> rang is 10000~1000000, uni is bps. Return format:  Query returns signal baud rate.
  • Page 98 Programming Manual MSO/UPO2000 Series :SBUS:CANFD:FRAMe:TYPE Command format:  :CANFD :SBUS :FRAMe:TYPE { DATA | REMote | OVERload | ERRor } :CANFD :SBUS :FRAMe:TYPE? Functional description:  This command is used to set CAN-FD bus trigger frame type. Return format: ...
  • Page 99 Programming Manual MSO/UPO2000 Series For example:  :CANFD :SBUS :ID "X00X00X1" Set ID identifier frame data of CAN –FD bus to X00X00X1. CANFD :SBUS: :ID? Query returns X00X00X1. :SBUS:CANFD:DATA:LEN Command format:  :CANFD :SBUS :DATA:LEN <length> :CANFD :SBUS :DATA:LEN? Functional description:...
  • Page 100 Programming Manual MSO/UPO2000 Series Query returns 1 or 0, it repectively represents ON or OFF. For example:  :CANFD :OFFSet:CTL :SBUS :DATA Turn on CAN-FD bus DATA byte offset. :CANFD :OFFSet:CTL :SBUS :DATA Query returns 1. :SBUS:CANFD:DATA:OFFSet Command format: ...
  • Page 101 Programming Manual MSO/UPO2000 Series :SBUS:LIN:POLarity {NORMal | INVert} :SBUS:LIN:POLarity? Functional description:  This command is used to set LIN bus polarity of the oscilloscope, which includes NORMal (normal, high =1) and INVert (invert, high=0). Return format:  Query returns {NORMal | INVert}.
  • Page 102 Programming Manual MSO/UPO2000 Series :SBUS:LIN:PARity:DISPlay { {1|ON} | {0|OFF} } :SBUS:LIN:PARity:DISPlay? Functional description:  This command is used to set LIN bus ID parity bit of the oscilloscope, which can set to ON (yes) or OFF (no). Return format: ...
  • Page 103 Programming Manual MSO/UPO2000 Series :SBUS:LIN:QUALifier {SYNC|ID|DATA|IDDATA|WAKE|SLEEP|ERROR} :SBUS:LIN:QUALifier? Functional description:  This command is used to set LIN bus trigger condition of the oscilloscope. {SYNC|ID|DATA|IDDATA|WAKE|SLEEP|ERROR}: synchronization, identifier, data, ID and data, wake frame, sleep frame, error. Return format:  Query returns {SYNC|ID|DATA|IDDATA|WAKE|SLEEP|ERROR}.
  • Page 104 Programming Manual MSO/UPO2000 Series :SBUS:LIN:DATA? Functional description:  This command is used to set DATA of LIN bus of the oscilloscope. Binary character string data presented by parameter is 0, 1 or X. X represents unsure. And its rang is related to the value set by instruction setting value *8bits :SBUS:LIN:TRIGger:DATA:LENGth, the rang is 0x0~0xFFFFFFFFFFFFFFFF.
  • Page 105 Programming Manual MSO/UPO2000 Series :SBUS :POLarity Command format:  :SBUS:FR:POLarity {BP | BM} :SBUS:FR:POLarity? Functional description:  This command is used to set FlexRay bus polarity of the oscilloscope, BP (Bdiff or BP). Return format:  Query returns {BP | BM}.
  • Page 106 Programming Manual MSO/UPO2000 Series :SBUS:FR:QUALifier? Functional description:  This command is used to set FlexRay bus trigger condition of the oscilloscope. {START|IND|ID|CYCLES|HEAD|DATA|IDDATA|END|ERROR}: start frame, indicator bit, cycle number, header filed, data, ID and data, end frame, error. Return format: ...
  • Page 107 Programming Manual MSO/UPO2000 Series :SBUS:FR:PAYLoad:SIZe Command format:  :FR:PAYLoad:SIZe :SBUS <size> :FR:PAYLoad:SIZe :SBUS Functional description:  This command is used to set header field static load length in FlexRay bus trigger condition. Binary character data presented by parameter 0, 1 or X. X represents uncertainty. Data bit is 7bits and its range is 0x0~0x7F.
  • Page 108 Programming Manual MSO/UPO2000 Series :SBUS:FR:ID Command format:  :SBUS :ID <string> :SBUS :ID? Functional description:  This command is used to set FlexRay bus identifier data. Binary character data presented by parameter 0, 1 or X. X represents uncertainty. Data bit is 11bits and its range is 0x0~0x7FF.
  • Page 109 Programming Manual MSO/UPO2000 Series :SBUS:FR:DATA:OFFSet:CTL Command format:  :OFFSet:CTL :SBUS :DATA { {1|ON} | {0|OFF} } :OFFSet:CTL :SBUS :DATA Functional description:  This command is used to set FlexRay bus DATA byte offset status of the oscilloscope. Return format: ...
  • Page 110: Channel Command

    Programming Manual MSO/UPO2000 Series :FR:END :SBUS :TYPE? Query returns STATIC. :SBUS:FR:ERRor:TYPE Command format:  :SBUS :ERRor:TYPE {HEADCRC| ENDCRC | NULLSTATIC|NULLDYNAMIC|SYNC|START} :SBUS :ERRor:TYPE? Functional description:  This command is used to set FlexRay bus trigger condition error type of the oscilloscope.
  • Page 111 Programming Manual MSO/UPO2000 Series AWG:CHANnel<n>:LOAD Command format:  AWG:CHANnel<n>:LOAD <resistance> AWG:CHANnel<n>:LOAD? Functional description:  This command is used to set the specified channel output load. <resistance> represents load resistance value, unit isΩ. <n>: channel number, n take value from 1, 2.
  • Page 112 Programming Manual MSO/UPO2000 Series AWG:CHANnel1:LIMit:LOWer? Query returns 2e+0. AWG:CHANnel<n>:LIMit:UPPer Command format:  AWG:CHANnel<n>:LIMit:UPPer <voltage> AWG:CHANnel<n>:LIMit:UPPer? Functional description:  This command is used to set the amplitude upper limit of the specified channel. <voltage> represents voltahe, unit is assigned by the current channel.
  • Page 113 Programming Manual MSO/UPO2000 Series For example:  AWG:CHANnel1:MODe BASE Set channel 1 signal output in fundamental wave mode. AWG:CHANnel1:MODe? Query returns BASE. AWG:CHANnel<n>:BASE:WAVe Command format:  AWG:CHANnel<n>:BASE:WAVe { SINe | SQUare | PULSe | RAMP | ARB | NOISe | DC } AWG:CHANnel<n>:BASE:WAVe?
  • Page 114 Programming Manual MSO/UPO2000 Series This command is used to set output amplitude of the specified channel. <amp> represents voltage, unit is assigned by the current channel. (1mVpp ~ maximum value of output under the current load) If the current unit is VPP, then the maximum value under the current load = the current load *20/(50+ the current load) <n>: channel number, n take value from 1, 2.
  • Page 115 Programming Manual MSO/UPO2000 Series AWG:CHANnel<n>:BASE:OFFSet Command format:  AWG:CHANnel<n>:BASE:OFFSet <voltage> AWG:CHANnel<n>:BASE:OFFSet? Functional description:  This command is used to set DC offset of the specified channel. <voltage> represents voltage, unit is V. The range is 0~± the maximum DC under the current load.
  • Page 116 Programming Manual MSO/UPO2000 Series <voltage> represents voltage, unit is assigned by the current channel. <n>: channel number, n take value from 1, 2. Return format:  Query returns output low level of the specified channel signal in scientific notation. For example:...
  • Page 117 Programming Manual MSO/UPO2000 Series AWG:CHANnel<n>:PULSe:RISe <width> AWG:CHANnel<n>:PULSe:RISe? Functional description:  This command is used to set output rising edge pulse width of the specified channel signal pulse wave. <width> represents pulse width, unit is s. <n>: channel number, n take value from 1, 2.
  • Page 118 Programming Manual MSO/UPO2000 Series AWG:CHANnel<n>:MODulate:WAVe Command format:  AWG:CHANnel<n>:MODulate:WAVe {SINe|SQUare|UPRamp|DNRamp|ARB|NOISe} AWG:CHANnel<n>:MODulate:WAVe? Functional description:  This command is used to set modulating carrier wave type of the specified channel signal, which is sine wave, square wave, upper-triangle, down-triangle, arbitrary wave and noise wave.
  • Page 119 Programming Manual MSO/UPO2000 Series For example:  AWG:CHANnel1 :MODulate:DEPTh 50 Set modulating depth of channel 1 to 50%. AWG:CHANnel1 :MODulate:DEPTh? Query returns 50. AWG:CHANnel<n>:FM:FREQuency:DEV Command format:  AWG:CHANnel<n>:FM:FREQuency:DEV <freq> AWG:CHANnel<n>:FM:FREQuency:DEV? Functional description:  This command is used to set frequency deviation of the specified channel FM.
  • Page 120 Programming Manual MSO/UPO2000 Series This command is used to set arbitrary wave sequence number stored in the specified channel loading signal source. <index > represents arbitrary wave sequence number. <n>: channel number, n take value from 1, 2. Return format:...
  • Page 121 Programming Manual MSO/UPO2000 Series AWG:CHANnel1 ARB:SOURce? Query returns INTernal AWG:CHANnel<n>:MODulate:ARB:INDex Command format:  AWG:CHANnel<n>:ARB:INDex <index > AWG:CHANnel<n>:ARB:INDex? Functional description:  This command is used to set modulating arbitrary wave sequency number stored in the specified channel loading signal source. <index > represents modulating arbitrary wave sequency number.
  • Page 122 Programming Manual MSO/UPO2000 Series This command is used to set arbitrary wave play mode switch of the specified channel. ON represents output with original data; OFF represents it can output by extract point. <n>: channel number, n take value from 1, 2.
  • Page 123 Programming Manual MSO/UPO2000 Series :LA:STATe Command format:  :LA:STATe { {1|ON} | {0|OFF} } :LA:STATe? Functional description:  This command is used to turn on/off LA function or query LA function status. Return format:  Query returns 1 or 0, it repectively represents ON or OFF.
  • Page 124 Programming Manual MSO/UPO2000 Series :LA:DIGital<n>:DISPlay Command format:  :LA:DIGital<n>:DISPlay { {1|ON} | {0|OFF} } :LA:DIGital<n>:DISPlay? Functional description:  This command is used to turn on/off the specified digital channel or query the status of the specified digital channel. <n>: integer digit 1~16, it represents {D0|D1|D2|D3|D4|D5|D6|D7|D8|D9|D10|D11|D12|D13|D14|D15}.
  • Page 125 Programming Manual MSO/UPO2000 Series This command is used to set or query the label of the specified digital channel. <n>: integer digit 1~16, it represents {D0|D1|D2|D3|D4|D5|D6|D7|D8|D9|D10|D11|D12|D13|D14|D15}. <label>: ASCII character string, which includes English letter and number or it can includes several symbols.
  • Page 126 Programming Manual MSO/UPO2000 Series :LA:SIZe Command format:  :LA:SIZe {SMALl|LARGe|MEDium} :LA:SIZe? Functional description:  This command is used to set or query the display size of the opened channel waveform on the screen. Return format:  Query returns SMALl, LARGe or MEDium.
  • Page 127 Programming Manual MSO/UPO2000 Series For example:  :LA:DELete GROup1 Cancel the channel setting of GROup1. :LA:DELete? Query returns GROup1. :LA:GROup<n>:DISPlay Command format:  :LA:GROup<n>:DISPlay { {1|ON} | {0|OFF} } :LA:GROup<n>:DISPlay? Functional description:  This command is used to turn on/off the specified digital channel.
  • Page 128 Programming Manual MSO/UPO2000 Series Query returns 1 or 0, it respectively represents ON or OFF. For example:  :LA:BUS1 :DISPlay ON Turn on LA bus 1 decoding status to display decoding waveform. :LA:BUS1 :DISPlay? Query returns 1. :LA:BUS<n>:BASE Command format:...
  • Page 129 Programming Manual MSO/UPO2000 Series configure the system setting data. <setup_data> is conform to the Appendix 2:IEEE 488.2 binary data format. For example:  :LA:BUS1 :DATA? Query returns parallel decoding event list of data bus 1: #9000000089PAR, ID,BUS1DATA, 0,0xFF 1,0xFE 2,0xF3...
  • Page 130 Programming Manual MSO/UPO2000 Series :LA:BUS<n>:POLarity Command format:  :LA:BUS<n>:POLarity {NEGative|POSitive} :LA:BUS<n>:POLarity Functional description:  This command is used to set LA bus bit order of the oscilloscope, that is data polarity. <n>: integer data {1|2}, it respectively represents bus 1~2.
  • Page 131 Programming Manual MSO/UPO2000 Series :LA:BUS1:NRTime Query returns 5.000e-005. :LA:BUS<n>:SOURce Command format:  :LA:BUS<n>:SOURce <digital0>[, digital1~ digital15, CHANnel1, CHANnel2] :LA:BUS<n>:SOURce Functional description:  This command is used to set the currently selected channel source of LA bus parallel decoding of the oscilloscope.
  • Page 132 Programming Manual MSO/UPO2000 Series Return format:  Query returns bode diagram event list status of bode diagram. 0 represents bode diagram event list is not open. 1 represents bode diagram event list is opened. For example:  :EVENt :BODe Turn on bode diagram event list.
  • Page 133 Programming Manual MSO/UPO2000 Series Return format:  Query returns sweep point. For example:  :BODe:SWEep:POINts 1000 Set sweep point of bode diagram to 1000. :BODe:SWEep:POINts? Query returns 1000. :BODe:SWEep:FREQuency:STARt Command format:  :BODe:SWEep: FREQuency :STARt <freq> :BODe:SWEep: FREQuency :STARt? Functional description:...
  • Page 134 Programming Manual MSO/UPO2000 Series :BODe:AMPLitude<n> Command format:  :BODe:AMPLitude<n> <amp> :BODe:AMPLitude<n> Functional description:  This command is used to set amplitude of bode diagram. <n> can take value from 1~8;<amp> can take value from 10mV~3V. Return format:  Query returns 1.000e-003, unit is V.
  • Page 135 Programming Manual MSO/UPO2000 Series :BODe:DUT:INPut {CHANnel1| CHANnel2| CHANnel3| CHANnel4} :BODe:DUT:INPut Functional description:  This command is used to set DUT input channel of bode diagram. Return format:  Query returns {CHANnel1| CHANnel2| CHANnel3| CHANnel4}. For example:  :BODe:DUT:INPut CHANnel1 Set DUT input channel of bode diagram to channel 1.
  • Page 136 Programming Manual MSO/UPO2000 Series This command is used to set gain scale of bode diagram. <scale> can take value from 1~500dB. Return format:  Query returns gain scale of bode diagram, unit is dB. For example:  :BODe:GAIN:SCALe Set gain scale of bode diagram to 10 dB.
  • Page 137 Programming Manual MSO/UPO2000 Series Query returns phase scale of bode diagram, unit is°. For example:  :BODe:PHASe:SCALe Set phase scale of bode diagram to 10°. :BODe:PHASe:SCALe Query returns 1.000e001. :BODe:PHASe:OFFSet Command format:  :BODe:PHASe:OFFSet <offset> :BODe:PHASe:OFFSet Functional description:  This command is used to set phase offset of bode diagram.
  • Page 138 Programming Manual MSO/UPO2000 Series :BODe:SWEep: FREQuency : Functional description:  This command is used to set cut-off frequency of bode diagram display. Return format:  Query returns cut-off frequency of bode diagram display, unit is Hz. For example:  :BODe FREQuency:END 1 kHz Set cut-off frequency of bode diagram display to1 kHz.
  • Page 139 Programming Manual MSO/UPO2000 Series Programming Preparation Programming preparation is only applicable for using Visual Studio and LabVIEW development tools to programming under Windows operating system. Firstly, user need to confirm that whether NI –VISA libray is installed (it can be download from the website https://www.ni.com/en-ca/support/downloads/drivers/download.ni-visa.html).
  • Page 140 Programming Manual MSO/UPO2000 Series Select "Linker-General" in attribute dialog on the leftside, set the value of "Additional Library Directories" installment path NI-VIS (such C:\Program Files\IVI Foundation\VISA\WinNT\include), as shown in the following figure. Select “Linker-Command Line “in attribute dialog on the leftside, set the value of "Additional" as visa32.lib, as shown in the following figure.
  • Page 141 Programming Manual MSO/UPO2000 Series Add file visa.h in projectname.cpp file #include <visa.h> Source code: USBTMC Example int usbtmc_test() { /** This code demonstrates sending synchronous read & write commands * to an USB Test & Measurement Class (USBTMC) instrument using NI-VISA * The example writes the "*IDN?\n"...
  • Page 142 Programming Manual MSO/UPO2000 Series printf("Could not open a session to the VISA Resource Manager!\n"); return status; /*Find all the USB TMC VISA resources in our system and store the number of resources in the system in numInstrs.*/ status = viFindRsrc(defaultRM, "USB?*INSTR", &findList, &numInstrs, instrResourceString);...
  • Page 143 Programming Manual MSO/UPO2000 Series status = viClose(instr); continue; /** Now we will attempt to read back a response from the device to *the identification query that was sent. We will use the viScanf *function to acquire the data. *After the data has been read the response is displayed. */ status = viScanf(instr, "%t", buffer);...
  • Page 144 Programming Manual MSO/UPO2000 Series /* Now we will open a session via TCP/IP device */ char head[256] = "TCPIP0::"; char tail[] = "::inst0::INSTR"; strcat(head, pIP); strcat(head, tail); status = viOpen(defaultRM, head, VI_LOAD_CONFIG, VI_NULL, &instr); if (status < VI_SUCCESS) printf("An error occurred opening the session\n");...
  • Page 145 Programming Manual MSO/UPO2000 Series to query the device information. Steps:  Open Visual Studio software and create a new C# console project. Add C# quote Ivi.Visa.dll and NationalInstruments.Visa.dll of VISA. Source code: Example USBTMC class Program void usbtmc_test() using (var rmSession = new ResourceManager()) var resources = rmSession.Find("USB?*INSTR");...
  • Page 146 Programming Manual MSO/UPO2000 Series var resource = string.Format("TCPIP0::{0}::inst0::INSTR", ip); var mbSession = (MessageBasedSession)rmSession.Open(resource); mbSession.RawIO.Write("*IDN?\n"); System.Console.WriteLine(mbSession.RawIO.ReadString()); catch (Exception ex) System.Console.WriteLine(ex.Message); void Main(string[] args) tcp_ip_test("192.168.20.11"); VB Example Environment: Window systm, Microsoft Visual Basic 6.0.  Description: Access the instrument via USBTMC and TCP/IP, and send "*IDN?" command on NI-VISA ...
  • Page 147 Programming Manual MSO/UPO2000 Series Example USBTMC PrivateFunction usbtmc_test() AsLong ' This code demonstrates sending synchronous read & write commands ' to an USB Test & Measurement Class (USBTMC) instrument using NI-VISA ' The example writes the "*IDN?\n" string to all the USBTMC ' devices connected to the system and attempts to read back ' results using the write and read functions.
  • Page 148 Programming Manual MSO/UPO2000 Series ' Now we will open VISA sessions to all USB TMC instruments. ' We must use the handle from viOpenDefaultRM and we must ' also use a string that indicates which instrument to open. This ' is called the instrument descriptor. The format for this string ' can be found in the function panel by right clicking on the ' descriptor parameter.
  • Page 149 Programming Manual MSO/UPO2000 Series ' viClose. This operation frees all system resources. status = viClose(defaultRM) usbtmc_test = 0 EndFunction TCP/IP Example PrivateFunction tcp_ip_test(ByVal ip AsString) AsLong Dim outputBuffer AsString * VI_FIND_BUFLEN Dim defaultRM AsLong Dim instrsesn AsLong Dim status AsLong Dim count AsLong ' First we will need to open the default resource manager.
  • Page 150 Programming Manual MSO/UPO2000 Series LabVIEW Example Environment: Window system, LabVIEW  Description: Access the instrument via USBTMC and TCP/IP, and send "*IDN?" command on NI-VISA  to query the device information. Steps:  Open LabVIEW software and create a VI file.
  • Page 151 Programming Manual MSO/UPO2000 Series MATLAB Example Environment: Window system, MATLAB  Description: Access the instrument via USBTMC and TCP/IP, and send "*IDN?" command on NI-VISA  to query the device information. Steps:  Open MATLAB software, click File>>New>>Script on Matlab interface to create an empty M file.
  • Page 152 Programming Manual MSO/UPO2000 Series fopen(vt); %Send the string "*IDN?",asking for the device's identification. fprintf(vt,'*IDN?'); %Request the data outputbuffer = fscanf(vt); disp(outputbuffer); %Close the VISA object fclose(vt); delete(vt); clear vt; Python Example Environment: Window system, Python3.8, PyVISA 1.11.0  Description: Access the instrument via USBTMC and TCP/IP, send "*IDN?" command on NI-VISA to ...
  • Page 153 Programming Manual MSO/UPO2000 Series Programming Application Example Set bandwidth limit When observing the low-frequency signal, it is necessary to reduce the high-frequency noise in the signal, then attenuate the high-frequency signal above 20 MHz in the signal. It can use the following command...
  • Page 154: Appendix 1:Keypad List

    Programming Manual MSO/UPO2000 Series Appendix 1:Keypad List LED 灯 Functional Description Channel 1 switch √ Channel 2 switch √ Channel 3 switch √ Channel 4 switch √ AUTO The control values of the oscilloscope are automatically set to condign display the waveform for observation Control the oscilloscope’s running status, continuous send this...
  • Page 155 Programming Manual MSO/UPO2000 Series HPKNob Horizontal position knob HPKNLeft Horizontal position left knob HPKNRight Horizontal position right knob TPKNob Trigger position knob TPKNLeft Trigger position left knob TPKNRight Trigger position right knob VBKNob Voltage benchmark knob VBKNLeft Voltage benchmark left knob...
  • Page 156: Appendix 2:Ieee 488.2 Binary Data Format

    Programming Manual MSO/UPO2000 Series Appendix 2:IEEE 488.2 Binary Data Format DATA is data flow, other is ASCII character, as shown in the following figure<#812345678 + DATA + \n> Start(1Byte) Total Data Length ( Bit DATA(n Byte) Length Bit Wide Wide Byte)...

Table of Contents