Pacing option not active in external mode

조회 수: 2 (최근 30일)
Hossein Rezazadeh
Hossein Rezazadeh 2020년 11월 11일
편집: Hossein Rezazadeh 2020년 11월 15일
I am trying to run Simulink on rasperry PI with a slower pace. this is possible on normal mode using pacing option but it is not possible in external mode. The simulink coder support package for ARM Cortex based VEX microcontrollers also does not work in external mode. any idea ?

답변 (1개)

Mark McBroom
Mark McBroom 2020년 11월 14일
When running external mode, the code from the Simulink model is running in real-time using target OS timers/threads. It is not possible to have this code run slower/faster than real-time. One way you could accomplish this would be to change the change the fixed step size to a larger number. For example, if the fixed step size is currently set to 0.1 sec, if you change to be 1.0 sec, the code would run 10 times slower on the embedded processor.
Thanks.
Mark.
  댓글 수: 1
Hossein Rezazadeh
Hossein Rezazadeh 2020년 11월 15일
편집: Hossein Rezazadeh 2020년 11월 15일
Then if I have already tunned some PID controllers in my model I should change all tunning factors as well by dividing them by 10 in this example. would that gaurantee a correct performance of the controllers then ?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by