欢迎来到收音机爱好者资料库! | 帮助中心 忘不了收音机那份情怀!
收音机爱好者资料库
全部分类
  • 德国收音机>
  • 国产收音机>
  • 日本收音机>
  • 欧美收音机>
  • 进口随身听>
  • 卡座/开盘/组合/收录机>
  • 功放/音响/收扩>
  • 仪器仪表>
  • CD/VCD/DVD/MD/DAC>
  • DAT/LP唱机>
  • 老电视>
  • 乐器/演出设备类>
  • ImageVerifierCode 换一换

    FLUKE pm33xx_scpiumeng0200 电路图.pdf

    • 资源ID:200808       资源大小:1.22MB        全文页数:297页
    • 资源格式: PDF        下载积分:25积分
    会员登录下载
    三方登录下载: QQ登录
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    FLUKE pm33xx_scpiumeng0200 电路图.pdf

    I $XWRUDQJLQJ LEFT$(response$, IBCNT%)Prints the ident string CALL Send (0, 8, *OPT?, 1)Requests for options CALL Receive (0, 8, response$, 256)Reads the options string PRINT Options: ; LEFT$(response$, IBCNT%) Prints the options string 2.2.3How to switch between digital and analog mode After power on, a CombiScope instrument can be either in the digital or analog mode. After a *RST command the digital mode is selected. The INSTrument sub- system allows you to switch between the two modes. This can be done by speci- fying a predefined name (DIGital, ANALog) or the corresponding number (1 = digital, 2 = analog). PROGRAM EXAMPLE: * Initialize and change the operating mode of the CombiScope instrument: * CALL Send (0, 8, INSTrument ANALog, 1)Switches to analog mode CALL Send (0, 8, INSTrument:NSELect 1, 1) Switches back to digital mode GETTING STARTED WITH SCPI PROGRAMMING2 - 5 2.3Error Reporting Instrument errors are usually caused by programming or setting errors. They are reported by the instrument during the execution of each command. To make sure that a program is running properly, you must query the instrument for possible er- rors after every functional command. This is done by sending the SYSTem:ERRor? query or the STATus:QUEue? query to the instrument, followed by reading the response message. However, through this practice the same error reporting statements must be repeated after sending each SCPI command. This is not always practical. Therefore, one of the following approaches is advised: 1) Send the SYSTem:ERRor? or STATus:QUEue? query and read the instrument response message after every group of commands that functionally belong to each other. 2) Program an error-reporting routine and call this routine after each command or group of commands. For an example of an error-reporting routine, refer to section 3.14.4.1. 3) Program an error-reporting routine and use the Service Request (SRQ) Generation mechanism to interrupt the execution of the program and to execute the error-reporting routine. Therefore, refer to section 3.14.4.2. PROGRAM EXAMPLE: * Read error message: * er$ = SPACE$(60) CALL Send(0, 8, SYSTem:ERRor?, 1)Requests for error CALL Receive(0, 8, er$, 256)Reads error message PRINT Response to error query = ; PRINT LEFT$(er$, IBCNT%-1)Displays error message 2 - 6GETTING STARTED WITH SCPI PROGRAMMING 2.4Acquiring Traces Trace acquisitions are started via the INITiate commands. A single acquisition is done by sending a single INITiate command. Continuous acquisitions are done by sending the INITiate:CONTinuous ON command. The TRACe? query allows you to acquire a trace of signal samples from one of the following sources: An input channel, e.g., CH2 (input channel 2). A trace area in a memory register, e.g., M2_3 (Memory register 2, trace 3). The number of trace samples (acquisition length) can be specified using the TRACe:POINts command. If your instrument has standard memory, you can specify 512, 2048, 4096, or 8192 trace samples. If your instrument has extended memory, you can specify 512, 8192, 16384, or 32768 trace samples. A TRACe:POINts command specifies the acquisition length for all channels and memory registers. Example: Send - TRACe:POINts CH1,8192 Selects 8192 sample points for all traces The number of trace sample bits can be specified using the FORMat command. This gives you the possibility to define samples of 8 bits (1 byte) or 16 bits (2 bytes). A FORMat command specifies the number of sample bits for all channels and memory registers. Example: Send - FORMat INT,16Formats 16-bits samples The format of the trace response data is as follows: Note:If f=8 decimal, each trace sample is one byte (8 bits). If f=16 decimal, each trace sample is two bytes (16 bits), i.e., most significant byte (msb) + least significant byte (lsb). Example: # n x . . x f b . . . . . b s NewLine code (10 decimal) checksum byte over all trace bytes trace sample data bytes (see Note) trace data format byte (see Note) number of trace bytes (fbb.bbs) number of digits of x.x # 4 1 0 2 6 . . . trace sample 512 trace sample 1 decimal 16 number of trace bytes (N) number of digits of N GETTING STARTED WITH SCPI PROGRAMMING2 - 7 2.4.1How to acquire a single shot trace In the program example, a single shot trace acquisition of 8192 8-bit samples is done with a probe connected to input channel 1. The trace sample bytes are read from the GPIB as string characters. The number of response bytes and the number of samples are printed. The TRIGger:SOURce command is used to specify input channel 1 as a trigger source. The TRIGger:LEVel command is used to reset the trigger level to e.g., 0.1 volts. PREPARATIONS: Connect a probe to channel 1. After start up of the program you will be asked to trigger the acquisition with the open end of the probe, i.e., touch the probe or strike the probe on the table. PROGRAM EXAMPLE: * Acquire a single shot trace: * DIM tracebuf AS STRING * 16500 CALL Send(0, 8, FORMat INTeger,8, 1)Formats 8-bits sample CALL Send(0, 8, TRACe:POINts CH1,8192, 1)Formats 8192 sample points CALL Send(0, 8, TRIGger:SOURce INTernal1, 1) Trigger-source = channel 1 CALL Send(0, 8, TRIGger:LEVel 0.1, 1)Trigger-level = 0.1 CALL Send(0, 8, INITiate, 1)Single shot initiation PRINT Trigger the CombiScope instrument by touching the probe tip. PRINT Press any key when finished. WHILE INKEY$ = : WEND CALL Send(0, 8, *WAI, 1)Waits for previous commands to finish CALL Send(0, 8, TRACe? CH1, 1)Queries for channel 1 trace CALL Receive(0, 8, tracebuf$, 256)Reads channel 1 trace The contents of the tracebuf$ string is as follows: # 4 8194 . nr.of.digits = VAL(MID$(tracebuf$, 2, 1) nr.of.bytes = VAL(MID$(tracebuf$, 3, nr.of.digits) - 2 sample.length = ASC(MID$(tracebuf$, 3 + nr.of.digits, 1) / 8 nr.of.samples = nr.of.bytes / sample.length PRINT Number of bytes received =; IBCNT%IBCNT% = number of bytes PRINT Number of trace samples =; nr.of.samples Note:Refer to section 3.4.3 Conversion of trace data about how to convert this string data. 2 - 8GETTING STARTED WITH SCPI PROGRAMMING 2.4.2How to acquire repetitive traces In the program example, 5 trace acquisitions of 512 16-bit samples are done via a probe connected to channel 2. The trace sample bytes are read from the GPIB as string characters and written to the file TRACE5.DAT on the hard disk. PREPARATIONS: Connect a probe from the Probe Adjust signal to channel 2. PROGRAM EXAMPLE: * Acquire 5 sequential traces and store in file TRACE5.DAT: * DIM tracebuf AS STRING * 1050 CALL Send(0, 8, *RST, 1)Resets the instrument After *RST a trace acquisition is defined at 512 samples of 16 bits (2 bytes). CALL Send(0, 8, CONFigure:AC (2), 1)Configures channel 2 CALL Send(0, 8, SENSe:FUNCtion XTIMe:VOLTage2, 1)Switches channel 2 on OPEN O,#1,TRACE5.DATOpens file TRACE5.DAT FOR i=1 TO 5 CALL Send(0, 8, INITiate, 1)Single initiation CALL Send(0, 8, *WAI;TRACe? CH2, 1)Queries for channel 2 trace Notice the *WAI; before TRACe?. The *WAI command takes care that the TRACe? CH2 command is executed when the INITiate command is finished. CALL Receive(0, 8, tracebuf$, 256)Reads channel 2 trace PRINT #1, Trace buffer:; iWrites trace header to file PRINT #1, LEFT$(tracebuf$, IBCNT%)Writes trace buffer to file NEXT i CLOSECloses file TRACE5.DAT Note:Refer to section 3.4.3 Conversion of trace data about how to convert this string data. GETTING STARTED WITH SCPI PROGRAMMING2 - 9 2.5Measuring Signal Characteristics The measurement instructions allow you to make a complete measurement. This includes the configuration of the instrument, the initiation of the trigger system, and the fetching of the acquisition data. The measurement instructions can be used at different levels, varying in processing time. The highest level is the most easy to use, but takes more time to complete than the lowest level. The following levels of measurement instructions can be used: The highest level:MEASure? (easy to use) The middle level:CONFigure + READ?(equivalent to MEASure?) (gives more programming flexibility) The lowest level:INITiate + FETCh?(equivalent to READ?) (to acquire more signal characteristics) The following table shows which measurement tasks are executed by the measurement instructions: MEASure?CONFigureREAD?INITiateFETCh? Configures the instrument:YESYES Initiates the trigger system:YESYESYES Fetches the acquired data:YESYESYES 2 - 10GETTING STARTED WITH SCPI PROGRAMMING 2.5.1How to make a single shot measurement The MEASure? query allows you to make a single-shot measurement, and the FETCh? query allows you to fetch more signal characteristics. PROGRAM EXAMPLE: * Measure and print the AC-RMS, peak to peak, and amplitude of the signal on channel 1. * response$ = SPACE$(30) CALL Send (0, 8, MEASure:AC? (1), 1)Measures the AC-RMS value CALL Receive (0, 8, response$, 256)Reads the AC-RMS value PRINT AC-RMS value : ; LEFT$(response$, IBCNT% -1) CALL Send (0, 8, FETCh:PTPeak?, 1)Fetches the Peak-To-Peak value CALL Receive (0, 8, response$, 256)Reads the PTP value PRINT Peak-To-Peak value: ; LEFT$(response$, IBCNT% - 1) CALL Send (0, 8, FETCh:AMPLitude?, 1)Fetches the amplitude value CALL Receive (0, 8, response$, 256)Reads the amplitude value PRINT Amplitude value : ; LEFT$(response$, IBCNT% - 1) 2.5.2How to make repeated measurements The measurement instructions allow you to make repeated measurements. The CONFigure command allows you to configure the instrument, the READ? query allows you to make a measurement, and the FETCh? query allows you to fetch more signal characteristics. PROGRAM EXAMPLE: * Measure and print 5x the AC-RMS, peak to peak, and amplitude of the signal on channel 1. * response$ = SPACE$(30) CALL Send (0, 8, CONFigure:AC (1), 1)Configures for AC-RMS FOR i = 1 TO 5Performs 5 measurements CALL Send (0, 8, READ:AC?, 1)Initiates AC-RMS reading CALL Receive (0, 8, response$, 256)Reads the AC-RMS value PRINT AC-RMS: ; LEFT$(response$, IBCNT%-1); CALL Send (0, 8, FETCh:PTPeak?, 1)Fetches the Peak-To-Peak value CALL Receive (0, 8, response$, 256)Reads the PTP value PRINT / Peak-To-Peak: ; LEFT$(response$, IBCNT%-1); CALL Send (0, 8, FETCh:AMPLitude?, 1)Fetches the amplitude value CALL Receive (0, 8, response$, 256)Reads the amplitude value PRINT / Amplitude: ; LEFT$(response$, IBCNT%-1) NEXT i USING THE COMBISCOPE INSTRUMENTS3 - 1 3 USING THE COMBISCOPE INSTRUMENTS 3.1Introduction This chapter explains how to access the functions of the CombiScope instruments family in a remote programming environment. For that purpose, the CombiScope instrument is equipped with an IEEE-488 compatible GPIB interface and implements a full SCPI compatible command set which provides an extensive range of remote control facilities. Traditionally, there was no standard for the remote operation of instruments. A wide range of different command sets existed. Each set had its own terminology and trade-offs, based upon the implementations and corresponding limitations of the instrument. Similar functions in different instruments were controlled by different commands. And, vice versa, identical commands could easily exist in another instrument to control a different function. With new technologies and increasing complexity, other programming concepts were introduced. This caused programs with identical functions to look different when written for another instrument. The remote control of instruments became a cumbersome process, which required a high learning curve for each new instrument and each additional instrument. The time and costs to create and maintain application programs were unnecessarily high due to the lack of standardization. With the introduction of the Standard Commands for Programmable Instruments, commonly called SCPI, a lot of progress has been made in this area. The development time of an application program for SCPI-compatible instruments, like the CombiScope instrument, is considerably reduced. This is mainly achieved by the consistent programming environment for instrument control and data usage across all types of instruments that, regardless of the manufacturer, is provided by SCPI. The standardized commands allow the same functions in different types of instruments to be controlled by the same commands. For example, the query MEASure:FREQuency? acquires the frequency characteristic of the input signal, regardless of whether the instrument is a frequency counter, an oscilloscope, or any other measuring instrument. 3 - 2USING THE COMBISCOPE INSTRUMENTS As the example already shows, the commands are easy to learn and self- explanatory to both novice and expert users. The learning curve is considerably decreased for new instruments or instrument functions with which the programmer is not familiar. Efficiency is not only gained when creating or debugging new application programs. The easily understandable programs greatly simplify maintenance and modification of existing application programs that have been written by other persons or for other instrument functions. All major CombiScope instrument functions are controlled by standard SCPI commands. Although the functionality provided is the same, the way the oscilloscope is controlled via the remote interface differs in some aspects from the front panel operation. This is because the local front panel operation is designed to allow you to take maximum advantage of the interactive communication possibilities offered by the display screen. This allows for additional information and guidance during the process of local operation. The remote command set is based upon an instrument model that is easy to understand. This model provides a structured survey of the implemented instrument functions and serves as a guide towards the commands that control these functions. This other view allows for optimal and easy access of the instrument functions when operated from the remote interface. Additionally, a measurement instruction set allows for easy programming of measurement tasks for a wide variety of signal characteristics. USING THE COMBISCOPE INSTRUMENTS3 - 3 3.2Fundamental Programming Concepts The remote operation of your CombiScope instrument can be accessed using different programming concepts. The concept to be chosen depends upon the application of the instrument in the remote programming environment. Each of the four concepts has it own benefits and trade-offs. 1) Using measurement instructions Advantage:Easy to program. No instrument knowledge required to make measurements. So, you can start programming quickly and get measurement results rightaway. Trade-off:A measurement takes some time to complete, because the instrument automatically searches for optimal settings. Example:MEASure:FREQuency?Measures the frequency of the signal at channel 1. 2) Single function programming using the instrument model Advantage:Allows you to program individual functions separately through single

    注意事项

    本文(FLUKE pm33xx_scpiumeng0200 电路图.pdf)为本站会员(cc518)主动上传,收音机爱好者资料库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知收音机爱好者资料库(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    ADZZ
    关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

    copyright@ 2008-2026收音机爱好者资料库 版权所有
    备案编号:鄂ICP备16009402-5号

    收起
    展开