Selecting the NIC for host communication on the xpcTarget target
2 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Gordon Weast
on 10 Feb 2012
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 Comments
See Also
Categories
Find more on Target Computer Setup in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!