Rigol DS4000E Series Programming Manual Download Page 199

Chapter 2 Command System 

 

 

RIGOL 

DS4000E Programming Guide 

2-187 

 

When sending the command, directly place the data stream after the command string, then complete 

the whole sending process in one time. When reading the data stream, ensure that there is enough 

buffer space to receive the data stream; otherwise, errors might occur in reading the program. 

 

 

:SYSTem:SSAVer:TIME 

 

Syntax

 

:SYSTem:SSAVer:TIME <time> 

:SYSTem:SSAVer:TIME? 

Description 

Sets or queries the screen saver time.

 

 

Parameter

 

Name

 

Type 

Range 

Default

 

<time> 

Discrete 

{1MIN|2MIN|5MIN|15MIN|30MIN|45MIN|60MIN| 

2HOur|5HOur|OFF} 

OFF 

 

Remarks 

After the oscilloscope enters the idle state and holds for a specified period of time (screen saver time), the 

screen saver program will be enabled automatically. When <time> is "OFF", it indicates that the screen 

saver function is disabled. 

 

Return Format

 

The query returns 1MIN, 2MIN, 5MIN, 15MIN, 30MIN, 45MIN, 60MIN, 2HO, 5HO, or OFF. 

 

 

:SYSTem:TIME 

 

Syntax

 

:SYSTem:TIME <hour>,<minute>,<second> 

:SYSTem:TIME? 

 

Description

 

Sets or queries the system time.

 

 

Parameter

 

Name

 

Type 

Range 

Default

 

<hour> 

Integer 

0 to 23 

-- 

<minute> 

Integer 

0 to 59 

-- 

<second> 

Integer 

0 to 59 

-- 

 

Remarks 

There is a certain delay between the return time value and the set time value due to the command 

response time and other factors.

 

 

Return Format

 

The query returns the system time in strings. 

 

 

 

 

 

 

Summary of Contents for DS4000E Series

Page 1: ...RIGOL Programming Guide DS4000E Series Digital Oscilloscope Aug 2016 RIGOL TECHNOLOGIES INC...

Page 2: ......

Page 3: ...on in this publication replaces all previously released materials Information in this publication is subject to change without notice RIGOL shall not be liable for either incidental or consequential l...

Page 4: ...VIEW MATLAB Visual Basic 6 0 and Visual C 6 0 Format Conventions in this Manual 1 Function Key The key on the front panel is denoted by the format of Key Name Bold Text Box in the manual For example U...

Page 5: ...BUS n DATA 2 7 BUS n DISPlay 2 8 BUS n EEXPort 2 8 BUS n EVENt 2 8 BUS n FORMat 2 9 BUS n MODE 2 9 BUS n CAN Option 2 10 BUS n FLEXray Option 2 14 BUS n IIC Option 2 17 BUS n PARallel 2 20 BUS n RS23...

Page 6: ...y GRADing TIME 2 82 DISPlay GRID 2 83 DISPlay MPERsistence 2 83 DISPlay TYPE 2 84 DISPlay WBRightness 2 84 EXT Commands 2 85 EXT PEND 2 85 EXT CSTart 2 85 FUNCtion Commands 2 86 FUNCtion WRMode 2 86 F...

Page 7: ...RPhase 2 124 MEASure FREQuency 2 125 MEASure FTIMe 2 126 MEASure HISTory DISPlay 2 128 MEASure HISTory DMODe 2 128 MEASure MARea 2 129 MEASure MPARea 2 130 MEASure NDUTy 2 132 MEASure NWIDth 2 133 MEA...

Page 8: ...REFerence n ENABle 2 173 SAVE Commands 2 174 SAVE CSV STARt 2 174 SAVE CSV FACTors 2 174 SAVE CSV LENGth 2 175 SAVE FORMat 2 175 SAVE IMAGe STARt 2 176 SAVE IMAGe TYPE 2 176 SAVE IMAGe FACTors 2 176 S...

Page 9: ...er CAN 2 197 TRIGger EDGe 2 201 TRIGger IIC 2 203 TRIGger PATTern 2 207 TRIGger PULSe 2 209 TRIGger RUNT 2 212 TRIGger NEDGe 2 216 TRIGger RS232 2 218 TRIGger SLOPe 2 222 TRIGger SPI 2 226 TRIGger USB...

Page 10: ...RIGOL Contents VIII DS4000E Programming Guide LabVIEW Programming Example 3 7 MATLAB Programming Example 3 11 Visual Basic 6 0 Programming Example 3 13 Visual C 6 0 Programming Example 3 15...

Page 11: ...of the command ADVanced is the second level keyword and EXPRession is the third level keyword The command line starts with a colon and a colon is also used to separate the multiple level keywords str...

Page 12: ...ween 0 and 100 4 Real The parameter can be any real value in decimal form or in scientific notation within the effective value range For example FUNCtion WREPlay INTerval interval FUNCtion WREPlay INT...

Page 13: ...and parameter range in this manual all take DS4024E as an example 2 For the parameter setting command time frequency amplitude etc the digital oscilloscope can only recognize the numbers unable to re...

Page 14: ...mode refer to the SINGle command you can use the RUN command to set the trigger mode of the oscilloscope to Auto and keep the oscilloscope in the Run state If the oscilloscope is in a single trigger...

Page 15: ...ormal and single trigger modes refer to the TRIGger SWEep command This command functions the same as the FORCE key in the trigger control area of the front panel TLHAlf Syntax TLHAlf Description Sets...

Page 16: ...e Type Range Default bool Bool 1 ON 0 OFF 0 OFF Return Format The query returns 1 or 0 ACQuire AVERages Syntax ACQuire AVERages count ACQuire AVERages Description Sets or queries the number of average...

Page 17: ...alue 14 When mdep is set to AUTO the oscilloscope will select the memory depth automatically according to the current sample rate and horizontal time base refer to the TIMebase MAIN SCALe command Retu...

Page 18: ...nal at the fixed sampling interval to acquire the signal envelope or the narrow pulses that might be lost This mode can avoid the signal aliasing but produces greater noises HRESolution The oscillosco...

Page 19: ...allel Time Data 9 3508796E 04 1 6 5072008E 05 1 1 0636000E 03 1 Wherein 9000000077 is the TMC data block header which is followed by the data in the event table The 9 digit data following 9 in the dat...

Page 20: ...on Exports the decoding information in the specified decoding bus event table to the external USB storage device if detected in CSV form Parameter Name Type Range Default n Discrete 1 2 BUS n EVENt Sy...

Page 21: ...mat The query returns HEX DEC BIN or ASC BUS n MODE Syntax BUS n MODE mode BUS n MODE Description Sets or queries the decoding type of the specified decoding bus Parameter Name Type Range Default n Di...

Page 22: ...rete 100000 125000 250000 400000 500000 800000 1000000 USER 500000 Remarks When baud is set to USER you can use the BUS n CAN BUSer command to self define the signal rate of CAN decoding on the specif...

Page 23: ...to 148 When the display mode is Full Screen and the statistics function is enabled the val parameter ranges from 163 to 143 When the display mode is Split refer to the TIMebase DELay ENABle and CALCul...

Page 24: ...95 BUS n CAN STYPe Syntax BUS n CAN STYPe stype BUS n CAN STYPe Description Sets or queries the signal type of CAN decoding on the specified bus Parameter Name Type Range Default n Discrete 1 2 stype...

