Anritsu regDriver.aspx 电路图.pdf

上传人:cc518 文档编号:199567 上传时间:2025-03-08 格式:PDF 页数:8 大小:1.25MB
下载 相关 举报
Anritsu regDriver.aspx 电路图.pdf_第1页
第1页 / 共8页
Anritsu regDriver.aspx 电路图.pdf_第2页
第2页 / 共8页
Anritsu regDriver.aspx 电路图.pdf_第3页
第3页 / 共8页
亲,该文档总共8页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述

《Anritsu regDriver.aspx 电路图.pdf》由会员分享,可在线阅读,更多相关《Anritsu regDriver.aspx 电路图.pdf(8页珍藏版)》请在收音机爱好者资料库上搜索。

1、Communicating with Anritsus IEEE-488.2 Non-Compliant Instruments Application Note RadioFans.CN 收音机爱 好者资料库 IEEE-488.2 Non-Compliance Introduction The purpose of this application note is to recognize the difficulties associated with remotely controlling some of Anritsus instruments via the GPIB bus.Th

2、is note will define the exact cause of the difficulties and then describe a way to reliably communicate with these troublesome models. Problem Statement GPIB Bus Most Anritsu instruments can be remotely controlled by a computer using the GPIB bus. The GPIB bus has been a mainstay in the Test asserte

3、d (ground) or unasserted (+5 volts). Normally EOI is unasserted. However, a GPIB transmitter may elect to signal the end of a command string by asserting the EOI line at the same time as it is transmitting the last byte of the command.The EOI termination method is more difficult for the sender and r

4、eceiver because 9 lines must be controlled or monitored (8 data lines plus EOI). By not sending the EOS character, the transmissions are slightly faster and there are no concerns about the data bytes matching a special EOS value. The IEEE-488.2 standard mandates that GPIB commands must be terminated

5、 in one of three ways: 1. Line feed as the EOS character, with no EOI. 2. EOI during the last command character and no line feed. 3. Both line feed and EOI, meaning EOI is asserted during the line feed. The IEEE-488.2 standard clearly states that a compliant device that is receiving commands from th

6、e GPIB bus must be able to accept commands no matter which of the three termination methods are used. Similarly, a compliant device transmitting commands on the GPIB bus must use one of these three termination methods and any one of the three methods is equally acceptable. A customer desiring to con

7、trol one of our instruments via the GPIB bus can use any one of many different programming languages or manual utilities.These tools allow the customer to send and receive GPIB commands to a device that is presumably compliant with the IEEE-488.2 standard. Most, if not all, of these tools default to

8、 use of termination method (2) because it is the most efficient and eliminates potential data conflicts. Some, but not all, of the tools can be customized to allow the use of termination methods (1) and (3). Non-Compliance The fundamental problem that people have in controlling a few Anritsu instrum

9、ents arises from the fact that those instruments do not fully comply with the IEEE-488.2 standard. In particular, the instruments ignore the EOI line. Consequently, they are unable to receive a command terminated using method (2), the most commonly used method. Such non-compliant instruments are, ho

10、wever, able to reliably receive commands using methods (1) and (3) because in both cases a line feed is transmitted. A typical user will connect their computer to an Anritsu instrument along with maybe a few other instruments, start up a GPIB utility such as National Instruments MAX (Measurement and

11、 Automation Explorer), and attempt to communicate with the instruments. Most often everything works exactly as expected. Unfortunately, a few Anritsu instruments will not work as expected.The utility will recognize that the instrument is on the bus at a particular address and the instrument will go

12、into Remote mode and accept characters. But the instrument will never execute the command. A non-compliant instrument will properly receive and store away every character of the command and will continue to do so until it receives the terminating line feed that it is expecting.The transmitter, on th

13、e other hand, sends all the characters, asserting EOI on the last character, but because EOI was ignored by the non-compliant instrument, the instrument ends up waiting forever for a line feed and the customer ends up frustrated. The typical user of our instruments understands the GPIB bus enough to

14、 know that ASCII characters are transmitted back and forth, but they often dont understand the concept of termination methods. Even if the user does understand termination methods, the Remote Control Manuals for the few non- compliant instruments still may not be helpful. RadioFans.CN 收音机爱 好者资料库 The

15、 manual for every Anritsu instrument designed in the past decade will claim that it is fully compliant with the IEEE-488.2 standard and in most cases, that is correct. Some non-compliant instruments will claim they are fully compliant with IEEE-488.2, but a few pages deeper in the manual will descri

16、be how the instrument really only accepts termination methods (1) and (3). Some non-compliant instruments will claim they are fully compliant with IEEE-488.2 and proceed to describe how all three termination methods are accepted, but actual use of the instrument shows that method (2) is not accepted

17、. The following are a few instruments currently known to be non-compliant: MF9619, MP1555, MP1763, MP1764, MN63, and the MP1570. The natural question of, WHY are these instruments non-compliant? is beyond the scope of this paper and would be better addressed to the Anritsu divisions responsible for

18、designing the instruments. Solution While frustrating at first, these few non-compliant instruments are perfectly reliable and will flawlessly receive, execute, and respond to GPIB commands as long as the commands are terminated with a line feed.The manner in which you append the line feed depends o

19、n the tool you are using for communication. NI-488.2 Communicator National Instruments is the largest manufacturer of GPIB cards in the US. Every card comes with a software utility called MAX (Measurement & Automation Explorer) as shown in Figure 1. (Figure 1) The upper left corner of MAX has a butt

