Borrar filtros
Borrar filtros

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

3 visualizaciones (últimos 30 días)
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.

Respuesta aceptada

Dimitri MANKOV
Dimitri MANKOV el 2 de Mayo de 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 comentario
Jari
Jari el 3 de Mayo de 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.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by