Page 25: ...decoding on the specified bus Parameter Name Type Range Default n Discrete 1 2 thre Real 4 x VerticalScale Offset to 4 x VerticalScale Offset Wherein VerticalScale is the vertical scale of the source...

Page 26: ...us Parameter Name Type Range Default n Discrete 1 2 val Integer Refer to Remarks 0 Remarks Before using the command enable the display of the specified decoding bus refer to the BUS n DISPlay command...

Page 27: ...n FLEXray SPoint Syntax BUS n FLEXray SPoint spo BUS n FLEXray SPoint Description Sets or queries the sample point position of FlexRay decoding on the specified bus expressed in Parameter Name Type R...

Page 28: ...or queries the threshold of the current source channel of FlexRay decoding on the specified bus Parameter Name Type Range Default n Discrete 1 2 thre Real 4 x VerticalScale Offset to 4 x VerticalScal...

Page 29: ...stic DISPlay command When the display mode is Full Screen and the statistics function is disabled the val parameter ranges from 166 to 148 When the display mode is Full Screen and the statistics funct...

Page 30: ...2 thre Real 4 x VerticalScale Offset to 4 x VerticalScale Offset Wherein VerticalScale is the vertical scale of the clock line source channel refer to the CHANnel n SCALe command Offset is the vertic...

Page 31: ...decoding on the specified bus Parameter Name Type Range Default n Discrete 1 2 thre Real 4 x VerticalScale Offset to 4 x VerticalScale Offset Wherein VerticalScale is the vertical scale of the data l...

Page 32: ...ete CHANnel1 CHANnel2 CHANnel3 CHANnel4 CHANnel1 b2 Discrete CHANnel1 CHANnel2 CHANnel3 CHANnel4 CHANnel1 b3 Discrete CHANnel1 CHANnel2 CHANnel3 CHANnel4 CHANnel1 Remarks This command also sets the bi...

Page 33: ...e and the on off status of the statistic function refer to the MEASure STATistic DISPlay command When the display mode is Full Screen and the statistics function is disabled the val parameter ranges f...

Page 34: ...ns POS NEG or BOTH BUS n PARallel THReshold Syntax BUS n PARallel THReshold source thre BUS n PARallel THReshold source Description Sets or queries the threshold level of the specified analog channel...

Page 35: ...RS232 decoding on the specified bus The default unit is bps Parameter Name Type Range Default n Discrete 1 2 baud Discrete 2400 4800 9600 19200 38400 57600 115200 230400 460800 921600 1000000 USER 960...

Page 36: ...r 9 BUS n RS232 ENDian Syntax BUS n RS232 ENDian endian BUS n RS232 ENDian Description Sets or queries the bit order of data of RS232 decoding on the specified bus Parameter Name Type Range Default n...

Page 37: ...the data line that displays the decoding is located in the middle part of the screen val is 0 when it is located above the middle part of the screen val is a positive value when it is located below th...

Page 38: ...added to the check bit Return Format The query returns NONE ODD or EVEN BUS n RS232 PEND Syntax BUS n RS232 PEND package end BUS n RS232 PEND Description Sets or queries the packet end of data of RS2...

Page 39: ...erticalScale Offset to 4 x VerticalScale Offset Wherein VerticalScale is the vertical scale of RX source channel refer to the CHANnel n SCALe command Offset is the vertical position of RX source chann...

Page 40: ...f TX source channel of RS232 decoding on the specified bus Parameter Name Type Range Default n Discrete 1 2 tthre Real 4 x VerticalScale Offset to 4 x VerticalScale Offset Wherein VerticalScale is the...

Page 41: ...de 2 29 Remarks When source is set to OFF it indicates that TX source channel is not set TX source channel and RX source channel refer to the BUS n RS232 RX command cannot be both set to OFF Return Fo...

Page 42: ...ity BUS n SPI SS SOURce BUS n SPI SS THReshold BUS n SPI TIMeout TIME BUS n SPI DBITs Syntax BUS n SPI DBITs width BUS n SPI DBITs Description Sets or queries the bus width of SPI decoding on the spec...

Page 43: ...PI MISO POLarity pol command is invalid LOW indicates that low level is 1 and high level is 0 HIGH indicates that high level is 1 and low level is 0 Return Format The query returns HIGH or LOW BUS n S...

Page 44: ...on of the MISO data line source channel refer to the CHANnel n OFFSet command 0 Return Format The query returns the threshold level in scientific notation BUS n SPI MODE Syntax BUS n SPI MODE mode BUS...

Page 45: ...level is 0 Return Format The query returns HIGH or LOW BUS n SPI MOSI SOURce Syntax BUS n SPI MOSI SOURce source BUS n SPI MOSI SOURce Description Sets or queries the source channel of MOSI data line...

Page 46: ...on the specified bus Parameter Name Type Range Default n Discrete 1 2 val Integer Refer to Remarks 0 Remarks Before using the command enable the display of the specified decoding bus refer to the BUS...

Page 47: ...e rising edge NEGative indicates the falling edge Return Format The query returns POS or NEG BUS n SPI SCLK SOURce Syntax BUS n SPI SCLK SOURce source BUS n SPI SCLK SOURce Description Sets or queries...

Page 48: ...pecified bus Parameter Name Type Range Default n Discrete 1 2 pol Discrete HIGH LOW LOW Remarks HIGH indicates that the oscilloscope samples data of the source channel of data line on the specified ed...

Page 49: ...ale of the CS line source channel refer to the CHANnel n SCALe command Offset is the vertical position of the CS line source channel refer to the CHANnel n OFFSet command 0 Return Format The query ret...

Page 50: ...oint by point then displays the results MULTiply multiplies the waveform voltage value of Source A by that of Source B point by point then displays the results DIVision divides the waveform voltage va...

Page 51: ...Parameter Name Type Range Default bool Bool 1 ON 0 OFF 0 OFF Remarks 1 ON turns the waveform invert on The waveform voltage values are inverted and then displayed 0 OFF turns the waveform invert off...

Page 52: ...ic notation CALCulate ADD VSCale Syntax CALCulate ADD VSCale scale CALCulate ADD VSCale Description Sets or queries the vertical scale of the addition operation waveform The unit is related to the cur...

Page 53: ...Refer to Remarks CH1 CH2 Remarks Please enter legal expression by using the characters shown in the following figure Note The length of the expression is limited to 64 bytes You can specify Variable1...

Page 54: ...Remarks 0 Remarks variable is in the AeB format Wherein A is mantissa and its available range is from 9 9999 to 9 9999 with the minimum step of 0 0001 that is precision to four decimals B refers to th...

Page 55: ...s The default range of scale is from 0 02 V div to 500 V div Its actual range is related to the expression of the advanced operation refer to the CALCulate ADVanced EXPRession command at 1 2 5 step If...

Page 56: ...atus of the invert display of the division operation waveform Parameter Name Type Range Default bool Bool 1 ON 0 OFF 0 OFF Remarks 1 ON turns the waveform invert on The waveform voltage values are inv...

Page 57: ...ic notation CALCulate DIVision VSCale Syntax CALCulate DIVision VSCale scale CALCulate DIVision VSCale Description Sets or queries the vertical scale of the division operation waveform The unit is rel...

