Programming Manual
MSO/UPO2000 Series Digital Phosphor Oscilloscope
Page 1: ...Programming Manual MSO UPO2000 Series Digital Phosphor Oscilloscope...
Page 2: ...itten permission of UNI T this manual cannot photocopied reproduced or adapted Product Certification UNI T has certified that the product conforms to China national product standard and industry produ...
Page 3: ...parameter settings The command keyword is separated by spaces from the first parameter The command string must end with a newline NL character Add the question mark after the command line It is usual...
Page 4: ...tring sets Strings must begin and end with paired quotes it can use single or double quotation marks The quotation and delimiter can also be part of a string by typing it twice and not adding any char...
Page 5: ...settings and clear the entire error message send and receive queue buffers OPC Command format OPC OPC Functional description This command is used to force the current instruction to complete and marke...
Page 6: ...automatically set the control parameter of the instrument the automatic setting can make the best display effect for the input waveform SYSTem LOCK Command format SYSTem LOCK 1 ON 0 OFF SYSTem LOCK F...
Page 7: ...a is conform to the Appendix 2 IEEE 488 2 binary data format Return format Query returns the system setting data SYSTem LANGuage Command format SYSTem LANGuage ENGLish SIMPlifiedchinese TRADitionalchi...
Page 8: ...eter Return format Query returns the status of frequency meter 1 represets ON 0 represents OFF For example SYSTem CYMOmeter ON Turn on frequency meter SYSTem CYMOmeter Query returns 1 SYSTem CYMOmeter...
Page 9: ...G SYSTem MNUDisplay Command format SYSTem MNUDisplay 5S 10S 20S INFinite SYSTem MNUDisplay Functional description This command is used to set the menu display time INFinite represents the menu is alwa...
Page 10: ...te LAN GATEway gateway SYSTem COMMunicate LAN GATEway Functional description This command is used to setthe default gateway gateway is belong to the parameter of ASCII character string the format is x...
Page 11: ...DHCP Functional description This command is used to switch the configuration mode to automatic IP or manual IP Return format Query returns dynamic allocation mode 0 represents manual IP 1 represents a...
Page 12: ...y set based on the current status Return format Query AUTO KEEP For example SYSTem AUTO ACQuire KEEP The sampling mode keeps the automatic setting of the current status SYSTem AUTO ACQuire Query retur...
Page 13: ...KEY key LOCK 1 ON 0 OFF KEY key LOCK KEY key LED Functional description This command is used to setkey function and lock unlock function key definition and description refer to Appendix 1 Key List Re...
Page 14: ...CHANnel n COUPling Command format CHANnel n COUPling DC AC GND CHANnel n COUPling Functional description This command is used to set the channel coupling mode DC represents the AC and DC component th...
Page 15: ...1X 10X 100X 1000X CHANnel n PROBe Functional description This command is used to set the probe attenuation factor which corresponding to probe probe Self defined probe attenuation factor n 1 2 3 4 it...
Page 16: ...related to CHANnel n UNITs For example CHAN1 SCAL 20V Set the volts div scale of channel 1 to 20 V CHAN1 SCAL Query returns 2 000e001 CHAN1 SCAL UP Increase one scale based on 20 V volts div scale CHA...
Page 17: ...N1 SELect Query returns 1 it present the channel is selected TIMebase Command This command is to change the horizontal scale timebase of the current channel and horizontal position of the trigger in m...
Page 18: ...position from the center of the screen Return format Query returns offset value in scientific notation unit is s For example TIM WIND OFFS 1 Set the offset of WINDow to 1s TIM WIND OFFS Query returns...
Page 19: ...TIMebase HOLDoff Command format TIMebase HOLDoff time TIMebase HOLDoff Functional description This command is used to set trigger holdoff time which can set the range to 100ns 10s Return format Query...
Page 20: ...FUNC MATH MODE Query returns FFT FUNCtion OPERation Command format FUNCtion OPERation ADD SUBTract MULTiply DIVide FUNCtion OPERation Functional description This command is used to set functional ope...
Page 21: ...N HAMM BMAN is respectively rectangular window Hanning window Hamming window and Blacman window Return format Query returns RECTangular HANNing HAMMing BMAN For example FUNCtion SOUR1 CHAN1 Set channe...
Page 22: ...096K For example FUNCtion FFT POINts 8K Set FFT s point to 8 K FUNCtion FFT POINts Return 8 K FUNCtion FFT VTYPe Command format FUNCtion FFT VTYPe VRMS DBRMS FUNCtion FFT VTYPe Functional description...
Page 23: ...ed to set the end frequency of FFT Return format Query returns FFT the end frequency of FFT unit is Hz For example FUNCtion FFT FREQuency END 1 kHz Set the end frequency to 1 kHz FUNC FFT FREQ END Que...
Page 24: ...Return format Query returns the detection mode of real time spectrum For example FUNCtion FFT DETEction REALTime PPEAK Set the detection mode of real time spectrum to peak detection FUNCtion FFT DETEc...
Page 25: ...mum hold spectrum OFF Turn off the average spectrum PPEAK Take the maximum value within the range of each sampling point NPEAK Take the minimum value within the range of each sampling point AVERage Ta...
Page 26: ...ction RESet Reset each spectrum FUNCtion FFT MARK TYPE Command format FUNCtion FFT MARK TYPE AUTO THReshold MANUal FUNCtion FFT MARK TYPE Functional description This command is used to set mark type o...
Page 27: ...point of the spectrum marker For example FUNCtion FFT MARK POINts 20 Set mark point of of the spectrum marker to 20 FUNCtion FFT MARK POINts Query returns 20 FUNCtion FFT MARK EVENt Command format FUN...
Page 28: ...ark value Threshold voltagevalue unit is V if vertical direction is Vrms Andthe range is1 mVrms 100KVrms unit is dB if vertical direction is dBVrms And the range is 60 dB 100 dB if the unit is not mat...
Page 29: ...the upper limit cut off frequency value of filter It is suitable for high pass filter band pass filter and band limit filter Return format Query returns 1 000e003 unit is Hz For example FUNCtion SOUR1...
Page 30: ...ue without open measurement function by default it will turn on measurement and acquire the test value autommaticaally In general test result is urned in scientific notation MEASure ALL Command format...
Page 31: ...l4 MATH For example MEAS SLAV SOUR CHAN1 Select channel 1 as measuring source MEAS SLAV SOUR Return CHANnel1 MEASure PDUTy Command format MEASure PDUTy source Functional description This command is us...
Page 32: ...mple Measuring time delay with repect to rising edge MEASure NDEL CHAN1 CHAN2 MEASure PHASe Command format MEASure PHASe source1 source2 Functional description This command is used to timing measure t...
Page 33: ...Return format Query returns 2 120e000 unit is V MEASure VAMPlitude Command format MEASure VAMPlitude source Functional description This command is used to measure amplitude value of the specified cha...
Page 34: ...current channel as the default interval specifies the measuring interval take value from CYCLe DISPlay CYCLe represents integer cycle DISPlay represents full screen If there is no assigned interval t...
Page 35: ...val then DISPlay as the default Return format Query returns 3 456e002 unit is Vs MEASure OVERshoot Command format MEASure OVERshoot source Functional description This command is used to measure oversh...
Page 36: ...m CHANnel1 CHANnel2 CHANnel3 or CHANnel4 Omitting represents the current channel Return format Query returns 5 000e 005 unit is s MEASure PERiod Command format MEASure PERiod source Functional descrip...
Page 37: ...rce1 source2 Functional description This command is used to measure the time between source1 and the first rising edge of source2 source take value from CHANnel1 CHANnel2 CHANnel3 or CHANnel4 Return f...
Page 38: ...ry returns 5 000e 003 unit is s MEASure LRF Command format MEASure LRF source1 source2 Functional description This command is used to measure the time between the first rising edge of source1 and the...
Page 39: ...ifferent model mode contains EDGE edge trigger PULSe pulse width trigger VIDeo video trigger SLOPe slope trigger RUNT runt trigger WINDow over amplitude trigger DELay delay trigger TIMeout timeout tri...
Page 40: ...el ASETup Command format TRIGger LEVel ASETup Functional description This command is used to set tigger level at the vertical midpoint of signal amplitude For example TRIG LEVel ASETup Set tigger leve...
Page 41: ...r LEVel HIGH level TRIGger LEVel HIGH Functional description This command is used to set high level value of slop trigger Nuerical value of level must be set after the conversion according to the ampl...
Page 42: ...ise reject Only VIDeo is not support Return format Query returns coupling mode DC AC LF HF NOISE For example TRIGger COUPling AC Set edge trigger as AC TRIGger COUPling Query returns AC Edge Trigger T...
Page 43: ...tive NEGative TRIGger PULSe POLarity Functional description This command is used to set pulse polarity which is POSitive and NEGative Return format Query returns POSitive NEGative For example TRIGger...
Page 44: ...mat Query returns the low time limit unit is s For example TRIGger PULSe TIME LOWer 1 Set the low time limit of pulse trigger to 1s TRIGger PULSe TIME LOWer Query returns 1 000e000 Video Trigger TRIGg...
Page 45: ...assigned line For example TRIG VIDEO LINE 50 Set the assigned line of video synchronization to 50 TRIG VIDEO LINE Query returns 50 Slope Trigger TRIGger SLOPe QUALifier Command format TRIGger SLOPe Q...
Page 46: ...SLOPe TIME 1 Set the time interval of slop trigger mode to 1s TRIGger SLOPe TIME Query returns 1 000e000 TRIGger SLOPe TIME UPPer Command format TRIGger SLOPe TIME UPPer time TRIGger SLOPe TIME UPPer...
Page 47: ...IGH Set slope trigger threshold to HIGH TRIGger SLOPe THR Query returns HIGH TRIGger SLOPe RATe LOWer Command format TRIGger SLOPe RATe LOWer Functional description Set the lower limit of the current...
Page 48: ...r Query returns GREaterthan TRIGger RUNT POLarity Command format TRIGger RUNT POLarity POSitive NEGative TRIGger RUNT POLarity Functional description This command is used to set the pulse polarity of...
Page 49: ...UPPer Functional description This command is used to set the upper time limit of runt level trigger Return format Query returns the current upper time limit unit is s For example TRIGger RUNT TIME UPP...
Page 50: ...to rising edge TRIGger WINDow SLOP Query returns POS TRIGger WINDow LEVel Command format TRIGger WINDow LEVel LOW HIGH LH TRIGger WINDow LEVel Functional description This command is used to set level...
Page 51: ...el4 TRIGger DELay ARM SOURce Functional description This command is used to set focus source of delay trigger Return format Query returns CHANnel1 CHANnel2 CHANnel3 CHANnel4 For example TRIGger DELay...
Page 52: ...is command is used to set edge type of trigger source which includes POSitive rising edge and NEGative falling edge Return format Query returns NEGative POSitive For example TRIGger DELay TRIGger SLOP...
Page 53: ...ription This command is used to set the upper time limit of delay trigger Return format Query returns the current upper time limit unit is s For example TRIGger DELay TIME UPPer 1 Set the upper time l...
Page 54: ...tional description This command is used to set time interval of timeout tigger Return format Query returns the current time interval unit is s For example TRIGger TIMEOUT TIME 1 Set time interval of t...
Page 55: ...nge TRIGger DURation QUALifier Functional description This command is used to set time interval condition which includes GREaterthan greater than LESSthan less than and INRange within the range Return...
Page 56: ...DURation TIME UPPer Query returns 1 000e000 Setup Hold Trigger TRIGger SHOLd DATA SOURce Command format TRIGger SHOLd DATA SOURce CHANnel1 CHANnel2 CHANnel3 CHANnel4 TRIGger SHOLd DATA SOURce Function...
Page 57: ...ns POSitive TRIGger SHOLd PATTern Command format TRIGger SHOLd PATTern HIGH LOW TRIGger SHOLd PATTern Functional description This command is used to set pattern of setup hold trigger which includes HI...
Page 58: ...ect Command format TRIGger SHOLd SELect SOURce n TRIGger SHOLd SELect Functional description This command is used to switch the selected source SOURce n represents source n take value from 1 2 SOURce1...
Page 59: ...RIGger NEDGE TIME Query returns 1 000e000 TRIGger NEDGE VALue Command format TRIGger NEDGE VALue value TRIGger NEDGE VALue Functional description This command is used to set Nth edge value value is in...
Page 60: ...endent Return format Query returns TRACK INDependent For example CURSor MODE TRACK Set cursor mode to TRACK CURSor MODE Query returns TRACK CURSor TYPE Command format CURSor TYPE AMPlitude TIME CLOSe...
Page 61: ...uery returns cursor line A position For example CURSor CURA 50 Set manual cursor line A position to 50 CURSor CURA Query returns 50 CURSor CURB Command format CURSor CURB value CURSor CURB Functional...
Page 62: ...e Functional description Query X value at cursor B unit is determined by the amplitude unit of the currently selected channel Return format Query returns X value at the current cursor B in scientific...
Page 63: ...H UDISK optional parameter Omitting represents internal data of FLASH FLASH represents internal data UDISK represents U flash disk data For example FILE LOAD test dat REFA UDISK Load test dat waveform...
Page 64: ...ope save as 1 position of internal medium FILE SAVE wave01 dat CHANnel1 FLASH Save waveform data of channel 1 into internal medium FILE SAVE wave01 dat CHANnel1 Save waveform data of channel 1 into in...
Page 65: ...represents the recording waveform is started RECord FAST Command format RECord FAST 1 ON 0 OFF RECord FAST Functional description This command is used to turn on off quick recording waveform Return f...
Page 66: ...nd is used to set play delay time of recording waveform Return format Query returns play delay time of recording waveform in scientific notation unit is s For example RECord PLAY DELay 20ms Set play d...
Page 67: ...set or query Pass Fail test function ON or OFF Return format Query returns 1 or 0 it respectively represents ON or OFF For example PF ENABle ON Turn on Pass Fail test function PF ENABle Query returns...
Page 68: ...al description This command is used to set or query stop type of Pass Fail test PCOUNT represents the number of pass FCOUNT represents the number of fail Return format Query returns PCOUNT FCOUNT For...
Page 69: ...o set or query the template source of Pass fail test Physical channel CHANnel1 CHANnel2 CHANnel3 CHANnel4 can be template source If template source set to REF it can use instruction PF TEMPlate LOAD t...
Page 70: ...to set or query the vertical tolerance of template setting of Pass fail test value vertical tolerance range is 1 100 the specified range will self adapting according to the oscilloscope Return format...
Page 71: ...used to set the number of average sampling mode count stepped as Nth power of 2 take value form 2 8192 1 N 30 Return format Query returns the current number of average sampling mode For example ACQ AV...
Page 72: ...diplay format of sampling point which is VECTors vector display DOTS direct display Return format Query returns VECTors DOTS For example DISPlay FORMat VECT Set diplay format of sampling point to VECT...
Page 73: ...100ms 200ms 500ms 1s 2s 5s 10s 20s INFinite For example DISPlay GRAD TIME 50ms Set the persistence time to 50ms DISPlay GRAD TIME Query returns 50ms DISPlay COLOR Command format DISPlay COLOR 1 ON 0...
Page 74: ...clear and refresh the waveform on the screen If there is reference waveform then clear and refresh the reference waveform DISPlay TYPE Command format DISPlay TYPE XY12 XY13 XY14 XY23 XY24 XY34 YT DIS...
Page 75: ...ult waveform data format is AD waveform point data BYTE Return AD data a waveform data takes a byte that is 8 bits WORD Return AD data a waveform data takes two bytes that is 16 bits low 8 bits is val...
Page 76: ...orm SOURce Command format WAVeform SOURce CHANnel n MATH WAVeform SOURce Functional description This command is used to set the signal source of waveform data is to be queried If this command is not s...
Page 77: ...ta display on the screen WAVeform FORMat BYTE Return format of waveform data is AD single byte mode WAVeform DATA Acquire waveform data Obtain internal waveform data flow this flow can only valid in s...
Page 78: ...tion Yor Y direction relative to Zero position of YREF Yref Reference value in Y direction channel zero level ADC value For example WAVeform PREamble Return 1 0 0 1 8 000e 009 6 000e 006 0 4 000e 002...
Page 79: ...eference time benchmark query returns 0 For example WAV XREF Query returns 0 WAVeform YINCrement Command format WAVeform YINCrement Functional description This command is used to query the unit of vol...
Page 80: ...Return format Query returns the reference position it is integer type For example WAV YREF Query returns 128 SBUS Command This command is used to set RS232 SPI I2C CAN CANFD USB LIN and FlexRay bus de...
Page 81: ...II BINary HEX DEC For example SBUS BASE BIN Set bus decoding to binary display format SBUS BASE Query returns BINary SBUS EVENt Command format SBUS EVENt 1 ON 0 OFF SBUS EVENt Functional description T...
Page 82: ...ertical position value of the oscilloscope Parameter is integer step is 6 range is 160 160 The center of screen is zero point up is positive down is negative Return format Query returns vertical posit...
Page 83: ...er Functional description This command is used to set RS232 bus decoding bit order of the oscilloscope which includes LSBFirst and MSBFirst Return format Query returns LSBFirst MSBFirst For example SB...
Page 84: ...POSitive SBUS RS232 POLarity Query returns POSitive SBUS RS232 PARity Command format SBUS RS232 PARity EVEN ODD NONE SBUS RS232 PARity Functional description This command is used to set RS232 bus pari...
Page 85: ...of the oscilloscope Binary character data presented by parameter 0 or 1 its range is related to the value set by instruction SBUS RS232 DATA BIT which is 0 2 databit 1 Return format Query returns bina...
Page 86: ...S I2C DATA SOURce Command format SBUS I2C DATA SOURce CHANnel1 CHANnel2 CHANnel3 CHANnel4 Dx SBUS I2C DATA SOURce Functional description This command is used to set I2C bus data source of the oscillos...
Page 87: ...inary 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 SBUS I2C ASIZe which is 0 2 addressbit 1 Return format...
Page 88: ...QUALifier STARt RESTart STOP LOSS ADDRess DATA ADATA SBUS I2C QUALifier Functional description This command is used to set I2C bus trigger condition of the oscilloscope Return format Query returns ST...
Page 89: ...US SPI MOSI SOURce CHANnel1 CHANnel2 CHANnel3 CHANnel4 Dx OFF SBUS SPI MOSI SOURce Functional description This command is used to set SPI bus master input slaver output source of the osciolloscope Dx...
Page 90: ...ity NEGative POSitive SBUS SPI CLOCk POLarity Functional description This command is used to set SPI bus clock polarity of the oscilloscope which includes POSitive and NEGative Return format Query ret...
Page 91: ...et SPI bus data frame length of the osciolloscope len is integer data and the range is 1 32 data width data frame length cannot exceed 128 bits data Return format Query returns SPI bus data frame leng...
Page 92: ...IMeout Functional description This command is used to set SPI bus trigger timeout of the oscilloscope parameter is integer vlaue equal to n 4ns and value not exceed range 100ns 1s n take value from 25...
Page 93: ...returns CANH SBUS CAN SIGNal BAUDrate Command format SBUS CAN SIGNal BAUDrate baudrate SBUS CAN SIGNal BAUDrate Functional description This command used to set baud rate of CAN bus signal of the oscil...
Page 94: ...ery returns ERRor SBUS CAN ID MODE Command format SBUS CAN ID MODE STANdard EXTended SBUS CAN ID MODE Functional description This command is used to set ID identifier frame format of CAN bus of the os...
Page 95: ...ection Query returns READ SBUS CAN DATA LEN Command format SBUS CAN DATA LEN length SBUS CAN DATA LEN Functional description This command is used to set trigger data length of CAN bus of the oscillosc...
Page 96: ...ope Dx It presents the oscilloscope has LA function and it can set D0 D15 channel as thebus decoding source Return format Query returns CHANnel1 CHANnel2 CHANnel3 CHANnel4 Dx For example SBUS CANFD SO...
Page 97: ...baud rate of the oscilloscope baudrate rang is 250000 8000000 uni is bps Return format Query returns signal baud rate For example SBUS CANFD FD BAUDrate 250000 Set CAN FD bus FD signal baud rate to 2...
Page 98: ...scilloscope Return format Query returns STANdard EXTended FD_STD FD_EXT For example SBUS CANFD ID MODE STANdard Set ID identifier frame format of CAN FD bus to STANdard SBUS CANFD ID MODE Query return...
Page 99: ...FD DATA LEN Query returns 2 SBUS CANFD DATA Command format SBUS CANFD DATA string SBUS CANFD DATA Functional description This command is used to set DATA of CAN FD bus of the oscilloscope Binary chara...
Page 100: ...t is integer data type and the range is 0 63 Return format Query returns byte offset For example SBUS CANFD DATA OFFSet 8 Set CAN FD bus DATA byte offset to 8 SBUS CANFD DATA OFFSet Query returns 8 LI...
Page 101: ...is command is used to set LIN bus version of the oscilloscope VER1 VER2 ANY V1 x version V2 x version and random version Return format Query returns VER1 VER2 ANY For example SBUS LIN VERSion VER1 Set...
Page 102: ...d to set LIN bus ID whether set data length of the oscilloscope which can set to ON yes or OFF no Return format Query returns 1 or 0 it respectively represents ON of OFF For example SBUS LIN DATA LENG...
Page 103: ...ed to set LIN bus indetifier data of the oscilloscope Binary character data presented by parameter 0 1 or X X represents uncertainty Its range is 0x0 0Xff Return format Query returns binary character...
Page 104: ...ERRor TYPE Functional description This command is used to set error type of LIN bus trigger condition of the oscilloscope SYNC PARity SUM synchronization ID parity bit checksum Return format Query ret...
Page 105: ...escription This command is used to set FlexRay bus channel type Return format Query returns A B For example SBUS FR CHANnel TYPE A Set FlexRay channel type to A SBUS FR CHANnel TYPE Query returns A SB...
Page 106: ...FlexRay bus trigger indicator bit type of the oscilloscope NORMal STATIC NULL SYNC START normal 01XX static load 11XX null 00XX synchronization XX10 start XX11 Return format Query returns NORMal STATI...
Page 107: ...CRC Functional description This command is used to set header CRC in FlexRay bus trigger condition Binary character data presented by parameter 0 1 or X X represents uncertainty Data bit is 11bits an...
Page 108: ...bus trigger data length of the oscilloscope It can take value from 1 16 Return format Query returns FlexRay bus trigger data length of the oscilloscope it is integer data For example SBUS FR DATA LEN...
Page 109: ...t Functional description This command is used to set FlexRay bus DATA byte offset of the oscilloscope Byte offset is turned on by default when using this instruction offset byte offset it is integer d...
Page 110: ...TATIC NULLDYNAMIC SYNC START For example SBUS FR ERRor TYPE SYNC Set FlexRay bus trigger condition error type to synchronization SBUS FR ERRor TYPE Query returns SYNC AWG Command This command is used...
Page 111: ...Ble 1 ON 0 OFF AWG CHANnel n LIMit ENABle Functional description This command is used to turn on off the amplitude limit of the specified channel n channel number n take value from 1 2 Return format Q...
Page 112: ...Query returns 2e 0 AWG CHANnel n AMPLitude UNIT Command format AWG CHANnel n AMPLitude UNIT VPP VRMS DBM AWG CHANnel n AMPLitude UNIT Functional description This command is used to set output amplitud...
Page 113: ...el For example AWG CHANnel1 BASE WAVe SINe Set the fundamental wave type of channel 1 to sibe wave AWG CHANnel1 BASE WAVe Query returns SINe AWG CHANnel n BASE FREQuency Command format AWG CHANnel n B...
Page 114: ...PERiod Functional description This command is used to set output period of the specified channel period represents period unit is s If it is sine wave the range is the current allowed maximum time 1e3...
Page 115: ...ample AWG CHANnel1 BASE OFFSet 2 Set DC offset of channel 1 to 2 V AWG CHANnel1 BASE OFFSet Query returns 2e 0 AWG CHANnel n BASE HIGH Command format AWG CHANnel n BASE HIGH voltage AWG CHANnel n BASE...
Page 116: ...range is 0 100 n channel number n take value from 1 2 Return format Query returns output duty cycle of the specified channel signal For example AWG CHANnel1 BASE DUTY 20 Set output duty cycle of chann...
Page 117: ...n This command is used to set output falling 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 Return format Que...
Page 118: ...ency Command format AWG CHANnel n MODulate FREQuency freq AWG CHANnel n MODulate FREQuency Functional description This command is used to set modulating frequency of the specified channel signal freq...
Page 119: ...cified channel in scientific notation For example AWG CHANnel n FM FREQuency DEV 2000 Set frequency deviation of channel 1 to 2 kHz AWG CHANnel n FM FREQuency DEV Query returns 2e 3 AWG CHANnel n ARB...
Page 120: ...ding signal source n channel number n take value from 1 2 filename represents the file name the name must be character string data type with double quotation marks such as test bsv Return format Query...
Page 121: ...d in channel 1 loading signal source AWG CHANnel1 ARB IND Query returns 2 AWG CHANnel n MODulate ARB Command format AWG CHANnel n ARB filename AWG CHANnel n ARB Functional description This command is...
Page 122: ...WG WARB n MODulate Command format AWG WARB n MODulate arb file Functional description This command is used to write modulating arbitrary wave the maximum wave data is 8k points Send this instruction f...
Page 123: ...to set or query the currently active channel or channel group Dx D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 D12 D13 D14 D15 Return format Query returns the currently active channel For example LA ACTive D...
Page 124: ...ommand format LA DIGital n POSition position LA DIGital n POSition Functional description This command is used to set or query the display position of the specified digital channel waveform on the scr...
Page 125: ...o turn on off the specified default channel group or query the status of the specified default channel group n integer number 1 2 1 represents D0 D7 and 2 represents D8 D15 Return format Query returns...
Page 126: ...er error zero offset when use the oscilloscope to operating autual measuring Zero offset is defined as the offset of the intersection of the waveform and the threshold level line with respect to the t...
Page 127: ...LA GROup n APPend Command format LA GROup n APPend digital0 digital1 digital15 Functional description This command is used to add channel for the specified custom group n integer number 1 4 it respect...
Page 128: ...EC WAV For example LA BUS1 BASE BIN Set LA bus 1 decoding display in binary format LA BUS1 BASE Query returns BINary LA BUS n EVENt Command format LA BUS n EVENt 1 ON 0 OFF LA BUS n EVENt Functional d...
Page 129: ...Command format LA BUS n SLOPe POSitive NEGative LA BUS n SLOPe Functional description This command is used to set edge type of clock channel when the oscilloscope s LA bus sampling the data channel n...
Page 130: ...and format LA BUS n NREJect 1 ON 0 OFF LA BUS n NREJect Functional description This command is used to turn on off LA bus parallel decoding noise reject function of the oscilloscope n integer data 1 2...
Page 131: ...Nnel1 LA bus 1 channel source selects D0 D3 and channe 1 LA BUS1 SOURce Query returns D0 D3 CHANnel1 BODe Command This command is used to set bode diagram function It is only valid if the oscilloscope...
Page 132: ...ENt DATA Query returns bode diagram event list data 9000000727BODE index Freq AMP Vpp Gain dB Phase 1 3 700000e 03 3 000000e 00 1 039986e 02 8 887821e 01 2 8 784684e 03 3 000000e 00 9 819112e 01 7 619...
Page 133: ...BODe SWEep FREQuency END Command format BODe SWEep FREQuency END freq BODe SWEep FREQuency END Functional description Set sweep cut off frequency of bode diagram Return format Query returns cut off f...
Page 134: ...ption This command is used to set DC offset of bode diagram source offset can take value from 0V 1V Return format Query returns DC offset of bode diagram source unit is V For example BODe SOURce OFFSe...
Page 135: ...T output channel of bode diagram Return format Query returns CHANnel1 CHANnel2 CHANnel3 CHANnel4 For example BODe DUT OUTPut CHANnel1 Set DUT output channel of bode diagram to channel 1 BODe DUT OUTPu...
Page 136: ...am unit is dB For example BODe GAIN OFFSet 10 Set gain offset of bode diagram to 10 dB BODe GAIN OFFSet Query returns 1 000e001 BODe PHASe DISPlay Command format BODe PHASe DISPlay 1 ON 0 OFF BODe PHA...
Page 137: ...phase offset of bode diagram to 10 BODe PHASe OFFSet Query returns 1 000e001 BODe DISPlay AUTO Command format BODe DISPlay AUTO Functional description This command is used to set automatic display of...
Page 138: ...ram 0 represents cursor function isnot open 1 represents cursor function is opened For example BODe CURSor ON Turn on cursor function of bode diagram BODe CURSor Query returns 1 it represents cursor f...
Page 139: ...n know how to use VISA and it can combined with the command of programming manual to realize the control of the instrument With these examples user can develop more applications VC Example Environment...
Page 140: ...leftside set the value of Additional Library Directories as the installment path of NI VIS such as C Program Files IVI Foundation VISA WinNT include as shown in the following figure Select Linker Com...
Page 141: ...tes 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 Open Resource Manager Open VISA Session to an Instrument Wri...
Page 142: ...The format for this string can be found in the function panel by right clicking on the descriptor parameter After opening a session to the device we will get a handle to the instrument which we will...
Page 143: ...device d n i 1 else printf nDevice d s n i 1 buffer status viClose instr Now we will close the session to the instrument using viClose This operation frees all system resources status viClose default...
Page 144: ...instr idn n status viScanf instr t outputBuffer if status VI_SUCCESS printf viRead failed with error code x n status viClose defaultRM else printf nMesseage read from device s n 0 outputBuffer status...
Page 145: ...ple class Program void usbtmc_test using var rmSession new ResourceManager var resources rmSession Find USB INSTR foreach string s in resources try var mbSession MessageBasedSession rmSession Open s m...
Page 146: ...cp_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 to query the device info...
Page 147: ...T 200 Dim defaultRM AsLong Dim instrsesn AsLong Dim numlnstrs AsLong Dim findList AsLong Dim retCount AsLong Dim status AsLong Dim instrResourceString AsString VI_FIND_BUFLEN Dim Buffer AsString MAX_C...
Page 148: ...esourceString VI_NULL VI_NULL instrsesn If status VI_SUCCESS Then resultTxt Text Cannot open a session to the device CStr i 1 GoTo NextFind EndIf At this point we now have a session open to the USB TM...
Page 149: ...o the VISA Resource Manager tcp_ip_test status ExitFunction EndIf Now we will open a session via TCP IP device status viOpen defaultRM TCPIP0 ip inst0 INSTR VI_LOAD_CONFIG VI_NULL instrsesn If status...
Page 150: ...ram 3 Open diagram press VISA resource name and then select and add function VISA Write VISA Read VISA Open and VISA Close on pop out menu 4 VI open a VISA session of USBTMC device and wrote IDN comma...
Page 151: ...easurement Class USBTMC instrument using NI VISA Create a VISA USB object connected to a USB instrument vu visa ni USB0 0x5345 0x1234 SN20220718 INSTR Open the VISA object created fopen vu Send the st...
Page 152: ...the device information Steps 1 Install python firs and then turn on Python script compiling software create an empty test py file 2 Use pip install PyVISA instruction to install PyVISA if it cannot i...
Page 153: ...volts div scale of channel it can be set as the following command such as set volts div scale of channel 1 CHANnel1 SCALe 500 mV set volts div scale of channel 1 to 500 mV CHANnel1 SCALe query volts d...
Page 154: ...F Reference waveform function and menu F1 Select the first menu item of the current menu F2 Select the second menu item of the current menu F3 Select the third menu item of the current menu F4 Select...
Page 155: ...ight knob NUM0 Numeric key 0 NUM1 Numeric key 1 NUM2 Numeric key 2 NUM3 Numeric key 3 NUM4 Numeric key 4 NUM5 Numeric key 5 NUM6 Numeric key 6 NUM7 Numeric key 7 NUM8 Numeric key 8 NUM9 Numeric key 9...
Page 156: ...uni trend com 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 Length Bit Wide 1Byte Total Data Length...