完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
亲爱的先生:我正在使用交互式仪器控制程序(Agilent Connection Expert)对我的测试仪器进行编程。
我注意到在此软件环境中没有等效的LOCAL命令。 在HPBASIC环境中,典型的工作命令是:LOCAL 716在QUICKBASIC环境中,典型的工作命令是:CALL IOLOCAL(716&)我的第一个问题是LOCAL命令的形式是否影响IO接口(例如GPIB卡) 或者其他接口,例如USB到GPIB),然后是网络分析仪,或者命令只能解决网络分析仪的问题? 一般来说,你能告诉我这个命令是否会影响IO接口,如果是这样,你能告诉我怎么做吗? 我的查询的最终应用是写一个兼容的字符串命令,它将执行LOCAL命令的功能。 任何人都可以就如何完成这项任务提出任何建议吗? 是否有一个简单的命令可以输入到交互式仪器控制程序中,该程序将作为等效的本地命令运行而不会返回错误? 编辑:SOLT_guy于2012年12月7日上午10:49编辑:SOLT_guy于2012年12月10日上午6:10 以上来自于谷歌翻译 以下为原文 Dear Sir: I was programming my test instrument using an interactive, instrument control, program (Agilent Connection Expert). I noticed that an equivalent LOCAL command is not available in this software environment. In the HPBASIC environment a typical working command is: LOCAL 716 In the QUICKBASIC environment a typical working command is: CALL IOLOCAL(716&) My first question is do the forms of the LOCAL command operate to affect the IO interface (eg. GPIB Card or other interface, eg. USB to GPIB) first and then the network analyzer, or does the command only address the network analyzer? In general, can you tell me if this command affects the IO interface and, if so, can you tell me how? The end application of my query is write a compatible string command that will perform the function of the LOCAL command. Can anyone offer any advice on how I go about accomplishing this task? Is there a simple command that I can input into an interactive instrument control program that will operate as an equivalent local command and not return an error? Edited by: SOLT_guy on Dec 7, 2012 10:49 AM Edited by: SOLT_guy on Dec 10, 2012 6:10 AM |
|
相关推荐
3个回答
|
|
我自己做了一些研究来回答这个问题:“我的第一个问题是LOCAL命令的形式是否会影响IO接口(例如GPIB卡或其他接口,例如USB到GPIB),然后是
网络分析器,或者命令只对网络分析仪进行寻址?一般情况下,你能告诉我这个命令是否会影响IO接口,如果有,你能告诉我怎么做吗?“ 看起来LOCAL命令确实会影响IO接口,因为它被列为“GPIB控制器命令”。 任何人都可以验证这确实是正确的吗? 我想知道这个假设是正确的。 有关LOCAL命令如何影响测试仪器的细节仍有待了解。 我想要做的就是让GPIB总线上的REN线路为假。 谁能告诉我如何使用字符串命令执行此操作。 (我的交互式测试仪器,控制程序 - 安捷伦连接专家)内置了HPBASIC或QuickBASIC代码转换器吗? 编辑:SOLT_guy于2012年12月10日上午6:15编辑:SOLT_guy于2012年12月10日上午6:24编辑:SOLT_guy于2012年12月10日上午6:25 以上来自于谷歌翻译 以下为原文 I did a little research on my own to answer this question: "My first question is do the forms of the LOCAL command operate to affect the IO interface (eg. GPIB Card or other interface, eg. USB to GPIB) first and then the network analyzer, or does the command only address the network analyzer? In general, can you tell me if this command affects the IO interface and, if so, can you tell me how?" It would appear that the LOCAL command does affect the IO interface as it is listed as a "GPIB controller command". Can anyone please verify that this, indeed, correct? I like to know for certain that the hypothesis is correct. The specifics of how the LOCAL command affects the test instrument remain to be known. All I want to do is make the REN line on the GPIB bus false. Can anyone tell me how to do this using a string command. (There is no HPBASIC or QuickBASIC, code translator built into my interactive, test instrument, control program - Agilent Connection Expert)? Edited by: SOLT_guy on Dec 10, 2012 6:15 AM Edited by: SOLT_guy on Dec 10, 2012 6:24 AM Edited by: SOLT_guy on Dec 10, 2012 6:25 AM |
|
|
|
szzjfyp 发表于 2019-4-16 11:08 你好。 您可能知道,在GPIB中,Go To Local(GTL)不是字符串命令,而是总线上的握手。 当您调用特定IO库的功能时,GPIB上的活动控制器(即您的GPIB卡)会将该握手定向到特定设备(地址)。 以下是我在不同的乐器论坛中发生的类似讨论:34401A以gpib scpi模式返回本地 将GTL发送到接口上的设备会使该设备进入本地模式,但不会真正影响接口本身。 但是,如果您参考viGpibControlREN函数的VISA帮助文档,您会注意到该函数也可以断言或取消断言接口上的REN行。 断言REN线确实会将该接口上的设备置于远程模式。 当有人按下仪器的Local按钮或调用该仪器地址的GTL时,取消断言REN只允许该接口上的每个设备返回Local(其前面板键将再次开始响应)。 我不相信安捷伦IO库(例如,在Interactive IO对话框或VISA Assistant实用程序中)有一个按钮,它将为设备调用GTL或断言或取消激活REN线,尽管VISA Assistant确实显示 在它的属性选项卡中,REN行的当前状态(在GPIB特定的属性中)。 但是,使用可以访问VISA dll中的函数的任何编程语言,您可以编写一个可执行文件,您可以通过命令行调用它,它可以接收GPIB接口编号和地址编号作为命令行参数,以及 它可以调用viOpen和viGpibControlREN来根据需要更改状态。 以上来自于谷歌翻译 以下为原文 Hello. As you may know, in GPIB Go To Local (GTL) is not a string command but rather a handshake on the bus. The active controller on the GPIB (i.e. your GPIB card) directs that handshake at a particular device (address), when you invoke your particular IO Libraries' function for doing that. Here is a similar discussion I see occurred in a different instrument forum: 34401A return to local in gpib scpi mode Sending GTL to a device on the interface puts that device into Local mode but doesn't really affect the interface itself. However if you refer to the VISA Help documentation for that viGpibControlREN function, you'll notice that function can also assert or de-assert the REN line on the interface. Asserting the REN line does have the effect of putting the devices on that interface into Remote mode. De-asserting REN just allows each device on that interface to go back into Local (where its front panel keys will start responding again) when someone hits the instrument's Local button or invokes GTL for that instrument's address. I don't believe the Agilent IO Libraries have (for example, in the Interactive IO dialog or the VISA Assistant utility) a button that will invoke GTL for a device or assert-or-deassert the REN line, although the VISA Assistant does show in it's Attributes tab the current state of the REN line (among the GPIB-specific attributes). However, using any programming language from which you can access the functions in the VISA dll, you could write an executable that you could call via a command-line where it could receive a GPIB interface number and address number as command-line arguments, and it could call viOpen and viGpibControlREN to change the state as you like. |
|
|
|
uwyywefwd 发表于 2019-4-16 11:18 感谢您的回复,Bhokkan! 你的回复非常有帮助。 我们可以关闭此主题,除非其他人有任何其他问题或有任何其他要添加。 再次感谢! 以上来自于谷歌翻译 以下为原文 Thank you for your reply, Bhokkan! Your reply was very helpful. We can close out this thread, unless someone else has any other questions or has anything else to add. Thanks, again! |
|
|
|
只有小组成员才能发言,加入小组>>
1300 浏览 0 评论
2379 浏览 1 评论
2199 浏览 1 评论
2068 浏览 5 评论
2955 浏览 3 评论
1152浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
762浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
960浏览 0评论
1301浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-31 04:34 , Processed in 1.526864 second(s), Total 78, Slave 63 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号