background image

 

 

Programming Guide         

RIGOL

 

Publication Number: PGA04105-1110 
Oct. 2008

 

 

 

 

 

 

DS1000B Series Digital Oscilloscope 

DS1204B/DS1104B/DS1064B

 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
©  2008

 

RIGOL Technologies, Inc. All Rights Reserved 

Содержание DS1104B

Страница 1: ...Programming Guide RIGOL Publication Number PGA04105 1110 Oct 2008 DS1000B Series Digital Oscilloscope DS1204B DS1104B DS1064B 2008 RIGOL Technologies Inc All Rights Reserved...

Страница 2: ......

Страница 3: ...patent law in and outside of P R China Information in this publication replaces all previously corresponding material RIGOL Technologies Inc reserves the right to modify or change part of or all the...

Страница 4: ...ertical Commands 2 42 Horizontal Commands 2 49 Trigger Commands 2 54 Trigger Control Commands 2 54 Trigger Mode Commands 2 60 Math Commands 2 77 Waveform Commands 2 79 Utility Commands 2 88 Storage Co...

Страница 5: ...series digital oscilloscopes It includes the necessary conceptual information the command structure for the subsystems and the application cases Users can carry out the remote control to the oscillosc...

Страница 6: ...mmands in the form of ASCII character strings are embedded in your computer to make control easier The input commands of the host language are used to read responses from the oscilloscope Basic operat...

Страница 7: ...quiries have different programme datum usually But some others are not need to input the programme datum 2 Blank Space Blank space is used to separate the instruction from the program data If the comm...

Страница 8: ...to memory and spell the commands system of DS1000B especially setup the Commands Abbreviation in order to reduce your workload and the difficulty to memory The abbreviation rule is all the small lett...

Страница 9: ...tem includes the following command subsystems System Commands Keyboard Commands Measurement Commands Acquire Commands Display Commands Vertical Commands Horizontal Commands Trigger Commands Math Comma...

Страница 10: ...System Commands are used for the basic operations of an oscilloscope They can not only be used as an individual command but also in conjunction with other commands to form instructions System Commands...

Страница 11: ...erial version Example IDN Return Rigol Technologies DS1204B DS10000000 00 02 04 2 RUN Command Format RUN Function Execute this command the oscilloscope will start waveform sampling working if to stop...

Страница 12: ...veform when there is no suitable trigger condition It is mainly applicable to the Normal and Single trigger modes 6 Trig 50 Command Format Trig 50 Function The command sets the trigger level at the ve...

Страница 13: ...ther the command operation has been completed Return Format The query returns 0 or 1 1 means operation has been completed 0 means not 10 SINGLE Command Format SINGLE Function The command sets the trig...

Страница 14: ...MATH KEY CH1_POS_Z KEY REF KEY CH2_VOLT_INC KEY F1 KEY CH2_VOLT_DEC KEY F2 KEY CH2_VOLT_Z KEY F3 KEY CH2_POS_INC KEY F4 KEY CH2_POS_DEC KEY F5 KEY CH2_POS_Z KEY MNUoff KEY CH3_VOLT_INC KEY MEASure KE...

Страница 15: ...RIGOL Programming Guide for DS1000B Series 2 7 KEY TIME_POS_INC KEY TRIG_LEVEL_INC KEY TIME_POS_DEC KEY TRIG_LEVEL_DEC KEY TIME_POS_Z KEY TRIG_LEVEL_Z...

Страница 16: ...BLE Example KEY LOCK ENABle Enable remote control on the keys of front panel KEY LOCK Return ENABLE 2 KEY RUN Command Format KEY RUN Function This command controls the running state of the oscilloscop...

Страница 17: ...ommand sets channel 1 and its menu on or off 6 KEY CH2 Command Format KEY CH2 Function The command sets channel 2 and its menu on or off 7 KEY CH3 Command Format KEY CH3 Function The command sets chan...

Страница 18: ...are available then these options could be selected circularly when send repeatly the command 12 KEY F2 Command Format KEY F2 Function The command selects the second option in current menu If the subor...

Страница 19: ...15 KEY F5 Command Format KEY F5 Function The command selects the fifth option in current menu If the subordinate menu existing and its options are available then these options could be selected circul...

Страница 20: ...Quire Command Format KEY ACQuire Function The command sets acquire menu on or off 20 KEY DISPlay Command Format KEY DISPLAY Function The command sets display menu on or off 21 KEY STORage Command Form...