20、on labeled Communicate with Instrument. When this button is clicked, the NI-488.2 Communicator application pops up as shown in Figure 2.This is the utility our customers most commonly use to manually control our instruments. For any device that fully complies with IEEE-488.2, this is a very easy uti

21、lity to send and receive GPIB commands. The termination method employed by NI-488.2 Communicator is EOI-only, method (2), thus Communicator will not communicate with our few non-compliant instruments. Furthermore, there is no way to force Communicator to send a line feed. (In January 2001, National

22、Instruments acknowledged that this was a bug and promised that some later version of Communicator would allow line feeds.) Fortunately, MAX includes another GPIB tool which can send line feeds. VISAic VISA (Virtual Instrumentation Systems Architecture) is a driver software architecture developed by

23、National Instruments to unify instrumentation software.VISAic (VISA Interactive Control) is a predecessor to NI-488.2 Communicator and can be invoked from MAX as shown in Figure 3. The first screen to appear when VISAic is invoked will be similar to Figure 4.VISAic automatically scans your entire co

24、mputer for all forms of I/O, typically finding a couple RS-232 ports, a printer port, and any instruments that may be connected to your GPIB bus. In the following example, one GPIB device is found and that device has an address of 13. (Figure 2) (Figure 4) (Figure 3) To communicate with a particular

25、 device, such as the one shown in Figure 4 with a GPIB address of 13, the user double-clicks the GPIB1:13:INSTR line. After doing so, the screen as shown in Figure 5 appears. The blue Template tab exposes all of the attributes of the GPIB interface, only one of which must be changed to deal with Anr

26、itsus few non-compliant instruments.The viSetAttribute tab contains a pull-down list of Attributes that can be selected, including the VI_ATTR_TERMCHAR_EN attribute.This attribute defaults to VI_FALSE and must be changed to VI_TRUE. Our non-compliant instruments are equally non-compliant whether tra

27、nsmitting or receiving on the GPIB bus.The instruments ignore the EOI when receiving a command, thus the computer must append the line feed termination character. Similarly, when the instrument is responding to a query, the instrument does not assert EOI on the last character and instead appends a n

28、ew line character (sometimes a carriage return character precedes the terminating line feed). In its default mode, VISAic presumes the instrument will be ending its transmissions with EOI. By setting the VI_ATTR_TERMCHAR_EN attribute to true, you are enabling the termination of character reception w

29、hen a particular termination character is received. One other attribute, VI_ATTR_TERMCHAR, defines the EOS character, but since it defaults to the desired line feed (0 x0A), it need not be changed. After the attributes are properly set, click on the blue Basic I/O tab, and then select the viWrite ta

30、b.The VISAic screen will appear as Figure 6. In the input text field named Buffer, type in the command you wish to transmit to the instrument. A very common command to use is *IDN? which is defined in the IEEE-488.2 standard as an identification request. When the instrument receives this command, it

31、 should respond with a character string identifying the instruments manufacturer and model number. The screenshot above shows the crucial command termination character. Following the *IDN? characters are the two characters n.Veteran C+ programmers will recognize these two characters, backslash follo

32、wed by lower case n, as meaning new line. (Figure 5) (Figure 6) When VISAic transmits the characters entered into the Buffer field, it interprets the two n characters as a single new line (0 x0A) character.(C+ and VISAic also interpret t as a tab character and r as a carriage return character.)After

33、 entering the desired command and new line into Buffer, the string is transmitted to the instrument by clicking on the Execute button.The screenshot shown previously was saved immediately after clicking on Execute and the Return Count field shows the number of characters transmitted. Note that 6, no

34、t 7, characters were transmitted, indicating that the n pair was indeed transmitted as a single new line character. To read the response from the instrument, click on the viRead tab and then click the Execute button.The screen will appear as Figure 7 with the identification string from the connected

35、 instrument. Note that the string received from the instrument is shown to have a n (new line) as the final character. LabVIEW When sending commands to a non-compliant instrument using the LabVIEW language, the line feed character is appended to the command string as n as shown in the Figure 8 graph

36、ic. LabVIEW string constants default to Normal Display mode in which the n pair would be transmitted as two characters. If you right-click on the string constant, as shown in Figure 9, a pop-up menu will allow you to change the string from Normal Display to Codes Display in which the n pair is inter

37、preted as the single desired new line character. Summary The difficulties communicating with a few non-compliant Anritsu instruments can very easily be resolved by simply appending a new line character to every command and by allowing responses from the instrument to be terminated by a new line. Onc

38、e these two rules are understood and followed, the non-compliant instruments are just as reliable and communicative as our compliant instruments. (Figure 7) (Figure 9) (Figure 8) ANRITSU COMPANY 1155 East Collins Boulevard Richardson, TX 75081 SALES & SUPPORT UNITED STATES Tel: 1-800-ANRITSU Fax: 97

39、2-671-1877 CANADA Tel: 1-800-ANRITSU Fax: 613-828-5400 SOUTH AMERICA Tel: 55-21-527-6922 Fax: 55-21-537-1456 JAPAN Tel: 81-3-3446-1111 Fax: 81-3-3442-0235 ASIA-PACIFIC Tel: 65-282-2400 Fax: 65-282-2533 EUROPE Tel: 44-(0)-1582-433433 Fax: 44-(0)-1582-731303 Copyright 2001 Anritsu Company Specifications subject to change without notice. Other brand and product names may be trademarks or registered trademarks of their respective owners. June 2001 P/N : 80202-00157 Printed in USA

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 仪器仪表 > Anritsu

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