Selecting the NIC for host communication on the xpcTarget target
1 次查看(过去 30 天)
显示 更早的评论
Hello! I have multiple network adapters in my target machine. One I can boot from and one that is capable of gigabit communication, which I want to use for real time UDP communication.
I want to boot xpc target via network so I have to connect the host pc to the boot-able card. Xpc target boots without problems but the host cant connect to it. This is due to the fact that the target wants to communicate to the host via the gigabit card, which is not possible (it shows PCI Bus and Slot of the gigabit card in the upper right window on the target).
It does not matter which card I put in which PCI slot, xpc target always chooses the gigabit card for host communication.
Is there any way (while creating the boot image, while booting or while xpc target runs) where I can configure it to use the other card?
Thanks in advance!
0 个评论
回答(1 个)
Gordon Weast
2012-2-10
We enumerate the Ethernet boards in the system and choose one based on the host side xPC environment variable, EthernetIndex.
By default, EthernetIndex is equal to '0'. This works for any system that has only one Ethernet board.
You can try setting EthernetIndex to '1'.
> setxpcenv('EthernetIndex', '1')
Then rebuild the kernel and reboot with the new kernel.
The particular index that points to any given card may change in R2012a. We've slightly modified the algorithm to make it more predictable. In earlier versions the assigned index was hard to predict.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Development Computer Setup 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!