Страница 21: ...r off 25 KEY Trig 50 Command Format KEY Trig 50 Function This command sets the trigger level at the vertical midpoint of the amplitude of trigger signal 26 KEY TrigMODE Command Format KEY TrigMODE Fun...

Страница 22: ...nt function on or off And it could be set in Measurement menu 30 KEY QUICKPRINt Command Format KEY QUICKPRINt Function The command prints and saves the screen 31 KEY FUNC_Z Command Format KEY FUNC_Z F...

Страница 23: ...KEY CH1_VOLT_DEC Function The command increases the vertical scale of channel 1 36 KEY CH1_VOLT_Z Command Format KEY CH1_VOLT_Z Function The command sets the adjustment mode of vertical scale of chann...

Страница 24: ...Format KEY CH2_VOLT_INC Function The command decreases the vertical scale of channel 2 41 KEY CH2_VOLT_DEC Command Format KEY CH2_VOLT_DEC Function The command increases the vertical scale of channel...

Страница 25: ...tion of channel 2 evenly 45 KEY CH2_POS_Z Command Format KEY CH2_POS_Z Function The command adjusts the vertical offset of channel 2 to zero 46 KEY CH3_VOLT_INC Command Format KEY CH3_VOLT_INC Functio...

Страница 26: ...on The command increases the vertical offset of channel 3 evenly 50 KEY CH3_POS_DEC Command Format KEY CH3_POS_DEC Function The command decreases the vertical offset of channel 3 evenly 51 KEY CH3_POS...

Страница 27: ...ical scale steps by 1 2 5 in Coarse and by equality in Fine 55 KEY CH4_POS_INC Command Format KEY CH4_POS_INC Function The command increases the vertical offset of channel 4 evenly 56 KEY CH4_POS_DEC...

Страница 28: ...IME_Z Command Format KEY TIME_Z Function The command sets delayed scan function on or off 61 KEY TIME_POS_INC Command Format KEY TIME_POS_INC Function The command decreases the trigger offset to the h...

Страница 29: ...64 KEY TRIG_LEVEL_INC Command Format KEY TRIG_LEVEL_INC Function The command increases the trigger level evenly 65 KEY TRIG_LEVEL_DEC Command Format KEY TRIG_LEVEL_DEC Function The command decreases...

Страница 30: ...EASure VPP MEASure VMAX MEASure VMIN MEASure VAMPlitude MEASure VTOP MEASure VBASe MEASure VAVerage MEASure VRMS MEASure OVERshoot MEASure PREShoot MEASure FREQuency MEASure RISetime MEASure FALLtime...

Страница 31: ...paramter that must be set in the commond and indicates the parameter can be set or not set according to your demand The followings are the same don t repeat Please refer to chapter 1 Symbol Instructi...

Страница 32: ...nal from source The source may be CHANnel1 CHANnel2 CHANnel3 or CHANnel4 Return Format The query returns 5 280e000 and the unit is V 6 MEASure VTOP Command Format MEASure VTOP source Function The comm...

Страница 33: ...ns 4 200e 003 and the unit is V 9 MEASure VRMS Command Format MEASure VRMS source Function The command measures the root mean square of signal from source The source may be CHANnel1 CHANnel2 CHANnel3...

Страница 34: ...and Format MEASure FREQuency source Function The command measures the frequency of signal from source The source may be CHANnel1 CHANnel2 CHANnel3 or CHANnel4 Return Format The query returns 1 000e003...

Страница 35: ...source may be CHANnel1 CHANnel2 CHANnel3 or CHANnel4 Return Format The query returns 1 000e 003 and the unit is s 16 MEASure PWIDth Command Format MEASure PWIDth source Function The command measures...

Страница 36: ...d the unit is 19 MEASure NDUTycycle Command Format MEASure NDUTycycle source Function The command measures the negative duty cycle of signal from source The source may be CHANnel1 CHANnel2 CHANnel3 or...

Страница 37: ...ormat MEASure PPHAse source A source B Function The command measures the phase difference between sourceA and sourceB relative to the rising edge The source may be CHANnel1 CHANnel2 CHANnel3 or CHANne...

Страница 38: ...ates ON or OFF Example MEASure TOTal ON Set the total measurement function on MEASure TOTal Return 1 25 MEASure SOURce Command Format MEASure SOURce source Functions The command selects the measuremen...

