Simulink stalls on RaspberryPi after a certain aount of cycles
3 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
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!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Model Predictive Control Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!