Page 58: ...Culate FFT HOFFset Description Sets or queries the horizontal position of the FFT operation waveform The default unit is Hz Parameter Name Type Range Default offs Real Refer to Remarks 0 Remarks The r...

Page 59: ...2 Hspan Sa 40 3 Hspan Sa 100 4 Hspan Sa 200 FFT Sample Rate Number of Pixels Per Grid Horizontally Horizontal Time Base Wherein Number of Pixels Per Grid Horizontally is related to the on off status o...

Page 60: ...rce Discrete CHANnel1 CHANnel2 CHANnel3 CHANnel4 CHANnel1 Return Format The query returns CHAN1 CHAN2 CHAN3 or CHAN4 CALCulate FFT SPLit Syntax CALCulate FFT SPLit bool CALCulate FFT SPLit Description...

Page 61: ...vertical scale type of FFT operation and the current amplitude unit of the source channel Parameter Name Type Range Default scale Real Refer to Remarks 20 dBV div Remarks The range of scale is related...

Page 62: ...WINDow window CALCulate FFT WINDow Description Sets or queries the window function of FFT operation Parameter Name Type Range Default window Discrete RECTangle HANNing HAMMing BLACkman RECTangle Remar...

Page 63: ...alScale Offset to 4 x VerticalScale Offset Wherein VerticalScale is the vertical scale of the source channel refer to the CHANnel n SCALe command Offset is the vertical position of the source channel...

Page 64: ...OT or XOR CALCulate LOGic SA CALCulate LOGic SB Syntax CALCulate LOGic SA source CALCulate LOGic SA CALCulate LOGic SB source CALCulate LOGic SB Description Sets or queries the channel source of Sourc...

Page 65: ...of the logic operation waveform to 40 x vertical scale of the logic operation waveform 0 Return Format The query returns the vertical position in scientific notation CALCulate LOGic VSCale Syntax CALC...

Page 66: ...eter Name Type Range Default bool Bool 1 ON 0 OFF 0 OFF Remarks 1 ON turns the waveform invert on The waveform voltage values are inverted and then displayed 0 OFF turns the waveform invert off The wa...

Page 67: ...tific notation CALCulate MULTiply VSCale Syntax CALCulate MULTiply VSCale scale CALCulate MULTiply VSCale Description Sets or queries the vertical scale of the multiplication operation waveform The un...

Page 68: ...ameter Name Type Range Default bool Bool 1 ON 0 OFF 0 OFF Remarks 1 ON turns the waveform invert on The waveform voltage values are inverted and then displayed 0 OFF turns the waveform invert off The...

Page 69: ...ific notation CALCulate SUB VSCale Syntax CALCulate SUB VSCale scale CALCulate SUB VSCale Description Sets or queries the vertical scale of the subtraction operation waveform The unit is related to th...

Page 70: ...ion Stops performing the self calibration operation Remarks You can enable the oscilloscope to stop performing the self calibration operation at any time CALibrate STARt Syntax CALibrate STARt Descrip...

Page 71: ...ide 2 59 CALibrate TIME Syntax CALibrate TIME Description Queries the time when the last self calibration was performed Return Format The query returns hours minutes seconds Wherein hours minutes and...

Page 72: ...connected to the specified analog channel The oscilloscope provides the bias voltage adjustment function for the active probe This function is used to adjust the signal under test that exceeds the in...

Page 73: ...COUPling Description Sets or queries the coupling mode of the specified analog channel Parameter Name Type Range Default n Discrete 1 2 3 4 coupling Discrete AC DC GND DC Remarks AC the DC components...

Page 74: ...pedance of the specified analog channel The default unit is Parameter Name Type Range Default n Discrete 1 2 3 4 imped Discrete OMEG FIFTy OMEG Remarks OMEG 1 M This indicates that the input impedance...

Page 75: ...he default unit is V Parameter Name Type Range Default n Discrete 1 2 3 4 offset Real Related to the current input impedance probe ratio and the vertical scale the default unit is V When the input imp...

Page 76: ...amplitude of the signal If you select a different probe ratio the range for the vertical scale refer to the CHANnel n SCALe command of the analog channel is different Return Format The query returns...

Page 77: ...not be adjusted Return Format The query returns the delay calibration time in scientific notation CHANnel n TYPE Syntax CHANnel n TYPE Description Sets or queries the type of a probe currently connect...

Page 78: ...enables the fine adjustment function Rotate VERTICAL SCALE to further adjust the vertical scale at a relatively smaller step 0 OFF disables the fine adjustment function Rotate VERTICAL SCALE to adjus...

Page 79: ...ine When the measurement source is FFT X cursor denotes frequency In the X Y cursor mode X cursor is used to measure the waveform amplitude of CH1 or CH3 Y Cursor Y cursor is a horizontal solid dotted...

Page 80: ...cursor measurement Parameter Name Type Range Default mode Discrete OFF MANual TRACk AUTO OFF Remarks OFF disables the cursor measurement function MANual enables the manual mode of cursor measurement...

Page 81: ...X value at Cursor A X cursor in the manual mode of cursor measurement The unit is determined by the currently selected horizontal unit Remarks For the horizontal position of Cursor A X cursor refer t...

Page 82: ...manual mode of cursor measurement The unit is determined by the currently selected vertical unit Remarks For the vertical position of Cursor B Y cursor refer to the CURSor MANual CBY command Return Fo...

Page 83: ...0 and 399 CURSor MANual CBX Syntax CURSor MANual CBX bx CURSor MANual CBX Description Sets or queries the horizontal position of Cursor B X cursor in the manual mode of cursor measurement Parameter N...

Page 84: ...rizontal position of Cursor B X cursor refer to the CURSor MANual CBX command Return Format The query returns the reciprocal 1 X of the difference between X values in scientific notation When X is 0 s...

Page 85: ...ueried the returned value is expressed in s DEGRee when the X value at Cursor A X cursor the X value at Cursor B X cursor and the difference between the two values namely A X B X and X in the measurem...

Page 86: ...en the X value at Cursor A X cursor and the X value at Cursor B X cursor in the manual mode of cursor measurement The unit is determined by the currently selected horizontal unit Remarks For the horiz...

Page 87: ...atically track the time or frequency of the waveform of the corresponding track source channel at Cursor A Y cursor For the horizontal position of Cursor A X cursor refer to the CURSor TRACk CAX comma...

Page 88: ...A X cursor For the vertical position of Cursor A Y cursor refer to the CURSor TRACk CAY command Return Format The query returns the Y value in scientific notation When the Y value at Cursor A Y cursor...

Page 89: ...The horizontal position of the cursor is defined by the pixel coordinate of the screen The range of the pixel coordinate on the screen horizontally is from 0 to 699 from left to right When X is select...

Page 90: ...0 and 699 CURSor TRACk CBY Syntax CURSor TRACk CBY by CURSor TRACk CBY Description Sets or queries the vertical position of Cursor B Y cursor in the track mode of cursor measurement Parameter Name Ty...

Page 91: ...ave formed multiple crossing points along the cursor then X cursor will be automatically located at the crossing point of the most left side of the screen LAST When you adjust the vertical position of...

Page 92: ...rsor refer to the CURSor TRACk CAX command For the horizontal position of Cursor B X cursor refer to the CURSor TRACk CBX command Return Format The query returns the current difference in scientific n...

