xpc target does not work with multiple NICs
4 次查看(过去 30 天)
显示 更早的评论
Hello!
I cannot run an xpc-target PC with multiple NICs plugged in. I need realtime UDP support, so I connected two compatible NICs in two PCI ports. If I connect the host PC to the wrong network adaptor, xpc target doesn't network-boot. If I connect it to the other, it boots, displays the correct PCI port but the host cannot connect to it. Both of the NICs work fine if the other is not connected.
I use Intel PRO 100 S cards but I also tried NETGEAR GA 311 and 3Com 3C905-TX.
The funny thing is that although (or maybe because) xpc target has no driver for this specific 3Com Card, boot and target-host communication (via the second, Intel card) work, the 3Com card is even displayed in the PCI device list but of course I cannot send realtime UDP packages over it.
What is the problem here and what can I do?
0 个评论
回答(1 个)
Shiva Arun Kumar
2012-2-6
Hi Mirko,
As of R2010a:
If the target computer has multiple Ethernet cards, type the following MATLAB commands to specify which card to use. These commands assume that the target computer name is nonDefaultTarget.
allTargets = xpctarget.targets;
myTargetEnv = allTargets.Item('nonDefaultTarget');
set(myTargetEnv, 'EthernetIndex', '#');
# indicates a single digit to specify the index number for the Ethernet card. For example, set(myTargetEnv, 'EthernetIndex', '2'); selects the Ethernet card with index number 2 as the target computer card.
After you type this command, boot the target. The kernel selects the specified Ethernet card as the target computer card instead of selecting the default card with index number 0.
Alternatively, if you have a single target computer system, you can use setxpcenv(‘EthernetIndex', '#'), For example, setxpcenv('EthernetIndex','2') selects the Ethernet card with index number 2 as the target computer card.
Hope that helps,
Shiva
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Multicore Processor Targets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!