How to perform real-time simulation with Matlab script
조회 수: 4 (최근 30일)
이전 댓글 표시
I understand that Simulink Desktop Real-Time is used when I want to perform real-time simulation in Simulink, but I can do real-time simulation if I am writing code in a Matlab script without using Simulink. Is it? Please tell us if you have the necessary options.
댓글 수: 0
채택된 답변
Walter Roberson
2019년 11월 8일
No, there is no provided way to do that.
The closest you can get is to use MATLAB Coder to compile to generic C or C++, and then build that code with the tool chain for a real time OS such as QNX.
The reason this is not the same is that Simulink Real Time does specific analysis and code arrangement and memory management to ensure that real time targets are met, but the output of MATLAB Coder makes no attempt to do those. It might be possible to modify the code for real-time work but it would not be ready for real-time as-is.
추가 답변 (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!