Page 93: ...e bitmap data stream of the currently displayed image on the screen Remarks The command is sent from the PC to the instrument through the VISA interface The instrument responds to the command and dire...

Page 94: ...4 bytes of effective data Bitmap data Note 1 N is the width of the bits that are used to describe the data length in the TMC data block header For example 9 in 9001152054 Note 2 The width is 800 the h...

Page 95: ...0 or INF DISPlay GRID Syntax DISPlay GRID grid DISPlay GRID Description Sets or queries the display type of the screen grid Parameter Name Type Range Default grid Discrete FULL HALF NONE FULL Remarks...

Page 96: ...d waveform to view the steep edge of the waveform such as square waveforms DOTS displays the sample points directly You can directly view each sample point and use the cursor to measure X and Y values...

Page 97: ...G connector on the front panel of the instrument Parameter Name Type Range Default type Discrete SEND DIFFerential SEND Remarks SEND indicates a single ended probe head DIFFerential indicates a differ...

Page 98: ...ets or queries the waveform recording mode Parameter Name Type Range Default mode Discrete OFF RECord PLAY KEEP ANALyze OFF Remarks RECord indicates the recording mode PLAY indicates the playback mode...

Page 99: ...be recorded currently 7996 Return Format The query returns an integer FUNCtion WRECord FMAX Syntax FUNCtion WRECord FMAX Description Queries the maximum number of frames that can be recorded currently...

Page 100: ...ate oper FUNCtion WRECord OPERate Description Starts or stops the waveform recording operation in the recording mode or queries the status of waveform recording in the recording mode Parameter Name Ty...

Page 101: ...hat have been recorded Remarks The actual range of the current frame is from the currently set start frame to the end frame of the waveform playback refer to FUNCtion WREPlay FSTart and FUNCtion WREPl...

Page 102: ...Range Default frame Integer 1 to the number of frames that have been recorded 1 Remarks The actual range of the start frame is from 1 to the currently set end frame of waveform playback refer to the F...

Page 103: ...ns REP or SING FUNCtion WREPlay OPERate Syntax FUNCtion WREPlay OPERate oper FUNCtion WREPlay OPERate Description Starts pauses or stops the waveform playback operation or queries the current status o...

Page 104: ...rns 1 or 0 FUNCtion WREPlay CTAG Syntax FUNCtion WREPlay CTAG Description Queries the recording time difference between the currently displayed waveform and the first frame of waveform in the playback...

Page 105: ...n WANalyze SETup XMASk FUNCtion WANalyze SETup YMASk FUNCtion WANalyze SOURce FUNCtion WANalyze STARt FUNCtion WANalyze STEMplate FUNCtion WANalyze TDISp FUNCtion WANalyze CANCel Syntax FUNCtion WANal...

Page 106: ...rent Syntax FUNCtion WANalyze ECURrent frame FUNCtion WANalyze ECURrent Description Sets or queries the current error frame Parameter Name Type Range Default frame Integer 1 to the total number of err...

Page 107: ...ode The waveform is analyzed according to the user defined template MASK indicates the pass fail test mode The waveform is analyzed according to the pass fail test mask created by users Return Format...

Page 108: ...Parameter Name Type Range Default frame Integer 1 to the number of frames that have been recorded 1 Remarks The actual available range of the start frame is from 1 to the currently set end frame of w...

Page 109: ...Reshold thre FUNCtion WANalyze SETup THReshold Description Sets or queries the error frame threshold in waveform analysis Parameter Name Type Range Default thre Integer 1 to 99 10 Remarks The error fr...

Page 110: ...ge the oscilloscope only displays the number to two decimal places round up For example when the vertical tolerance range is 0 0625 div 0 06 is displayed when the vertical tolerance range is 0 125 div...

Page 111: ...he waveform analysis mode is Trace use this command to set the waveform frame currently displayed on the screen to be the template for the waveform analysis Remarks After the analysis starts refer to...

Page 112: ...ts and clears the error queue ESE Syntax ESE mask ESE Description Sets or queries the enable register of the standard event register set Parameter Name Type Range Default mask Integer 0 to 255 0 Remar...

Page 113: ...s an integer corresponds to the binary weighted sum of all the bits from bit 0 to bit 7 between 0 and 255 IDN Syntax IDN Description Queries the instrument information Return Format The query returns...

Page 114: ...from bit 0 to bit 7 1 denotes enabling the corresponding bit and 0 denotes disabling the corresponding bit The bits in the status byte register are defined as follows Bit Weight Name Enable 7 128 OPE...

Page 115: ...a 32 bit binary number 0 denotes that the corresponding item passes the self test 1 denotes that the self test of the corresponding items fails The self test item corresponding to each bit is as show...

Page 116: ...mode or queries the on off status of the auto IP configuration mode Parameter Name Type Range Default bool Bool 1 ON 0 OFF 1 ON Remarks The high to low priority of the three IP configuration modes is...

Page 117: ...the DNS server address to the oscilloscope Return Format The query returns 1 or 0 LAN DNS Syntax LAN DNS string LAN DNS Description Sets or queries the DNS server address Parameter Name Type Range Def...

Page 118: ...eway address to the oscilloscope You can use this command to query the current gateway address When the auto IP refer to the LAN AUToip command or static IP refer to the LAN MANual command configurati...

Page 119: ...scription Queries the MAC address of the instrument Remarks The MAC address of each oscilloscope is unique When assigning an IP address for an oscilloscope you can identify the instrument by its MAC a...

Page 120: ...ng to the current network configuration You can use this command to query the current subnet mask When the static IP configuration mode refer to the LAN MANual command is valid you can use this comman...

Page 121: ...command for the vertical tolerance range in the pass fail test mask refer to the MASK Y command MASK DATA Syntax MASK DATA mask MASK DATA Description Sends or reads the data stream of the pass fail t...

Page 122: ...refer to the TIMebase MODE command In the Roll horizontal time base mode In the Y T horizontal time base mode and when the horizontal time base is set to 200 ms div or slower refer to the TIMebase MA...

Page 123: ...on when the pass fail test function is enabled refer to the MASK ENABle command Return Format The query returns RUN or STOP MASK OUTPut Syntax MASK OUTPut type MASK OUTPut Description Enables or disab...

Page 124: ...waveform is detected the oscilloscope stops the test and enters the Stop state In this case the last statistic results are displayed on the screen if the display of the statistic information of the pa...

Page 125: ...elected as the source channel Return Format The query returns CHAN1 CHAN2 CHAN3 or CHAN4 MASK TOTal Syntax MASK TOTal Description Queries the total number of frames in the pass fail test results Retur...

Page 126: ...n Parameter Name Type Range Default y Real 0 03125 to 4 with a step of 0 03125 0 375 Remarks For the vertical tolerance range the oscilloscope only displays the number to two decimal places round up F...

Page 127: ...MEASure MARea MEASure MPARea MEASure NDUTy MEASure NWIDth MEASure OVERshoot MEASure PDUTy MEASure PERiod MEASure PREShoot MEASure PVRMs MEASure PWIDth MEASure RECover MEASure RDELay MEASure R2FDelay M...

Page 128: ...veform points relative to the ground The operation formula is as follows n x RMS n i i 1 2 Wherein i x is the measurement result of the ith point being measured n is the number of points being measure...

