Can Simulink Real-time Send and Receive Data to a Host over Ethernet without involving MATLAB?
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
Dimitri MANKOV
2024-5-2
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
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Target Computer Setup 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!