From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.



如何通过某个以太网口扫描TCP/IP仪器?



主要软件:
主要软件版本: 3.1
主要软件修正版本: N/A
次要软件: N/A

问题: 我的电脑有两个网卡。当我在Measurement and Automation Explorer (MAX) 里扫描TCP/IP仪器的时候,它用了很长时间扫描两个网口。我如何让它只扫描器中的一个?

解答: 在不知道仪器IP地址的情况下,MAX没有办法定义使用哪个网卡或者端口,所以它会尝试扫描两个网络。
一个好办法是在电脑中指定一个静态路由来通过某块卡扫描。

当MAX扫描TCP/IP仪器,例如VXI 11仪器,它在整个网络作了一次广播。它会发一个包给地址255.255.255.255。

这意味着,你要做的就是修改电脑里的路由表。

注意,这样做会使所有的广播通过特定端口,因此会影响到别的需要发送广播的软件。


相关链接:
KnowledgeBase 2CMST8V: How Do I Control Ethernet Instruments with NI-VISA?
KnowledgeBase 2YIFKEN1: How Do I Configure an Instrument to Communicate via TCP/IP in MAX?

附件:





报告日期: 10/19/2006
最近更新: 10/19/2006
文档编号: 3E6CRNRY