Page 129: ...SCReen indicates the screen area CREGion indicates the cursor area The measurement range is specified by the area between Cursor A refer to the MEASure CREGion CAX command and Cursor B refer to the ME...

Page 130: ...The query returns the measurement results of the frequency counter in scientific notation The query returns 9 9e37 if the frequency counter function is disabled refer to the MEASure COUNter SOURce com...

Page 131: ...and 697 MEASure FDELay Syntax 1 MEASure FDELay chanA chanB Description 1 Measures the delay falling edge falling edge between the two specified source channels Syntax 2 MEASure FDELay chanA chanB Des...

Page 132: ...s the average value current value standard deviation maximum value or minimum value of the delay falling edge falling edge measurement results when the delay falling edge falling edge measurement func...

Page 133: ...ure SETup DSB command of delay measurement currently set by default Return Format The query returns the measurement results in scientific notation When the measurement results are invalid the query re...

Page 134: ...value current value standard deviation maximum value or minimum value in scientific notation When the measurement results are invalid the query returns 9 9e37 MEASure FPHase Syntax 1 MEASure FPHase c...

Page 135: ...e average value current value standard deviation maximum value or minimum value of the phase deviation falling edge falling edge measurement results when the phase deviation falling edge falling edge...

Page 136: ...to the MEASure SETup PSB command of phase measurement currently set by default Return Format The query returns the measurement results in scientific notation When the measurement results are invalid t...

Page 137: ...ent currently set by default Return Format The query returns the average value current value standard deviation maximum value or minimum value in scientific notation When the measurement results are i...

Page 138: ...mum value or minimum value of frequency measurement results when the frequency measurement function of the specified source channel and the statistic function of the measurement results are enabled Th...

Page 139: ...IMe SMINimum Syntax 1 MEASure FTIMe SAVerage chan MEASure FTIMe SCURrent chan MEASure FTIMe SDEViation chan MEASure FTIMe SMAXimum chan MEASure FTIMe SMINimum chan Description 1 Measures the fall time...

Page 140: ...e Type Range Default bool Bool 1 ON 0 OFF 0 OFF Remarks The measurement history cannot be turned on when there is no measurement item You can use the MEASure HISTory DMODe command to set the display f...

Page 141: ...ed When the math operation type is FFT refer to the CALCulate MODE command chan cannot be set to MATH When chan is omitted the command by default applies to the currently set measurement source refer...

Page 142: ...the average value current value standard deviation maximum value or minimum value in scientific notation When the measurement results are invalid the query returns 9 9e37 MEASure MPARea Syntax 1 MEASu...

Page 143: ...unction of the specified source channel and the statistic function of the measurement results are enabled The default unit is volt second Parameter Name Type Range Default chan Discrete CHANnel1 CHANn...

Page 144: ...default applies to the currently set measurement source refer to the MEASure SOURce command Return Format The query returns the measurement results in scientific notation When the measurement results...

Page 145: ...turns the average value current value standard deviation maximum value or minimum value in scientific notation When the measurement results are invalid the query returns 9 9e37 MEASure NWIDth Syntax 1...

Page 146: ...egative pulse width measurement results when the negative pulse width measurement function of the specified source channel and the statistic function of the measurement results are enabled The default...

Page 147: ...Syntax 1 MEASure OVERshoot SAVerage chan MEASure OVERshoot SCURrent chan MEASure OVERshoot SDEViation chan MEASure OVERshoot SMAXimum chan MEASure OVERshoot SMINimum chan Description 1 Measures the o...

Page 148: ...el1 CHANnel2 CHANnel3 CHANnel4 MATH Remarks Before making measurements turn on the channels to be measured When the math operation type is FFT refer to the CALCulate MODE command chan cannot be set to...

Page 149: ...tly set measurement source refer to the MEASure SOURce command Return Format The query returns the average value current value standard deviation maximum value or minimum value in scientific notation...

Page 150: ...of the period measurement results when the period measurement function of the specified source channel and the statistic function of the measurement results are enabled The default unit is s Paramete...

Page 151: ...n MEASure PREShoot SMAXimum MEASure PREShoot SMINimum Syntax 1 MEASure PREShoot SAVerage chan MEASure PREShoot SCURrent chan MEASure PREShoot SDEViation chan MEASure PREShoot SMAXimum chan MEASure PRE...

Page 152: ...t of the specified source channel Parameter Name Type Range Default chan Discrete CHANnel1 CHANnel2 CHANnel3 CHANnel4 MATH Remarks Period amplitude effective value Per Vrms indicates the amplitude roo...

Page 153: ...mplitude effective value Per Vrms indicates the amplitude root mean square value of a single period of waveform within the current measurement range refer to the MEASure AREA command Before making mea...

Page 154: ...2 MEASure PWIDth SAVerage chan MEASure PWIDth SCURrent chan MEASure PWIDth SDEViation chan MEASure PWIDth SMAXimum chan MEASure PWIDth SMINimum chan Description 2 Queries the average value current val...

Page 155: ...channels Syntax 2 MEASure RDELay chanA chanB Description 2 Measures and queries the delay rising edge rising edge between the two specified source channels The default unit is s Parameter Name Type R...

Page 156: ...es the average value current value standard deviation maximum value or minimum value of the delay rising edge rising edge measurement results when the delay rising edge rising edge measurement functio...

Page 157: ...r to the MEASure SETup DSB command of delay measurement currently set by default Return Format The query returns the measurement results in scientific notation When the measurement results are invalid...

Page 158: ...e average value current value standard deviation maximum value or minimum value in scientific notation When the measurement results are invalid the query returns 9 9e37 MEASure RPHase Syntax 1 MEASure...

Page 159: ...he average value current value standard deviation maximum value or minimum value of the phase deviation rising edge rising edge measurement results when the phase deviation rising edge rising edge mea...

Page 160: ...refer to the MEASure SETup PSB command of phase measurement currently set by default Return Format The query returns the measurement results in scientific notation When the measurement results are inv...

Page 161: ...asurement currently set by default Return Format The query returns the average value current value standard deviation maximum value or minimum value in scientific notation When the measurement results...

Page 162: ...ue current value standard deviation maximum value or minimum value of rise time measurement results when the rise time measurement function of the specified source channel and the statistic function o...

Page 163: ...e B rising edge refer to the MEASure RDELay command Source A rising edge Source B falling edge refer to the MEASure R2FDelay command Source A falling edge Source B falling edge refer to the MEASure FD...

Page 164: ...s related to the current max and min values It ranges from the current min value plus 1 to the current max value minus 1 Return Format The query returns an integer MEASure SETup PSA MEASure SETup PSB...

Page 165: ...istic function of the measurement results Parameter Name Type Range Default bool Bool 1 ON 0 OFF 0 OFF Remarks When the statistic function is enabled the instrument makes statistics of the measurement...

Page 166: ...URce source MEASure SOURce Description Sets or queries the source channel of the time voltage and area parameter measurement Parameter Name Type Range Default source Discrete CHANnel1 CHANnel2 CHANnel...

Page 167: ...o MATH When chan is omitted the command by default applies to the currently set measurement source refer to the MEASure SOURce command Return Format The query returns the measurement results in scient...

Page 168: ...eturns the average value current value standard deviation maximum value or minimum value in scientific notation When the measurement results are invalid the query returns 9 9e37 MEASure VAVG Syntax 1...