Страница 39: ...ELAYSOURce CHANnel1 CHANnel2 Seleclt measuring the time delay between CH1 and CH2 MEASure DELAYSOURce Return CH1 CH2 27 MEASure PHAseSOURce Command Format MEASure PHAseSOURce source source Functions T...

Страница 40: ...o open Auto Measure NOTE Only corresponding unlock command can open AUTO and Auto Measure once they are locked neither restart nor update is available 29 MEASure DISable Command Format MEASure DISable...

Страница 41: ...gramming Guide for DS1000B Series 2 33 Acquire Commands Acquire Commands are used to set the acquisition mode for oscilloscope Acquire Commands include ACQuire TYPE ACQuire MODE ACQuire AVERages ACQui...

Страница 42: ...returns Normal or AVERAGE PEAKDETECT Example ACQuire TYPE AVERage Set the acquisition type as average acquisition ACQuire TYPE Return AVERAGE 2 ACQuire MODE Command Format ACQuire MODE mode Function...

Страница 43: ...count increases by the multiples of 2 Query Format ACQuire AVERages Return Format The query returns 2 or 4 8 16 32 64 128 256 Example ACQuire AVERages 16 Set the average acquisition time as 16 ACQuire...

Страница 44: ...splay Commands Diaplay Commands are used to set the display system Display Commands include DISPlay TYPE DISPlay GRID DISPlay PERSist DISPlay MNUDisplay DISPlay MNUStatus DISPlay SCReen DISPlay CLEar...

Страница 45: ...E Return Format The query returns VECTORS or DOTS Example DISPlay TYPE VECTors Set the display type as vectors DISPlay TYPE Return VECTORS 2 DISPlay GRID Command Format DISPlay GRID grid Function The...

Страница 46: ...mat The query returns 1 or 0 respectively indicates ON or OFF Example DISPlay PERSist ON Set waveform persist function on DISPlay PERSist Return 1 4 DISPlay MNUDisplay Command Format DISPlay MNUDispla...

Страница 47: ...icates ON or OFF Example DISPlay MNUStatus ON Set menu display function on DISPlay MNUStaus Return 1 6 DISPlay SCReen Command Format DISPlay SCReen scr Function The command sets the display mode of sc...

Страница 48: ...lay BRIGhtness Return Format The query returns 0 or 1 2 100 Example DISPlay BRIGhtness 10 Set the grid bightness as 10 DISPlay BRIGhtness Return 10 9 DISPlay INTensity Command Format DISPlay INTensity...

Страница 49: ...000B Series 2 41 10 DISPlay DATA Command Format DISPlay DATA Function The command queries image data on the current screen and the data format accords with IEEE488 2 standard The data structure is 800...

Страница 50: ...re used to set the vertical system from every channel separately Vertical Commands include CHANnel n BWLimit CHANnel n COUPling CHANnel n DISPlay CHANnel n INVert CHANnel n OFFSet CHANnel n PROBe CHAN...

Страница 51: ...r OFF Example CHANnel2 BWLimi OFF Set BW limit function of channel 2 off CHANnel2 BWLimit Return 0 2 CHANnel n COUPling Command Format CHANnel n COUPling DC AC GND Function The command sets coupling m...

Страница 52: ...ON Set channel 2 on CHANnel2 DISPlay Return 1 4 CHANnel n INVert Command Format CHANnel n INVert 1 ON 0 OFF Function The command sets waveform invert function ON the inverted waveform is display or O...

Страница 53: ...el 2 as 20V CHANnel2 OFFSet Return 2 000e 01 6 CHANnel n PROBe Command Format CHANnel n PROBe attn Function The command sets the attenuation factor of probe The n may be 1 2 3 or 4 and the attn may be...

Страница 54: ...00mV 500V Probe 100X range 200mV 1kV Probe 200X range 400mV 2kV Probe 500X range 1V 5kV Probe 1000X range 2V 10kV Query Format CHANnel n SCALe Return Format The query returns the value of vertical sca...

Страница 55: ...e event of the horizontal timebase is set as 50ms div or more slowly the instrument will turn into Slow scan mode Under this circumstance the oscilloscope will gather the datum form the left side of t...

Страница 56: ...OFF Function The command sets the adjustment mode of vertical scale as ON Fine or OFF Coarse The vertical scale steps by 1 2 5 in Coarse mode and by equality in Fine mode The n may be 1 2 3 4 Query Fo...

