Clear Filters
Clear Filters

Can Simulink Real-time Send and Receive Data to a Host over Ethernet without involving MATLAB?

3 views (last 30 days)
Hi,
I need to figure out if Simulink real time running on a target machine can send and recurve information to/from a host machine that isn't running MATLAB, over Ethernet.
My original plan was to use the "To Instrument" block which works perfectly when running the simulation under Simulink directly and using the real-time sync block in windows. The block doesn't let the model compile, however, so I can't put it on the target it seems.
I've also looked at the Ethernet communication example to connect two targets together, can that be used for my purposes or do both machines have to run the real-time kernel?
My backup idea is to use the C api but I would like to avoid doing that. Any help on the matter is appreciated.

Accepted Answer

Dimitri MANKOV
Dimitri MANKOV on 2 May 2024
Hi Jari,
Thanks for asking! The Simulink Real-Time target machine can communicate via UDP or TCP/IP with any external device supporting these protocols. You can use the corresponding blocks from the Simulink Real-Time library, similar to the example you are referring to.
I hope this is helpful!
Dimitri
  1 Comment
Jari
Jari on 3 May 2024
This question is so old that I figured out how to build the feature, deployed it in an academy setting, got a job at mathworks, built a generalized version for the robotics system toolbox, and later left mathworks. That was 8 years ago 😅
I appreciate the response though ❤. The question can now be closed.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!