《LeCroy_94XX_Remote_Control_Manual 电路图.pdf》由会员分享,可在线阅读,更多相关《LeCroy_94XX_Remote_Control_Manual 电路图.pdf(232页珍藏版)》请在收音机爱好者资料库上搜索。
1、| | I REMOTE CONTROL MANUAL g g II II II | g II g II g I li g a J Serial Number May 1992 MODELS 9410/14/20/24/30/50 DUAL- AND QUAD-CHANNEL DIGITAL OSCILLOSCOPES RadioFans.CN 收音机爱 好者资料库 LeCroy Corporate Headquarters 700 Chestnut Ridge Road Chestnut Ridge, NY 10977-6499 Tel: (914) 425-2000, TWX: 710-5
2、77-2832 European Headquarters 2, rue Pr-de-la-Fontaine P.O. Box 341 1217 Meyrin 1/Geneva, Switzerland Tel.: (022) 719 21 11, Telex: 419 058 Copyright May 1992, LeCroy. All rights reserved, information in this publication supersedes all earlier versions. Specifications subject to change. g I i n ii l
3、i ii li il i ii g li i II g II L RadioFans.CN 收音机爱 好者资料库 1 1 I TABLE OF CONTENTS General Information Initial Inspection Warranty Product Assistance Maintenance Agreements Document Discrepancies Service Procedure Return Procedure 2About Remote Control GPIB Implementation Standard Program Messages Com
4、mands and Queries Local and Remote State Program Message Form Command/Query Form Response Message Form 3GPIB Operation GPIB Structure Interface Capabilities Addressing GPIB Signals IEEE 488.1 Standard Messages Programming GPIB Transfers Programming Service Requests Instrument Polls Driving a Hard-co
5、py Device 4RS-232-C Operation Introduction RS-232-C Pin Assignments RS-232-C Configuration Commands Simulating GPIB Commands 1 1 1 1 2 2 2 11 11 12 12 13 15 19 21 25 29 29 30 33 RadioFans.CN 收音机爱 好者资料库 II Table of Contents | 6 System Commands Organization Command Summary Command Execution Command No
6、tation Waveform Structure Introduction Logical Data Blocks of a Waveform Inspect? Command Waveform? Command Waveform Command More Control of Waveform Queries High-speed Waveform Transfer Status Registers Overview of Status and Service Request Reporting Status Byte Register (STB) Standard Event Statu
7、s Register (ESR) Standard Event Status Enable Register (ESE) Service Request Enable Register (SRE) Parallel Poll Enable Register (PRE) Internal State Change Status Register (INR) Internal State Change Enable Register (INE) Command Error Status Register (CMR) Device Dependent Error Status Register (D
8、DR) Execution Error Status Register (EXR) User Request Status Register (URR) 35 35 37 37 179 179 180 182 187 188 188 191 193 194 195 195 195 195 196 196 196 196 196 | | Table of Contents Appendix A Example 1: Use of the Interactive GPIB Program IBIC Example 2: GPIB Program for IBM PC (High-level Fun
9、ction Calls) Example 3: GPIB Program for IBM PC (Low-level Function Calls) Appendix B The Waveform Template 199 200 202 205 1 INITIAL INSPECTION WARRANTY PRODUCT ASSISTANCE MAINTENANCE AGREEMENTS GENERAL INFORMATION It is recommended that the shipment be thoroughly inspected im- mediately upon deliv
10、ery to the purchaser. All material in the container should be checked against the enclosed Packing List. LeCroy cannot accept responsibility for shortages in comparison with the Packing List unless notified promptly. If the shipment is damaged in any way, please contact the Customer Service Depart-
11、ment or local field office immediately. LeCroy warrants its oscilloscope products to operate within specifi- cations under normal use for a period of two years from the date of shipment. Spares, replacement parts and repairs are warranted for 90 days. The instruments firmware is thoroughly tested an
12、d thought to be functional, but is supplied as is with no warranty of any kind covering detailed performance. Products not manufac- tured by LeCroy are covered solely by the warranty of the original equipment manufacturer. In exercising this warranty, LeCroy will repair or, at its option, replace an
13、y product returned to the Customer Service Department or an authorized service facility within the warranty period, pro- vided that the warrantors examination discloses that the product is defective due to workmanship or materials and that the defect has not been caused by misuse, neglect, accident
14、or abnormal con- ditions or operation. The purchaser is responsible for transportation and insurance charges for the return of products to the servicing facility. LeCroy will return all in-warranty products with transportation prepaid. This warranty is in lieu of all other warranties, expressed or i
15、m- plied, including but not limited to any implied warranty of merchantability, fitness, or adequacy for any particular purpose or use. LeCroy shall not be liable for any special, incidental, or con- sequential damages, whether in contract or otherwise. Answers to questions concerning installation,
16、calibration, and use of LeCroy equipment are available from the Customer Service Department, 700 Chestnut Ridge Road, Chestnut Ridge, New York 10977-6499, U.S.A., tel. (914)578-6061, and 2, rue Pr6-de-la-Fontaine, 1217 Meyrin 1, Geneva, Switzerland, tel. (41)22/719 21 11, or your local field enginee
17、ring office. LeCroy offers a selection of customer support services. Mainte- nance agreements provide extended warranty and allow the customer to budget maintenance costs after the initial two year warranty has expired. Other services such as installation, training, enhancements and on-site repair a
18、re available through specific Supplemental Support Agreements. General Information DOCUMENTATION DISCREPANCIES SERVICE PROCEDURE RETURN PROCEDURE LeCroy is committed to providing state-of-the-art instrumenta- tion and is continually refining and improving the performance of its products. While physi
19、cal modifications can be implemented quite rapidly, the corrected documentation frequently requires more time to produce. Consequently, this manual may not agree in every detail with the accompanying product. There may be small discrepancies in the values of components for the purposes of pulse shap
20、e, timing, offset, etc., and, occasionally, minor logic changes. Where any such inconsistencies exist, please be assured that the unit is correct and incorporates the most up-to-date cir- cuitry. In a similar way the firmware may undergo revision when the instrument is serviced. Should this be the c
21、ase, manual up- dates will be made available as necessary. Products requiring maintenance should be returned to the Cus- tomer Service Department or authorized service facility. LeCroy will repair or replace any product under warranty at no charge. The purchaser is only responsible for transportatio
22、n charges. For all LeCroy products in need of repair after the warranty pe- riod, the customer must provide a Purchase Order Number before repairs can be initiated. The customer will be billed for parts and labor for the repair, as well as for shipping. To determine your nearest authorized service f
23、acility, contact the Customer Service Department or your field office. All products returned for repair should be identified by the model and serial numbers and include a description of the defect or failure, name and phone number of the user, and, in the case of products re- turned to the factory,
24、a Return Authorization Number (RAN). The RAN may be obtained by contacting the Customer Service Department in New York, tel. (914)578-6061, in Geneva, tel. (41)22/719 21 11, or your nearest sales office. Return shipments should be made prepaid. LeCroy will not accept C.O.D. or Collect Return Shipmen
25、ts. Air-freight is generally rec- ommended. Wherever possible, the original shipping carton should be used. If a substitute carton is used, it should be rigid and be packed such that the product is surrounded with a minimum of four inches of excelsior or similar shock-absorbing material. In addressi
26、ng the shipment, it is important that the Return Authoriza- tion Number be displayed on the outside of the container to ensure its prompt routing to the proper department within LeCroy. 2 ABOUT REMOTE CONTROL GPIB IMPLEMENTATION STANDARD PROGRAM MESSAGES Two modes of operation are available in the o
27、scilloscope. The in- strument may be operated either manually, by using the front-panel controls, or remotely by means of an external control- ler (which is usually a computer, but may be a simple terminal). This Remote Control Manual describes how to control the oscillo- scope in the remote mode. F
28、or explanations on how to manually set front-panel controls, refer to the Operators Manual. The oscilloscope is remotely controlled via either the GPIB (Gen- eral Purpose Interface Bus) or the RS-232-C communication ports. Whenever the rear-panel GPIB address switches are set be- tween 0 and 30, con
29、trol is via GPIB; when they are at 31 or above, control is via RS-232-C. The instrument can be fully controlled in remote mode. The only actions which cannot be performed re- motely are switching on the instrument or setting the remote address. This section introduces the basic remote control concep
30、ts which are common to both RS-232-C and GPIB. It also presents a brief description of remote control messages. Sections 3 and 4 explain how to send program messages over the GPIB or the RS-232-C interfaces, respectively. Section 5 alpha- betically lists all the remote control commands. Section 6 is
31、 a detailed description and tutorial of the transfer and format of waveforms, whereas Section 7 explains the use of status bytes for error reporting. Appendix A shows some complete programming examples. Appendix B contains a printout of a waveform tem- plate. The remote commands conform to the GPIB
32、IEEE 488.2 stan- dard 1. This standard may be seen as an extension of the IEEE 488.1 standard which dealt mainly with electrical and me- chanical issues. The IEEE 488.2 recommendations have also been adopted for RS-232-C communications whenever applica- ble. To remotely control the oscilloscope the
33、controller must send pro- gram messages which conform to precise format structures. The instrument will execute all program messages which are in the cor- rect form and ignore those where errors are detected. 1.ANSI/IEEE Std. 488.2-1987, IEEE Standard Codes, Formats, Protocols, and Common Commands,
34、The Institute of Electrical and Electronics Engineers Inc., 345 East 47th Street, New York, NY 10017, USA. About Remote Control COMMANDS AND QUERIES Warning or error messages are normally not reported by the instru- ment, unless the controller explicitly examines the relevant status register, or if
35、the status enable registers have been set in such a way that the controller can be interrupted when an error occurs. The status registers are explained in Section 7. During the development of the control program it is possible to observe all remote control transactions, including error messages, on
36、an external monitor connected to the RS-232-C port. Refer to the command COMM_HELP for further details. Program messages consist of one or several commands or queries. A command directs the instrument to change its state, e.g. to change its time base or vertical sensitivity. A query asks the instru-
37、 ment about its state. Very often, the same mnemonic is used for a command and a query, the query being identified by a after the last character. For example, to change the time base to 2 msec/div, the controller should send the following command to the instrument TIME DIV 2 MS To ask the instrument
38、 about its time base, this query should be sent TIME DIV? A query causes the instrument to send a response message. The control program should read this message with a read instruc- tion to the GPIB or RS-232-C interface of the controller. The response message to the query above might be TIME DIV 10
39、 NS m The portion of the query preceding the question mark is repeated as part of the response message. If desired, this text may be sup- pressed with the command COMM_HEADER. Depending on the state of the instrument and the computation to be done, the controller may have to wait up to several secon
40、ds for a response. Command interpretation does not have priority over other oscilloscope activities. It is therefore judicious to set the con- troller IO timeout conditions to 3 or more seconds. In addition, it must be remembered that an incorrect query message will not gen- erate a response message
41、. 4 LOCAL AND REMOTE STATE PROGRAM MESSAGE FORM About Remote Control 2 As a rule, remote commands are only executed by the instrument when it is in the REMOTE state, whereas queries are always ex- ecuted. A few commands which dont affect the state of the front panel are also executed in LOCAL (refer
42、 to the beginning of Sec- tion 5 for a list of these commands). When the instrument is in REMOTE, all front-panel controls are disabled, except the left- hand menu buttons, the intensity controls (which can be disabled with the command INTENSITY) and the LOCAL button (which can be disabled by settin
43、g the instrument to LOCAL LOCKOUT). For an explanation on how to set the instrument to LOCAL, REMOTE or LOCAL LOCKOUT, refer to Section 3 for GPIB and to Section 4 for RS-232-C. An instrument is remotely controlled with program messages which consist of one or several commands or queries, separated
44、by semicolons and ended by a terminator: ; .; Upper and/or lower case characters can be used for program mes- sages. The instrument does not decode an incoming program message before a terminator has been received (exception: if the program message is longer than the 256 byte input buffer of the ins
45、trument, the oscilloscope starts analyzing the message when the buffer is full). The commands or 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). New-
46、line character with a simultaneous signal. signal together with the last character of the program message. Note: The signal is a dedicated GPIB interface line which can be set with a special call to the GPIB interface driver. Refer to the GPIB interface manufacturers manual and support pro- grams. T
47、he terminator is always used in response messages sent by the instrument to 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. About Remote Control | |
48、Examples COMMAND/QUERY FORM Example Header 6 GRID DUALThis program message consists of a single command which instructs the instrument to display a dual grid. The terminator is not shown since it is usually automatically added by the interface driver routine which writes to the GPIB (or RS-232). BWL
49、 ON; DISPLAY OFF; DATE? This program message consists of two commands, followed by a query. They instruct the instrument to turn on the bandwidth limit, turn off the display, and then ask for the current date. Again, the terminator is not shown. The general form of a command or a query consists of a command header which is optionally followed by one or 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 Section 5 indicates which commands may also