Страница 57: ...and horizontal offset Changing horizontal scale makes the waveform enlarge or shrink and changing horizontal position will lead the waveform offset relative to center screen Horizontal Commands inclu...

Страница 58: ...Function The command sets the timebase offset of delayed scan that is the offset of the waveform position relative to center screen In NORMAL mode offset 1s memory capacitance In STOP mode offset 500...

Страница 59: ...veform may be amplified under the width of window vary with the delayed timebase scale In NoRMAL mode different types of instruments have different sweep ranges DS1204B instrument scale_val range 1ns...

Страница 60: ...EMS memory time is 6 5 30ms Delay time is 6 2 12ms Delay Offset range 30 6 30 6 ms In MAIN mode MAIN may be omitted Query Format TIMebase MAIN OFFSet Return Format The query returns the value of time...

Страница 61: ...Mebase FORMat Command Format TIMebase FORMat vlaue Function The command sets the timebase format as XY the amplitude of channel 1 is shown in Y axis and the amplitude of channel 2 is shown in Y axis Y...

Страница 62: ...ts to acquire data firstly enough data are needed to be collected so as to shape into a waveform on the left of the trigger point The oscilloscope continues acquiring data while waiting for the trigge...

Страница 63: ...er MODE Return EDGE 2 TRIGger mode SOURce Command Format TRIGger mode SOURce source Function The command sets the trigger source as channel CH1 CH2 CH3 CH4 external trigger EXT EXT5 or AC Line The mod...

Страница 64: ...range is up to 6 Scale when channel has offset it needs to detract offset such as 1V tap positon 1V offset the trigger range is 7V 5V Query Format TRIGger mode LEVel Return Format The query returns t...

Страница 65: ...oupling mode DC Allow all signals pass AC Reject DC signals and attenuate the signal below 10Hz LF Reject DC signals and attenuate the signals below 8kHz Query Format TRIGger COUPling Return Format Th...

Страница 66: ...Doff Return 1 000e 04 7 TRIGger STATus Query Format TRIGger STATus Function The command queries the current status of the oscilloscope The status may be RUN STOP T D WAIT SCAN or AUTO Return Format Th...

Страница 67: ...SENSitivity Return 2 00e 01 9 TRIGger HFREject Command Format TRIGger HFREject 1 ON 0 OFF Function The command sets high frequency reject function on or off Query Format TRIGger HFREject Return Forma...

Страница 68: ...TRIGger ALTernation SOURce TRIGger ALTernation CURRentSOURce TRIGger ALTernation TYPE TRIGger ALTernation TimeSCALe TRIGger ALTernation TimeOFFSet TRIGger ALTernation LEVel TRIGger ALTernation EDGE S...

Страница 69: ...mand Format TRIGger EDGE SLOPe POSitive NEGative ALTernation Function The command sets the trigger edge as Positive rising edge Negative falling edge or ALTernation rising and falling edge Query Forma...

Страница 70: ...than negative pulse width greater than Lessthan negative pulse width less than or Equal negative pulse width equal Query Format TRIGger PULSe MODE Return Format The query returns GREATER THAN or LESS...

Страница 71: ...RIGOL Programming Guide for DS1000B Series 2 63 Example TRIGger PULSe WIDTh 0 001 Set the pulse width as 1ms TRIGger PULSe WIDTh Return 1 000e 03...

Страница 72: ...t TRIGger VIDEO MODE Return Format The query returns ODD FIELD ro EVEN FIELD LINE ALL LINES Example TRIGger VIDEO MODE EVENFIELD Set the trigger sync mode as even field TRIGger VIDEO MODE Return EVEN...

Страница 73: ...e query returns NTSC or PAL SECAM Example TRIGger VIDEO STANdard PALSECAM Set the video standard as PAL SECAM TRIGger VIDEO STANdard Return PAL SECAM 4 TRIGger VIDEO LINE Command Format TRIGger VIDEO...

Страница 74: ...e command selects the alternation trigger channel The source may be CH1CH2 CH1CH3 CH1CH4 CH2CH3 CH2CH4 or CH3CH4 Query Format TRIGger ALTernation SOURce Return Format The query returns CH1CH2 or CH1CH...

Страница 75: ...DGE PULSe or VIDEO and the source may be SOURceA or SOURceB and the source A and B are varying with the current alternation channel Query Format TRIGger ALTernation TYPE source Return Format The query...

