Simulink stalls on RaspberryPi after a certain aount of cycles

조회 수: 2 (최근 30일)
Hossein Rezazadeh
Hossein Rezazadeh 2021년 1월 7일
답변: Srija Kethiri 2022년 10월 27일
I am running Simulink on raspberryPI for predictive control of Air handling unit in a building. The Simulink model contains Adaptive MPC and LPV toollboxes with sample time of 1. But because in my calculations the time unit is one minute, for real time execeution I increase the sample time to 60 seconds.(Also for mpc object and mpcobj.Plant.Model and LPV object)
In normal mode it runs on the PC with no problem with sample time =60. On the PI it stalls after a certain number of cycles (say 10 to 15 cycles (10-15 minutes)). CPU and memory usage and PI temperature are quite normal. Pi is not hanging and I can still run same program again on it when this happens but I can not kill the process of the stalled session on the PI.
If I reduce the sample time (for example to 10s) it does not happen any more and runs with no problem for ever.

답변 (1개)

Srija Kethiri
Srija Kethiri 2022년 10월 27일
Hi Hossein,
I understand that in normal mode, your model runs on the PC with no problem with sample time of 60s, but stalls on the PI after a certain number of cycles.
The reason for this issue might be any of the signals are not working as expected. So, log all the signals and run the model with sample time of 10s and 60s to check whether all the signals are working as expected.
If all the signals are working as expected, to better assist you please share the model and reproduction steps
Hope this helps!

카테고리

Help CenterFile Exchange에서 Model Predictive Control Toolbox에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by