Page 169: ...lue or minimum value of the amplitude average value measurement results when the amplitude average value measurement function of the specified source channel and the statistic function of the measurem...

Page 170: ...to MATH When chan is omitted the command by default applies to the currently set measurement source refer to the MEASure SOURce command Return Format The query returns the measurement results in scie...

Page 171: ...The query returns the average value current value standard deviation maximum value or minimum value in scientific notation When the measurement results are invalid the query returns 9 9e37 MEASure VMA...

Page 172: ...or minimum value of the measurement results for the maximum amplitude value when the maximum amplitude value measurement function of the specified source channel and the statistic function of the meas...

Page 173: ...e set to MATH When chan is omitted the command by default applies to the currently set measurement source refer to the MEASure SOURce command Return Format The query returns the measurement results in...

Page 174: ...d Return Format The query returns the average value current value standard deviation maximum value or minimum value in scientific notation When the measurement results are invalid the query returns 9...

Page 175: ...or minimum value of the peak peak value measurement results when the peak peak value measurement function of the specified source channel and the statistic function of the measurement results are enab...

Page 176: ...When the math operation type is FFT refer to the CALCulate MODE command chan cannot be set to MATH When chan is omitted the command by default applies to the currently set measurement source refer to...

Page 177: ...ault applies to the currently set measurement source refer to the MEASure SOURce command Return Format The query returns the average value current value standard deviation maximum value or minimum val...

Page 178: ...value or minimum value of the amplitude top value measurement results when the amplitude top value measurement function of the specified source channel and the statistic function of the measurement re...

Page 179: ...d the MASK ENABle command first to enable the pass fail test function and ensure that the specified file has been stored in the specified location otherwise this command is invalid RECall REFerence Sy...

Page 180: ...o recall the setting file ensure that the specified file has been stored in the specified location otherwise this command is invalid RECall TRACe Syntax RECall TRACe file_spec Description Recalls the...

Page 181: ...rage location and the filename with a suffix Its length cannot exceed 64 characters If the USB storage device is inserted into the USB HOST interface of the rear panel the storage location is E if ins...

Page 182: ...Ference COLor Description Sets or queries the color of the current reference waveform Parameter Name Type Range Default color Discrete GRAY GREEn LBLue MAGenta ORANge GRAY Return Format The query retu...

Page 183: ...d vertical position of the current reference waveform to that of the source channel settings in last save operation Remarks You need to save the reference waveform refer to the REFerence SAVe command...

Page 184: ...t voffset REFerence VOFFset Description Sets or queries the vertical position of the current reference waveform Parameter Name Type Range Default voffset Integer 192 to 192 0 Remarks When voffset is 0...

Page 185: ...ax REFerence n CURRent Description Sets the specified reference waveform channel as the current reference waveform channel Parameter Name Type Range Default n Discrete 1 2 3 4 5 6 7 8 9 10 1 Remarks O...

Page 186: ...evice is inserted into the USB HOST interface of the rear panel the storage location is E if inserted into the USB HOST interface of the front panel the storage location is D For example E 123 csv Rem...

Page 187: ...VE CSV LENGth len SAVE CSV LENGth Description Sets or queries the data length type in saving the csv file Parameter Name Type Range Default len Discrete DISPlay MAXimum DISPlay Remarks DISPlay only st...

Page 188: ...location is D The suffix of the filename can be bmp png jpeg or tiff For example E 123 png Remarks If the specified storage location already contains a file with the same filename the original file w...

Page 189: ...into the USB HOST interface of the front panel the storage location is D For example D 123 stp Remarks If the specified storage location already contains a file with the same filename the original fil...

Page 190: ...oscilloscope to the external memory in ref format Parameter Name Type Range Default file_spec ASCII String file_spec includes the file storage location and the filename with a suffix Its length canno...

Page 191: ...ear panel the storage location is E if inserted into the USB HOST interface of the front panel the storage location is D For example E 123 pf Remarks Before using the command to save the pass fail tes...

Page 192: ...Parameter Name Type Range Default aoutput Discrete TOUT QEDGe GND PFAil TOUT Remarks TOUT indicates that each time the oscilloscope triggers a signal that can reflect the current capture rate of the o...

Page 193: ...and or press AUTO on the front panel to make the oscilloscope perform a waveform auto setting operation 0 OFF disables the Auto function Return Format The query returns 1 or 0 SYSTem BEEPer Syntax SYS...

Page 194: ...he last system error message Return Format The query returns the system error message in strings The format is Message Number Message Content wherein Message Number is an integer and Message Content i...

Page 195: ...creen center GROund when the vertical scale of the channel is modified the waveform of the corresponding channel will be zoomed in or out vertically relative to the ground level Return Format The quer...

Page 196: ...e is a 28 character string which consists of English letters and numbers After you purchase an option you will obtain a key used for obtaining the license Then you can install the option according to...

Page 197: ...Tatus Syntax SYSTem PSTatus status SYSTem PSTatus Description Sets or queries the power status of the oscilloscope after power on Parameter Name Type Range Default status Discrete DEFault OPEN Remarks...

Page 198: ...The query returns COUT or CINP SYSTem RESet Syntax SYSTem RESet Description Powers on the system again SYSTem SETup Syntax SYSTem SETup setup SYSTem SETup Description Sends or reads the data stream o...

Page 199: ...2HOur 5HOur OFF OFF Remarks After the oscilloscope enters the idle state and holds for a specified period of time screen saver time the screen saver program will be enabled automatically When time is...

Page 200: ...loscope can communicate with a PC via the USB DEVICE interface on the rear panel PICTbridge The oscilloscope can communicate with a PictBridge printer via the USB DEVICE interface on the rear panel Re...

Page 201: ...er Name Type Range Default bool Bool 1 ON 0 OFF 0 OFF Remarks Only when the horizontal time base mode is Y T refer to the TIMebase MODE command and the pass fail test function is disabled refer to the...

Page 202: ...urrent main time base 500 ns div Return Format The query returns the horizontal time base of the delayed sweep in scientific notation TIMebase HREF MODE Syntax TIMebase HREF MODE href TIMebase HREF MO...

Page 203: ...e query returns an integer between 350 and 350 TIMebase MODE Syntax TIMebase MODE mode TIMebase MODE Description Sets or queries the horizontal time base mode Parameter Name Type Range Default mode Di...

Page 204: ...ime base mode is X Y refer to the TIMebase MODE command or queries the on off status of the display of the XY1 area Parameter Name Type Range Default bool Bool 1 ON 0 OFF 1 ON Return Format The query...

Page 205: ...rent memory depth of the oscilloscope refer to the ACQuire MDEPth command SamplingRate is the current sample rate of the oscilloscope refer to the ACQuire SRATe command TimeScale is the horizontal tim...

Page 206: ...ax TRIGger COUPling couple TRIGger COUPling Description Sets or queries the trigger coupling type Parameter Name Type Range Default couple Discrete DC AC LFReject HFReject DC Remarks DC allows DC and...

Page 207: ...Format The query returns the trigger holdoff time in scientific notation TRIGger MODE Syntax TRIGger MODE mode TRIGger MODE Description Sets or queries the trigger type Parameter Name Type Range Defa...

Page 208: ...ates the normal trigger In this trigger mode only when the specified trigger condition is found will the oscilloscope perform a trigger and data acquisition SINGle indicates the single trigger In this...