Страница 76: ...unit is s Example TRIGger ALTernation TimeSCALe 0 001 SOURCeB Set the time scale as 1ms TRIGger ALTernation TimeSCALe SOURCeB Return 1 000e 03 5 TRIGger ALTernation TimeOFFSet Command Format TRIGger...

Страница 77: ...siton 1V offset the trigger range is 7V 5V Query Format TRIGger ALTernation LEVel source Return Format The query returns the value of trigger voltage level and the unit is V Example TRIGGER ALTERNATIO...

Страница 78: ...OURceB and the source A and B are varying with the current alternation channel Query Format TRIGger ALTernation PULSe MODE source Return Format The query returns GREATER THAN or LESS THAN EQUAL GREATE...

Страница 79: ...EO POLarity POSitive NEGative source Function The command sets the video polarity as Positive or Negative The source may be SOURceA or SOURceB and the source A and B are ivarying with the current alte...

Страница 80: ...STANdard SOURceB Return NTSC 12 TRIGger ALTernation VIDEO MODE Command Format TRIGger ALTernation VIDEO MODE ALLLins ODDField EVENfield LINE source Function The command sets the sync mode of alternati...

Страница 81: ...f source Return Format The query returns the value of holdoff time and the unit is s Example TRIGger HOLDoff 0 0001 SOURceA Set the holdoff time of source A as 100us TRIGger HOLDoff SOURceA Return 1 0...

Страница 82: ...nuate low frequency signals below 8kHz The source may be SOURceA or SOURceB and the source A and B are varying with the current alternation channel Query Format TRIGger ALTernation COUPling source Ret...

Страница 83: ...IGger ALTernation SENSitivity source Return Format The query returns the value of trigger sensitivity and the unit is div Example TRIGger ALTernation SENSitivity 0 1 SOURceB Set the trigger sensitivit...

Страница 84: ...the low five digits of hexadecimal number and separately indicates whether the mask code is 1 or 0 The relationship between mask and value is and if the mask of a channel is 0 which denotes this chann...

Страница 85: ...77 Math Commands Math Commands are used to display the result of adding subtracting multiplying and FFT operation for the signals from CH1 CH2 CH3 and CH4 The results can be measured by the grid and t...

Страница 86: ...Play Command Format MATH DISPlay 1 ON 0 OFF Function The command sets Math waveform on or off Query Format MATH DISPlay Return Format The query returns 1 or 0 respectively indicates ON or OFF Example...

Страница 87: ...AVeform DATA WAVeform FORMat WAVeform SOURce WAVeform WINMemsize WAVeform YINCrement WAVeform YORigin WAVeform XINCrement WAVeform XORigin WAVeform STARtofroll WAVeform ERASeofroll WAVeform WINDowzoom...

Страница 88: ...rmat WAVeform FORMat value Function The command sets the format of waveform data The value may be WORD BYTE or ASCII Difference of WORD BYTE and ASCII ASCII Datum translate into character returns ASCI...

Страница 89: ...nnel1 or Channel2 Channel3 Channel4 MATH Example WAVeform SOURce CHANnel2 Set the data source as channel 2 WAVeform SOURce Return Channel2 4 WAVeform WINMemsize Command Format WAVeform WINMemsize sour...

Страница 90: ...in source Function The command queries the vertical offset of specified soucce The source may be CHANnel1 CHANnel2 CHANnel3 CHANnel4 or MATH Return Format The query returns the value of vertical offse...

Страница 91: ...ns the value of time and the unit is s Example WAVeform XORigin CHANnel2 Return 2 00e 02 9 WAVeform STARtofroll Command Format WAVeform STARtofroll Function The command queries the start point of roll...

Страница 92: ...d the unit is pels Example WAVeform WINDowzoom Return 300 12 WAVeform SYSMemsize Command Format WAVeform SYSMemsize Function The command queries the system memory depth Return Format The query returns...

Страница 93: ...ata of specified source The source may be CHANnel1 CHANnel2 CHANnel3 CHANnel4 or MATH Return Format The query returns the value of memory data and the unit is V Example WAVeform MEMorydata CHANNEL1 Qu...

Страница 94: ...WAVeform PARAmeter para Function The command queries the system draw parameters Return Format The query returns the system draw parameters which is composed of the header of TMC 800000xxx and DSO_WAVE...

Страница 95: ...he vertical reference axis Return Format The query returns the value of reference axis Example WAVeform YREFerence Return 99 20 WAVeform DATA XY data Command Format WAVeform DATA XY data Function Requ...

