How to perform real-time simulation with Matlab script

7 次查看(过去 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.

采纳的回答

Walter Roberson
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.
  1 个评论
Shunsuke kishi
Shunsuke kishi 2019-11-8
Thank you for answering promptly. After all it is difficult.I'll try my best to use Simulink Desktop Real-Time.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Multicore Processor Targets 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by