How do I get a compiled Simulink Model to run at real-time?
조회 수: 11 (최근 30일)
이전 댓글 표시
I have Simulink models that I need to run at real-time (ie 1s Model time == 1s Computer time). In 2017b I'm using the "Simulation Pace" block which works perfectly when running within Simulink.
However, when I compile my model to run as standalone application (Generic Realtime Target), it does not respect the Simulation Pace and instead runs at full speed. This is an issue for me as I need to be able to run these models as standalone.
I have tried many of the Simulation Pace blocks that are available but none of them seem to work when compiled.
Is there a way to have "Simulation Pace" behaviour in a compiled model, or is there another way to have a Standalone model that can run at real-time?
댓글 수: 5
Chris P
2020년 5월 26일
Thanks, Phil and sorry for my slow reply.
I'll investiage more and perhaps downgrade to 2019b and give that a go.
Thanks again!
채택된 답변
추가 답변 (1개)
Michele Facchinelli
2019년 11월 5일
Hi Phil,
To do this kind of simulations you can use Simulink Desktop Real-Time, which provides a real-time engine for executing Simulink models on a Microsoft Windows PC. It enables you to create and control a real-time system for rapid prototyping or hardware-in-the-loop simulation.
Please find some more information on this product here:
- https://uk.mathworks.com/products/simulink-desktop-real-time.html
- Documentation: https://uk.mathworks.com/help/sldrt/index.html
Feel free to contact Technical Support by creating a support request online if you have any questions regarding this:
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Multicore Processor Targets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!