完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
我需要使用Agilent N1914A功率计进行一些简单的功率测量任务,以便将信息返回到VxWorks环境中运行的程序。
因此,IVI驱动程序似乎无法使用。 因此,我正在寻找有关如何通过以太网使用低级命令从C ++代码以编程方式控制Agilent功率计的信息。 我原本以为它就像将套接字连接到设备,发送SCPI命令和阅读响应一样简单。 但我无法在任何地方找到有关设备是通过TCP还是UDP进行通信的信息,也不知道它们将在哪个端口进行通信。 似乎大多数人都希望通过使用驱动程序来抽象出这些信息,但似乎我无法这样做。 我有什么选择? 以上来自于谷歌翻译 以下为原文 I have a need to do some simple power measurement tasks with an Agilent N1914A power meter so that the information is returned to a program running within the VxWorks environment. Because of this, it seems that the IVI drivers would not be available. Therefore, I am looking for information on how to programmatically control Agilent power meters from C++ code by using low level commands over ethernet. I would have thought it would be as simple as connecting a socket to the device, sending SCPI commands, and reading responses. But I cannot find information anywhere about whether the devices talk on TCP or UDP, or which port they will communicate on. It seems that most people want to abstract this information away by using the drivers, but it seems I won't be able to do so. What options do I have? |
|
相关推荐
1个回答
|
|
您好El Magnifico,请从此处下载并安装Agilent IO Library Suite 16.3:www.agilent.com/find/iosuite。
您可以在Agilent Connection Expert中设置LAN连接。 您可以指定默认协议(VXI-11),也可以使用套接字。 Agilent Connection Expert将提供可在VISA C ++程序中使用的VISA仪器地址。 样本VISA C ++程序可在Agilent Connection Expert的帮助 - >编程样本中找到。 我们还在Documentation-> API-> VISA下提供VISA帮助指南。 我强烈建议您下载支持N1914A的免费编程工具Agilent Command Expert。 可在此处下载:www.agilent.com/find/commandexpert。 此工具允许您从树中构建一系列SCPI命令来控制仪器。 完成后,导出功能将生成VISA C ++项目所需的所有代码。 Command Expert包含简单的10分钟入门指南,可帮助您快速入门。 以下是各种LAN协议所需的UDP / TCP端口列表安捷伦仪器使用NameProtocolPort它用于什么?注意VXI-11 / SICLLAN通信端口TCP动态,但通常从端口1024开始并从那里动态上升(您需要测试) 这适用于您的仪器)仪器的发现,与仪器的通信与ONC-RPC端口映射器一起使用ONC-RPC端口mapperTCP / UDP111仪器的发现,与仪器的通信与VXI-11 SICLLAN通信端口一起使用SCPI SocketsTCP5025Communication 使用仪器使用此端口打开原始TCP / IP连接以将原始SCPI命令发送到仪器HiSLIP TCP4880与仪器通信用于与较新的Agilent仪器通信SCPI TelnetTCP5024与仪器通信使用此端口打开与仪器的Telnet连接以发送SCPI 命令mDNS DiscoveryUDP5353发现instrumentmDNS用于dis 覆盖本地子网上较新的Agilent LXI仪器LXI EventsTCP / UDP5044Port仪器监听LXI事件所有安捷伦仪器均未实现此功能PTP EventsUDP 319Port在哪台仪器上监听精确时间协议事件消息并非所有安捷伦仪器都实现此功能ConnectivityEdited by:connectivity on 2013年4月29日上午9:48 以上来自于谷歌翻译 以下为原文 Hi El Magnifico, Please download and install Agilent IO Library Suite 16.3 from here: www.agilent.com/find/iosuite . You can setup a LAN connection in Agilent Connection Expert. You can specify the default protocol (VXI-11) or you can use sockets. Agilent Connection Expert will provide a VISA instrument address that you can use in a VISA C++ program. Sample VISA C++ programs can be found in Agilent Connection Expert under help->Programming Samples. We also provide a VISA help guide under Documentation->API->VISA. I would highly recommend that you download our free programming tool Agilent Command Expert which supports the N1914A. It can be downloaded here: www.agilent.com/find/commandexpert. This tool will allow you to build a sequence of SCPI commands from a tree to control your instrument. Once finished, the export feature will generate all the code needed for a VISA C++ project. Command Expert includes easy 10 minute getting started guide to get you started quickly. Below is a list of UDP/TCP ports needed for the various LAN protocols Agilent instruments use Name Protocol Port What is it for? Notes VXI-11/SICLLAN communications ports TCP dynamic, but usually starts at port 1024 and dynamically goes up from there (you will need to test this for your instrument) Discovery of the instrument, Communication with the instrument Used in conjunction with the ONC-RPC port mapper ONC-RPC port mapper TCP/UDP 111 Discovery of the instrument, Communication with the instrument Used in conjunction with the VXI-11 SICLLAN communication ports SCPI Sockets TCP 5025 Communication with the instrument Use this port to open a raw TCP/IP connection to send raw SCPI commands to the instrument HiSLIP TCP 4880 Communication with the instrument Used to communicate with newer Agilent instruments SCPI Telnet TCP 5024 Communication with the instrument Use this port to open a Telnet connection to the instrument to send SCPI commands mDNS Discovery UDP 5353 Discovery of the instrument mDNS is used to discover newer Agilent LXI instruments on the local subnet LXI Events TCP/UDP 5044 Port on which instrument listens for LXI Events Not all Agilent instruments implement this feature PTP Events UDP 319 Port on which instrument listens for Precision Time Protocol Event messages Not all Agilent instruments implement this feature Connectivity Edited by: connectivity on Apr 29, 2013 9:48 AM |
|
|
|
只有小组成员才能发言,加入小组>>
1338 浏览 0 评论
2400 浏览 1 评论
2223 浏览 1 评论
2086 浏览 5 评论
2978 浏览 3 评论
1266浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
786浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
1060浏览 0评论
1338浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-1-22 02:19 , Processed in 1.267928 second(s), Total 75, Slave 59 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号