xPC UDP Ethernet Card Selection

3 ビュー (過去 30 日間)
Tom
Tom 2013 年 2 月 26 日
回答済み: Suneesh 2013 年 12 月 4 日
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

回答 (1 件)

Suneesh
Suneesh 2013 年 12 月 4 日
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

カテゴリ

Help Center および File ExchangeTarget Computer Setup についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by