필터 지우기
필터 지우기

How to make simulink solve in real time

조회 수: 2 (최근 30일)
Stephen Kramer
Stephen Kramer 2016년 3월 11일
편집: zeghib okba 2016년 3월 19일
Hello I was doing this example for the Arduino Simulink support package:
And I copied the model to a new blank Simuink model for testing. Simulation time was set to Inf and the discrete time sequence input block says it should repeat which it does continuously for the original example model I opened from the command prompt (arduinomega2560_communication), and you can watch the scope output in real time.
However for the new model I made by copying the blocks, the simulation does not solve in real time, it solves basically instantly. However, in External mode with the Arduino board it does run in real time. I checked that the solver was the same, ODE3. I can't find what option is necessary to make the model run in real time again under Normal mode. Thanks.

답변 (1개)

zeghib okba
zeghib okba 2016년 3월 19일
편집: zeghib okba 2016년 3월 19일
hello, Stephan may be you not choose 'enable to external mode' in simulation configuration. under the com number for arduino(automatically or manually).
sorry for my bad English.

카테고리

Help CenterFile Exchange에서 Block Libraries에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by