xPC UDP Ethernet Card Selection

4 views (last 30 days)
Tom
Tom on 26 Feb 2013
Answered: Suneesh on 4 Dec 2013
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

Answers (1)

Suneesh
Suneesh on 4 Dec 2013
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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!