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 CenterFile Exchange에서 Target Computer Setup에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by