我能够通过编程的方式为我的DeviceNet设备获取一个MAC IDs的列表吗?
主要软件:
主要软件版本: 1.5
主要软件修正版本: N/A
次要软件: Driver Software>>NI-Industrial Communications for DeviceNet
问题: 我想通过编程的方式来列出所有与我的NI-DNET或者NI-Industrial for Communications for DeviceNet板卡相连的MAC IDs。我能查看到哪些MAC IDs在我的DeviceNet网络上与我的设备关联吗?如果可以我该如何利用这些驱动来实现查看呢?
解答: 是的,这个可以通过任何一个驱动软件来实现。建议您使用NI PCI-8532, NI-PXI-8532 or NI-9882 and the NI-Industrial Communications for DeviceNet 驱动来完成您的新应用项目。两种驱动都拥有一个名为GetDeviceList.vi的范例,这个范例显示了如何通过编程的方式获取一个DeviceNet网络中的MAC IDs列表。您能在范例查找器中的如下路径中找到这个范例:Hardware Input and Output»DeviceNet for NI-DNET, and Hardware Input and Output » Industrial Communications » DeviceNet » Basic Examples。这些范例都用了不同的APIs,但完成的是相同的任务。
备注:这个范例包含在NI-DNET 1.5.0或之后的版本中。
相关链接: Products and Services: DeviceNet Interfaces KnowledgeBase 2Q39D58R: Can I Programmatically Change the Mac ID of My DeviceNet Device?
附件:
报告日期: 09/24/2004
最近更新: 09/28/2015
文档编号: 3DNDT47T
Other Support Options
Ask the NI Community
Collaborate with other users in our discussion forums
Request Support from an Engineer
A valid service agreement may be required, and support options vary by country.