Страница 96: ...0B Series 2 88 Utility Commands Utility Commands are used to set other system function such as counter system language system beep and real time clock Utility Commands include COUNter ENABle BEEP ENAB...

Страница 97: ...0 respectively indicates ON or OFF Example COUNter ENABle ON Set the counter on COUNter ENABle Return 1 2 BEEP ENABle Command Format BEEP ENABle 1 ON 0 OFF Function The command sets the system beeper...

Страница 98: ...8 08 08 08 08pm RTC Return 2008 8 8 20 8 8 5 INFO LANGuage Command Format INFO LANGuage cmd_lang Function The command sets the system language The cmd_lang may be SIMPlifiedchinese TRADitionalchinese...

Страница 99: ...o save and recall the waveform data and screen image Storage Commands include SAVERECALL TYPE SAVERECALL LOCation SAVERECALL LOAD SAVERECALL SAVE SAVE IMAGe STARt SAVE IMAGe FACTors SAVE IMAGe FORMat...

Страница 100: ...query returns WAVEFORMS or SETUPS Example SAVERECALL TYPE WAVeforms Set the storage type as waveform data SAVERECALL TYPE Return WAVEFORM 2 SAVERECALL LOCation Command Format SAVERECALL LOCation locat...

Страница 101: ...t file_spec NOTE In commands the file name must add double quotation marks Function The command saves the image The file_spec is the file name and must be ASCII characters and the length of file name...

Страница 102: ...MP8bit or PNG Example SAVE IMAGe FORMat BMP Set the format as 24 bit real color SAVE IMAGe FORMat Return BMP24bit 8 SAVE WAVeform STARt Command Format SAVE WAVeform STARt file_spec NOTE In external sa...

Страница 103: ...ength of file name must be less than 256 characters 11 RECall WAVeform STARt Command Format RECAll WAVeform STARt file_spec NOTE In external save the file name must add double quotation marks Function...

Страница 104: ...mands Mask Commad are used to create and modify the rules for pass fail test function Mask Commands include MASK CREate MASK ENABle MASK X MASK Y MASK SOURce MASK OPERate MASK OUTPut MASK STOPonoutput...

Страница 105: ...ommand sets the state of passing test as ON or OFF Query Format MASK ENABle Return Format The query returns 1 or 0 respectively indicates ON or OFF Example MASK ENABle ON Set passing test on MASK ENAB...

Страница 106: ...ormat The query returns the y value and the unit is div Example MASK Y 1 Set the Y direction rule as 1div MASK Y Return 1 000000 5 MASK SOURce Command Format MASK SOURce source Function The command se...

Страница 107: ...OPERate RUN Set the operation of passing test run MASK OPERate Return RUN 7 MASK OUTPut Command Format MASK OUTPut output Function The command sets the output mode of passing test The output may be F...

Страница 108: ...dicates ON or OFF Example MASK STOPonoutput ON Set the output stop mode of passing test on MASK STOPonoutput Return 1 9 MASK SAVE Command Format MASK SAVE Function The command saves the rule of passin...

Страница 109: ...storage equipment and the filename must be ASCII character NOTE In commands the file name must add double quotation marks 13 MASK MSG Command Format MASK MSG 1 ON 0 OFF Function The command sets the p...

Страница 110: ...ameters to measure manually and automatically and track the waveform data Cursor Commands include CURSor MODE CURSor MANUal TYPE CURSor MANUal SOURce CURSor MANUal CURAX CURSor MANUal CURAY CURSor MAN...

Страница 111: ...or MANUAL TRACK MEASURE Example CURSor MODE TRACK Set the cursor mode as track CURSor MODE Return TRACK 2 CURSor MANUal TYPE Command Format CURSor MANUal TYPE type Function The commad sets the cursor...

Страница 112: ...3 Channel4 Math Example CURSor MANUal SOURce CHANnel1 Set the curosor source of manual cursor as channel 1 CURSor MANUal SOURce Return Channel1 4 CURSor MANUal CURAX Command Format CURSor MANUal CURAX...

Страница 113: ...AY 100 Set the AY position of manual cursor as 100 CURSor MANUal CURAY Return 100 6 CURSor MANUal CURBX Command Format CURSor MANUal CURBX value Function The command sets the BX position of manual cur...

