The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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.


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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.