background image

Programming Manual                                                                                                                                                                                  MSO/UPO2000 Series 

  98 / 156 

Instruments.uni-trend.com

 

:SBUS:CANFD:FRAMe:TYPE 

 

Command format

 

:SBUS

:CANFD

:FRAMe:TYPE    { DATA | REMote | OVERload | ERRor } 

:SBUS

:CANFD

:FRAMe:TYPE? 

 

Functional description

 

This command is used to set CAN-FD bus trigger frame type. 

 

Return format

 

Query returns { DATA | REMote | OVERload | ERRor }.

 

 

For example

 

:SBUS

:CANFD

:FRAMe:TYPE ERRor   

 

 

Set CAN-FD bus trigger frame type to ERRor. 
:SBUS

:CANFD

:FRAMe:TYPE?             

 

Query returns ERRor. 

:SBUS:CANFD:ID:MODE 

 

Command format

 

:SBUS:

CANFD

:ID:MODE    {STANdard | EXTended | FD_STD| FD_EXT } 

:SBUS:

CANFD

:ID:MODE? 

 

Functional description

 

    This command is used to set ID identifier frame format of CAN-FD bus of the oscilloscope. 

 

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 returns STANdard. 

:SBUS:CANFD:ID 

 

Command format

 

:SBUS:

CANFD

:ID    <string> 

:SBUS:

CANFD

:ID? 

 

Functional description

 

            This  command  is  used  to  set

 

ID  identifier  frame  data  of  CAN-FD  bus  of  the  oscilloscope.  Set  the 

corresponding ID identifier according to the mode of

 

:SBUS:CAN:ID:MODE. Binary character string data 

presented by parameter is 0, 1 or X. X represents unsure. 
Standard frame range is 0x0~0x7FF, data bit occupies 11bits; Extend frame range is 0x0~0x1FFFFFFF, data 
bit occupies 29bits; FD standard frame range is 0x0~0x7FF, data bit occupies 11bits; FD extend frame range 
is 0x0~0x1FFFFFFF, data bit occupies 29bits. 

 

 

Return format

 

Query returns binary character data.

 

Содержание MSO/UPO2000 Series

Страница 1: ...Programming Manual MSO UPO2000 Series Digital Phosphor Oscilloscope...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Отзывы: