Simulink stalls on RaspberryPi after a certain aount of cycles

1 回表示 (過去 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 Center および File ExchangeModel 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