Page 209: ...00 20000 33300 50000 62500 83300 100000 125000 250000 500000 800000 1000000 USER 10000 Remarks When baud is set to USER you can use the TRIGger CAN BUSer command to self define the signal rate of CAN...

Page 210: ...OVER TRIGger CAN LEVel Syntax TRIGger CAN LEVel level TRIGger CAN LEVel Description Sets or queries the trigger level of CAN trigger The unit is the same as the current amplitude unit of the source ch...

Page 211: ...is within the range of the bit time The oscilloscope samples the bit level at the sample point The sample point position is expressed as the ratio of time from the bit start to the sample point to bit...

Page 212: ...t cond Discrete SOF EOF FTYPe FERRor SOF Remarks SOF indicates start of frame It indicates that the oscilloscope triggers at the start of a data frame EOF indicates end of frame It indicates that the...

Page 213: ...n Wherein VerticalScale is the vertical scale of the source channel refer to the CHANnel n SCALe command Offset is the vertical position of the source channel refer to the CHANnel n OFFSet command Ext...

Page 214: ...of the input signal meets the preset trigger level Return Format The query returns POS NEG or RFAL TRIGger EDGe SOURce Syntax TRIGger EDGe SOURce source TRIGger EDGe SOURce Description Sets or queries...

Page 215: ...r ADATa refer to the TRIGger IIC WHEN command Parameter Name Type Range Default address Integer Refer to Remarks 1 Remarks The value of address is related to the current address width set to n refer t...

Page 216: ...nnel refer to the CHANnel n OFFSet command 0 Return Format The query returns the trigger level in scientific notation TRIGger IIC DATA Syntax TRIGger IIC DATA data TRIGger IIC DATA Description Sets or...

Page 217: ...e Offset to 6 x VerticalScale Offset relative to the vertical center of the screen Wherein VerticalScale is the vertical scale of the data line source channel refer to the CHANnel n SCALe command Offs...

Page 218: ...RESTart indicates that the oscilloscope triggers when another start condition occurs before a stop condition STOP indicates that the oscilloscope triggers when the clock line is high level and the dat...

Page 219: ...he range of level is related to the type of the source channel Analog channel CH1 CH4 The range of level is from 6 x VerticalScale Offset to 6 x VerticalScale Offset relative to the vertical center of...

Page 220: ...ates low level lower than the trigger level of the channel X ignores this channel which indicates that you can ignore the state of this channel when judging the pattern If the patterns of all the chan...

Page 221: ...center of the screen Wherein VerticalScale is the vertical scale of the source channel refer to the CHANnel n SCALe command Offset is the vertical position of the source channel refer to the CHANnel...

Page 222: ...can also be selected as the trigger source Return Format The query returns CHAN1 CHAN2 CHAN3 CHAN4 or EXT TRIGger PULSe UWIDth Syntax TRIGger PULSe UWIDth uwidth TRIGger PULSe UWIDth Description Sets...

Page 223: ...f the input signal is greater than the specified pulse width refer to the TRIGger PULSe LWIDth command NLESs indicates that the oscilloscope triggers when the negative pulse width of the input signal...

Page 224: ...to 6 x VerticalScale Offset relative to the vertical center of the screen Wherein VerticalScale is the vertical scale of the source channel refer to the CHANnel n SCALe command Offset is the vertical...

Page 225: ...the trigger level in scientific notation TRIGger RUNT POLarity Syntax TRIGger RUNT POLarity polarity TRIGger RUNT POLarity Description Sets or queries the polarity of Runt trigger Parameter Name Type...

Page 226: ...width of the runt i g lower limit of the pulse width refer to the TRIGger RUNT WLOWer command and smaller than the current maximum width of the runt i g upper limit of the pulse width refer to the TR...

Page 227: ...r RUNT WHEN command Parameter Name Type Range Default width Discrete The range of width is from 4 ns to 4 s when the trigger condition is LESS The range of width is from 12 ns to 4 s when the trigger...

Page 228: ...to 65535 2 Return Format The query returns an integer between 1 and 65535 TRIGger NEDGe IDLE Syntax TRIGger NEDGe IDLE idle TRIGger NEDGe IDLE Description Sets or queries the idle time for the Nth edg...

Page 229: ...e Nth Edge trigger Parameter Name Type Range Default slope Discrete POSitive NEGative POSitive Remarks POSitive indicates that the oscilloscope triggers at the crosspoint between the rising edge of th...

Page 230: ...ange Default baud Discrete 2400 4800 9600 19200 38400 57600 115200 230400 460800 921600 1000000 USER 9600 Remarks When baud is set to USER you can use the TRIGger RS232 BUSer command to self define th...

Page 231: ...Sets or queries the trigger level of RS232 trigger The unit is the same as the current amplitude unit of the source channel Parameter Name Type Range Default level Real The range of level is from 6 x...

Page 232: ...s or queries the source channel of RS232 trigger Parameter Name Type Range Default source Discrete CHANnel1 CHANnel2 CHANnel3 CHANnel4 CHANnel1 Remarks Channels that are not currently turned on can al...

Page 233: ...d check mode of RS232 trigger and use the TRIGger RS232 STOP command to set the stop bit of RS232 trigger When cond is PARity you can use the TRIGger RS232 PARity command to set the even odd check mod...

Page 234: ...VerticalScale Offset relative to the vertical center of the screen Wherein VerticalScale is the vertical scale of the source channel refer to the CHANnel n SCALe command Offset is the vertical positio...

Page 235: ...imit of the trigger level in scientific notation TRIGger SLOPe SOURce Syntax TRIGger SLOPe SOURce source TRIGger SLOPe SOURce Description Sets or queries the source channel of Slope trigger Parameter...

Page 236: ...eater than the current time lower limit refer to the TRIGger SLOPe TLOWer command Return Format The query returns the timer upper limit in scientific notation TRIGger SLOPe WHEN Syntax TRIGger SLOPe W...

Page 237: ...command Return Format The query returns PGR PLES NGR NLES PGL or NGL TRIGger SLOPe WINDow Syntax TRIGger SLOPe WINDow window TRIGger SLOPe WINDow Description Sets or queries the vertical window type...

Page 238: ...source channel Parameter Name Type Range Default level Real The range of level is from 6 x VerticalScale Offset to 6 x VerticalScale Offset relative to the vertical center of the screen Wherein Vertic...

Page 239: ...o 2n 1 Return Format The query returns an integer TRIGger SPI DLEVel Syntax TRIGger SPI DLEVel level TRIGger SPI DLEVel Description Sets or queries the trigger level of the data signal of SPI trigger...

Page 240: ...of the clock line of SPI trigger Parameter Name Type Range Default source Discrete CHANnel1 CHANnel2 CHANnel3 CHANnel4 CHANnel1 Remarks Channels that are not currently turned on can also be selected a...

Page 241: ...the vertical scale of the CS line source channel refer to the CHANnel n SCALe command Offset is the vertical position of the CS line source channel refer to the CHANnel n OFFSet command 0 Return Forma...

Page 242: ...I WHEN Description Sets or queries the trigger condition of SPI trigger Parameter Name Type Range Default cond Discrete CS TIMeout TIMeout Remarks CS The oscilloscope starts to search for the data to...

