How to check real-time data generated by simulink in C++
조회 수: 1(최근 30일)
표시 이전 댓글
장형 2023년 2월 1일
답변: Mark McBroom 2023년 2월 2일
Is there a way to check the real-time data generated by simulink in a C++ program or C# program?
First of all, I want to create a simulink dll and check it in a C++ program.
It is impossible to check in real time using communication such as TCP.
Since I am new to simulink, I am not sure how to approach to check data in real time using dll. Any help would be appreciated.
Mark McBroom 2023년 2월 2일
External mode sounds like wha tyou are looking for. See this description of external mode using the TI C2000 Hardare Support Package. https://www.mathworks.com/matlabcentral/answers/751504-overview-executing-ti-c2000-simulink-models-in-external-mode
If there is a support package for your processor, you are all set. If not, you'll have to write your own support package to obtain External Mode or use MathWorks Consulting Services to develop a support package for you.
Here is a list of processors for which a hardware support package exists: https://www.mathworks.com/hardware-support.html?q=&fq%5B%5D=hardware-support-custom-tags:c-c-plus-plus-code-generation&page=1
Find more on Simulink Coder 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!