How to process TCP/IP frames with Simulink Real Time Explorer
Show older comments
I need for my project to communicate between an application on a computer and a target (speedgoat) with TCP/IP.
As I use the Simulink Real Time software, I have access to the block TCP/IP, which enables me to get some « string » between our application and the Target Display block.
Now I would like to send commands and exchange data via TCP/IP, i.e. create a simple protocol over TCP/IP, handle buffers, but I don’t know how to get all the TCP/IP frames into Matlab in Real Time (« To Workspace » or other logging blocks are updated when the application is paused or over). Moreover I am looking for a way to handle the buffer in a proper way.
Thank you for your help!
3 Comments
Denis Gurchenkov
on 1 Sep 2020
What if you used MATLAB Function block inside Simulink, and from inside the block use MATLAB's TCP functions, would that work for you? https://www.mathworks.com/help/matlab/tcpip-communication.html
Florent POTEL
on 1 Sep 2020
Jon Lobo
on 22 Oct 2020
From what I recall, the tcpip blocks in Simulink Real-Time also work in desktop simulation. You should be able to use the same ones.
Answers (0)
Categories
Find more on System Configuration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!