Page 243: ...ete CHANnel1 CHANnel2 CHANnel3 CHANnel4 CHANnel2 Remarks Channels that are not currently turned on can also be selected as the trigger source Return Format The query returns CHAN1 CHAN2 CHAN3 or CHAN4...

Page 244: ...ine source channel refer to the CHANnel n OFFSet command 0 Return Format The query returns the trigger level in scientific notation TRIGger USB PLEVel Syntax TRIGger USB PLEVel level TRIGger USB PLEVe...

Page 245: ...meter Name Type Range Default cond Discrete SOP EOP RC SUSPend EXITsuspend SOP Remarks SOP indicates Start of Packet The oscilloscope triggers at the sync bit of SOP EOP indicates End of Packet The os...

Page 246: ...o the vertical center of the screen Wherein VerticalScale is the vertical scale of the source channel refer to the CHANnel n SCALe command Offset is the vertical position of the source channel refer t...

Page 247: ...ne You can use the TRIGger VIDeo LINE command to specify the line number ODDField indicates the odd field The oscilloscope triggers on the rising edge of the first ramp waveform pulse in the odd field...

Page 248: ...CHANnel4 CHANnel1 Remarks Channels that are not currently turned on can also be selected as the trigger source Return Format The query returns CHAN1 CHAN2 CHAN3 or CHAN4 TRIGger VIDeo STANdard Syntax...

Page 249: ...or 10000000 TRIGger FLEXray LEVel Syntax TRIGger FLEXray LEVel level TRIGger FLEXray LEVel Description Sets or queries the trigger level of FlexRay trigger The unit is the same as the current amplitud...

Page 250: ...CHAN4 TRIGger FLEXray WHEN Syntax TRIGger FLEXray WHEN cond TRIGger FLEXray WHEN Description Sets or queries the trigger condition of FlexRay trigger Parameter Name Type Range Default cond Discrete FR...

Page 251: ...e WAVeform MODE command the definition of each parameter is different The definitions of the parameters in NORMAL and RAW modes are as shown in Figure 2 1 and Figure 2 2 Figure 2 1 Parameter Definitio...

Page 252: ...pplicable to reading waveform data in the internal memory refer to the WAVeform MODE command WAVeform DATA Syntax WAVeform DATA Description Queries the waveform data in the buffer Remarks You can use...

Page 253: ...TMC data block header is 9XXXXXXXXX and the 9 digit data XXXXXXXXX following it denotes the length of the data stream in bytes The TMC data block header is followed by the waveform data ASCii format...

Page 254: ...or queries the return format of the waveform data Parameter Name Type Range Default format Discrete WORD BYTE ASCii BYTE Remarks WORD Each waveform point corresponds to 2 byte 16 bit waveform data Th...

Page 255: ...besides you cannot operate the oscilloscope during the reading process When the source channel of waveform data reading is set to MATH or FFT refer to the WAVeform SOURce command only the waveform da...

Page 256: ...n other modes xincrement indicates the time difference in scientific notation between two neighboring points in the X direction Refer to the WAVeform XINCrement command xorigin indicates the start tim...

Page 257: ...mory cannot be read in this mode Return Format The query returns CHAN1 CHAN2 CHAN3 CHAN4 MATH or FFT WAVeform STARt Syntax WAVeform STARt start WAVeform STARt Description Sets or queries the start pos...

Page 258: ...d to the current waveform data reading mode refer to the WAVeform MODE command NORMal mode 1 to 1400 RAW mode 1 to the current maximum memory depth MAXimum mode 1 to the number of effective points cur...

Page 259: ...mode refer to the WAVeform MODE command NORMal mode the start time of the waveform currently displayed on the screen RAW mode the start time of the waveform in the internal memory MAX mode the start t...

Page 260: ...e relations among three parameters YORigin VerticalOffset VerticalScale x 32 Wherein YORigin is the vertical position relative to the vertical reference position in the Y direction VerticalOffset is t...

Page 261: ...mming Example LabVIEW Programming Example MATLAB Programming Example Visual Basic 6 0 Programming Example Visual C 6 0 Programming Example Programming Preparations Before programming you need to prepa...

Page 262: ...C 6 0 Excel Programming Example Software used in this example Microsoft Excel 2010 Function realized in this example sending the IDN command and reading the instrument information 1 Open a new Macro...

Page 263: ...3 Click the Developer tab and select the Visual Basic option to open the Microsoft Visual Basic 4 Click Tools in the Microsoft Visual Basic menu bar and select References Select VISA Library in the po...

Page 264: ...ur PC has installed the NI VISA library 2 Click Browse then select the path C WINDOWS system32 and search the filename visa32 dll as shown in the figure below 5 Click View in the Microsoft Visual Basi...

Page 265: ...g 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 Besides when you need to view or modi...

Page 266: ...RIGOL Chapter 3 Programming Examples 3 6 DS4000E Programming Guide...

Page 267: ...form data of CH1 on the screen 1 Run LabVIEW 8 2 and then create a VI file named Demo_LabVIEW 2 Add the VISA resource name and Waveform Graph controls as shown in the figure below 3 Open the Block Dia...

Page 268: ...last reads the waveform data on the screen Waveform data is read through the VISA Read function which requires users to input the total number of bytes to be read In this example the total number of b...

Page 269: ...ta into array format using the String To Byte Array to display the waveform data on the Waveform Graph control and then remove the TMC data header using the Array Subset function 8 The complete progra...

Page 270: ...RIGOL Chapter 3 Programming Examples 3 10 DS4000E Programming Guide...

Page 271: ...set the length of the input buffer to 2048 DS4000E visa ni USB0 0x1AB1 0x04B1 DS4A0000000001 INSTR DS4000E InputBufferSize 2048 Open the created VISA object fopen DS4000E Read the waveform fprintf DS...

Page 272: ...er 3 Programming Examples 3 12 DS4000E Programming Guide 3 Save the M file to the current path In this example the M file is named as Demo_MATLAB m Run the M file and the running results are displayed...

Page 273: ...CH4 respectively Add four Labels Label1 0 Label1 1 Label1 2 and Label1 3 to represent the statuses of CH1 to CH4 respectively when the channel is enabled it displays the color of the channel when the...

Page 274: ...HAN1 DISP Chr 10 0 Acquire the status of CH1 Call viVScanf vi t strRes s32Disp CInt strRes If s32Disp 1 Then Send the setting command Call viVPrintf vi CHAN1 DISP 0 Chr 10 0 Label1 0 ForeColor H808080...

Page 275: ...elect Code Generation from the Category drop down list box in the C C tab select Debug Multithreaded DLL from the Use run time library drop down list box Click OK to close the dialog box 3 Click Proje...

Page 276: ...NT lib msc Click OK to close the dialog box By now VISA library has been added 5 Add Static Text Combo Box Button and Edit Box controls The layout interface for adding controls is as follows 6 Modify...

Page 277: ...library in the header file and then add the following codes ViSession defaultRM vi char buf 256 0 CString s strTemp char stringTemp ViChar buffer VI_FIND_BUFLEN ViRsrc matches buffer ViUInt32 nmatche...

Page 278: ...Temp Read the results viScanf vi t n buf Display the results UpdateData TRUE m_receive buf UpdateData FALSE viClose vi viClose defaultRM 9 Save compile and run the project to obtain a single exe file...

Reviews: