The sharing of the Ethernet connection happens since you are using the (non real time) UDP blocks. For the targets to exchange information on a separate dedicated network, separate dedicated Ethernet cards have to be used. In that case the appropriate blocks to be used are available in th library under: xPC Target > Real-Time UDP . These "Network Configuration" block has PCI Bus and Slot parameters that may be used to select the dedicated card to be used. See: http://www.mathworks.com/help/releases/R2013b/xpc/io_ref/network_configuration_rt_udp.html
xPC UDP Ethernet Card Selection
3 次查看(过去 30 天)
显示 更早的评论
Hello,
I have created a really simple UDP communications model. The model uses Matlab R2009b and the standard xPC UDP Send and Receive blocks from that version.
I run this model on two different xPC machines and connect them together via a switch so that they can send and receive a sine wave between them.
This all works fine and I can see the xPC systems sending the sine waves and receiving them on xPC Scopes.
A problem occurs when the xPC Target Explorer polls the xPC systems and causes the transmissions/receives to stop (stops updating). I sort of expected this as its UDP and there is obviously other overheads on the bus.
However I need this comms link to run un-interrupted. The easiest solution is to move the Ethernet port used to another card in the xPC systems.
Ive trawled through all the blocks documentation and do not understand / cant see how to change the device that this information is sent over.
Can you please help
Kind Regards
Tom
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Target Computer Setup 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!