Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Using UDP in an S-Fcn on xPC target
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Nikita Visnevski

Posts: 3
Registered: 12/3/12
Using UDP in an S-Fcn on xPC target
Posted: Dec 5, 2012 10:37 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I was wondering if anybody was able to implement a udp protocol in an S-Fcn on the xPC target? My understanding is that it is very non-trivial, but clearly possible since Mathworks provides both UDP and Real-time UDP blocksets for use with xPC target. I use these blocksets at the moment. I do whatever I need to do in an S-fcn, and then pipe its outputs in Simulink to a Real-time UDP block.

Ideally, I would like to just send stuff over UDP directly out of my S-Fcn. This will allow me to transmit data in a separate thread, or over multiple ethernet adapters.

I cannot obviously use standard win32 libraries to implement udp since they require winsock.dll (or ws_32.dll) to be loaded to the xPC target, which is not supported.

Anybody knows of an approach? Any help is appreciated.

Nikita



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.