LeCroy_LC_Oscilloscope_Remote_Control_Manual_REVP 电路图.pdf
《LeCroy_LC_Oscilloscope_Remote_Control_Manual_REVP 电路图.pdf》由会员分享,可在线阅读,更多相关《LeCroy_LC_Oscilloscope_Remote_Control_Manual_REVP 电路图.pdf(300页珍藏版)》请在收音机爱好者资料库上搜索。
1、 Remote Control Manual Remote Control Manual LeCroy 9300 .; Upper or lower-case characters or both can be used in program messages. The instrument does not decode incoming program messages before receiving a terminator. The exception to this is when the program message is longer than the 256 byte in
2、put buffer: the oscilloscope will start analyzing the message when the buffer is full. Commands and queries are executed in the order in which they are transmitted. In GPIB mode, the following are valid terminators: New-line character (i.e. the ASCII new- line character, whose decimal value is 10).
3、New-line character with a simultaneous signal. signaltogetherwiththelast character of the program message. 14ISSUED: September 2001LCXXX-RM-E Rev P About Remote ControlAbout Remote ControlAbout Remote ControlAbout Remote Control The terminatorisalwaysusedinresponse messages sent by the instrument to
4、 the controller. In RS-232-C, the terminator may be defined by the user with the command “COMM_RS232”. The default value is , i.e. the ASCII carriage return character, the decimal value of which is 13. ExamplesExamplesExamplesExamplesGRID DUAL This program message consists of a single command that i
5、nstructs the instrument to display a dual grid. The terminator is not shown, as it is usually automatically added by the interface driver routine writing to the GPIB (or RS-232). DZOM ON; DISPLAY OFF; DATE? This program message consists of two commands, followed by a query. They instruct the instrum
6、ent to turn on the multi-zoom mode, turn off the display, and then ask for the current date. Again, the terminator is not shown. Command/Query FormCommand/Query FormCommand/Query FormCommand/Query FormThe general form of a command or a query consists of a command header optionally followed by one or
7、 several parameters separated by commas: ? ,., The notation ? shows that the question mark is optional (turning the command into a query). The detailed listing of all commands in System Commands indicates which may also be queries. There is a space between the header and the first parameter. There a
8、re commas between parameters. ExampleExampleExampleExampleDATE 15,JAN,1993,13,21,16 This command instructs the oscilloscope to set its date and time to 15 JAN 1993, 13:21:16. The command header “DATE” indicates the action, the 6 data values specify it in detail. HeaderHeaderHeaderHeaderThe header is
9、 the mnemonic form of the operation to be performed by the oscilloscope. All command mnemonics are listed in alphabetic order in the System Commands section. The majority of the command/query headers have a long form for optimum legibility and a short form for better transfer and decoding speed. The
10、 two forms are fully equivalent and can be 9300 C2:OFST? What is the vertical sensitivity and the offset of channel 2? C2:VDIV?; OFST?Sameasabove,without repeating the path. DataDataDataDataWhenever a command/query uses additional data values, the values are expressed in terms of ASCII characters. T
11、here is a singleexception:thetransferofwaveformswiththe command/query “WAVEFORM”, where the waveform may be expressed as a sequence of binary data values. Chapter 4 gives a detailed explanation of waveform format. ASCII data can have the form of character, numeric, string or block data. Character da
12、taCharacter dataCharacter dataCharacter dataThese are simple words or abbreviations for the indication of a specific action. ExampleExampleExampleExampleDUAL_ZOOM ON Here, the data value “ON” commands that the dual-zoom mode be turned on (the data value “OFF” in such a case will obviously have the o
13、pposite effect). However, this can become more complex. In some commands, where as many as a dozen different parameters are able to be specified, or where not all the parameters are applicable at the same time, the format requires pairs of data values. The first value names the parameter to be modif
14、ied, while the second gives its value. Only those parameter pairs changed need indicating: ExampleExampleExampleExampleHARDCOPY_SETUP DEV,EPSON,PORT,GPIB Here, two pairs of parameters are specified. The first specifies the device as the EPSON printer (or compatible) and the second indicatestheGPIBpo
15、rt.Whilethecommand “HARDCOPY_SETUP” allows many more parameters, they are either not relevant for printers or are left unchanged. Numeric DataNumeric DataNumeric DataNumeric DataThe numeric data type is used to enter quantitative information. Numberscanbeenteredasintegersorfractions,orin exponential
16、 representation: 9300 TRIG_MODE NORM;C1:COUPLING? (terminator not shown). The instrument might respond as follows: TIME_DIV 50 NS;C1:COUPLING D50 (terminator not shown). Theresponsemessagerefersonlytothequeries: “TRIG_MODE” is left out. If this response is sent back to the instrument, it is a valid
17、program message for setting its timebase to 50 ns/div and the input coupling of Channel 1 to 50 W. Whenever a response is expected from the instrument, the control program must instruct the GPIB or RS-232-C interface to read from the instrument. If the controller sends another program message withou
18、t reading the response to the previous one, the response message in the output buffer of the instrument is discarded. The instrument uses somewhat stricter rules for response messages than for the acceptance of program messages. Whereas the controller may send program messages in upper or lower case
19、 characters, response messages are always returned 9300 IBERR% 210END 250PRINT “READ ERROR =”;IBERR% 260END The GPIB status word ISTA%, the GPIB error variable IBERR% and the count variable IBCNT% are defined by the GPIB handler and are updated with every GPIB function call. Refer to the National In
20、struments manual for details. The sample program above would report if the GPIB address of the instrument was set to a value other then 4. Line 180 resets the instrument to local with a call to the GPIB routine IBLOC. Additional Driver CallsAdditional Driver CallsAdditional Driver CallsAdditional Dr
21、iver CallsIBLOC is used to execute the IEEE 488.1 standard message Go To Local (GTL), i.e. it returns the instrument to the local state. The programming example above illustrates its use. IBCLR executes the IEEE 488.1 standard message Selected Device Clear (SDC). IBRDF and IBWRTF, respectively, allo
22、w data to be read from GPIB to a file, and written from a file to GPIB. Transferring data directly to or from a storage device does not limit the size of the data block, but may be slower than transferring to the computer memory. IBRDI and IBWRTI, respectively, allow data to be read from GPIB to an
23、integer array, and written from integer array to GPIB. Since the integer array allows storage of up to 64 kilobytes (in BASIC), IBRDI and IBWRTI should be used for the transfer of large data blocks to the computer memory, rather than IBRD or 210ISSUED: September 2001LCXXX-RM-E Rev P GPIBGPIBGPIBGPIB
24、 IBWRT, which are limited to 256 bytes by the BASIC string length. Note that IBRDI and IBWRTI only exist for BASIC, since for more modern programming languages, such as C, the function calls IBRD and IBWRT are far less limited in terms of data-block size. IBTMO can be used to change the timeout valu
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- LeCroy_LC_Oscilloscope_Remote_Control_Manual_REVP 电路图
收音机爱好者资料库所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
链接地址:http://www.radiofans.cn/p-203618.html



Marshall-9100-62-02-Schematic电路原理图.pdf