Страница 114: ...Y Return 100 8 CURSor TRACk SOURceA Command Format CURSor TRACk SOURceA source Function The command sets the signal source A of track cursor The source may be CHANnel1 CHANnel2 CHANnel3 CHANnel4 MATH...

Страница 115: ...ource B of track cursor as channel 1 CURSor TRACk SOURceB Return Channel1 10 CURSor TRACk CURA Command Format CURSor TRACk CURA value Function The command sets the position of track cursor A The value...

Страница 116: ...uide for DS1000B Series 2 108 Query Format CURSor TRACk CURB Return Format The query returns the position of cursor B Example CURSor TRACk CURB 100 Set the position of track cursor B as 100 CURSor TRA...

Страница 117: ...mmands except for above commands clear the system error information download the system setup data enable and disable the AUTO key and enable and disable the Measure key The commands include SYSTem ER...

Страница 118: ...or or else return Undefine header Example SYSTem ERRor Return 0 No error 2 SYSTem ERRor Command Format SYSTem ERRor Function Return the last error message Return Format 0 No error 3 SYSTem SETup Comma...

Страница 119: ...UToscale DISable Command Format AUTOscale DISable Function The command disables the AUTO key and forbids users setting automatically 6 AUToscale ENable Command Format AUToscale ENable Function The com...

Страница 120: ......

Страница 121: ...e Users can compare or refer to them to get further understanding for the usage of commands The contents between and before every command are explanations which intends to help users understand instea...

Страница 122: ...E TCPIP0 172 16 3 73 inst0 INSTR USB define RESOURCE USB0 6833 1160 DS1BA103700043 0 INSTR Define the equipment ID ViSession g_viDefault ViSession g_vi void main Open the equipment ID viOpenDefaultRM...

Страница 123: ...tf g_vi AUTO n Send the command CHANnel n PROBe to set the probe attenuation factor viPrintf g_vi CHAN1 PROB 10X n Send the command CHANnel n OFFSet to set the vertical offset viPrintf g_vi CHAN2 OFFS...

Страница 124: ...fSetup NULL return Make a statement for the VISA status ViStatus sta Send the command SYSTEM SETUP to save the file to buffer sta viQueryf g_vi SYSTEM SETUP n b n BUFFER_SETUP_SIZE bufSetup Judge whet...

Страница 125: ...p fopen C scope setup dat rb if fread bufSetup sizeof BYTE BUFFER_SETUP_SIZE fp BUFFER_SETUP _SIZE fclose fp return fclose fp Make a statement for VISA 32bit data type ViUInt32 ret Send the SYSTEM SET...

Страница 126: ...Make a statement for the VISA status ViStatus staDISP ViStatus sta488 ViStatus staImage Make a statement for IEEE488 2 standard data header BYTE head488 11 0 Send the DISP DATA n command to read the d...

Страница 127: ...RIGOL Programming Guide for DS1000B Series 3 7 fclose fp return fclose fp...

Страница 128: ......

Страница 129: ...n MEMoryDepth 2 47 CHANnel n UNITs2 47 CHANnel n VERNier 2 48 COUNter ENABle 2 89 CURSor MODE 2 103 CURSor MANUal TYPE 2 103 CURSor MANUal SOURce 2 103 CURSor MANUal CURAX 2 104 CURSor MANUal CURAY 2...

Страница 130: ...CH2_VOLT_DEC 2 16 KEY CH2_VOLT_Z 2 16 KEY CH2_POS_INC 2 16 KEY CH2_POS_DEC 2 17 KEY CH2_POS_Z 2 17 KEY CH3_VOLT_INC 2 17 KEY CH3_VOLT_DEC 2 17 KEY CH3_VOLT_Z 2 17 KEY CH3_POS_INC 2 18 KEY CH3_POS_DEC...

Страница 131: ...92 SAVERECALL LOCation 2 92 SAVERECALL LOAD 2 92 SAVERECALL SAVE 2 93 SAVE IMAGe STARt 2 93 SAVE IMAGe FACTors 2 93 SAVE IMAGe FORMat 2 94 SAVE WAVeform STARt 2 94 SAVE SETup STARt 2 94 SAVE CSV STAR...

Страница 132: ...E 2 73 TRIGger ALTernation COUPling 2 74 TRIGger ALTernation SENSitivity 2 74 TRIGger PATTern PATTern 2 76 W WAVeform DATA 2 80 WAVeform FORMat 2 80 WAVeform SOURce 2 81 WAVeform WINMemsize 2 81 WAVef...

Отзывы: