Simulink model deployed in Raspberry Pi is not running in Real-time

1 回表示 (過去 30 日間)
Mogilicharla Suresh
Mogilicharla Suresh 2023 年 6 月 20 日
編集済み: Prasanth Sunkara 2025 年 1 月 13 日
I have a simulink model for grid connected PV system. In that model Modbus Slave write blocks are used to store all the power system network measurements, so that these values can be read from other Modbus master device.
The model is successfully built and gets deployed on Raspi with out any errors. I could read the values from another modbus mater. However, the model is running very slowly, and it tooks minutes to reach to the state of 1 sec in simulation.
Please help me, How can I solve this issue.
  3 件のコメント
Mogilicharla Suresh
Mogilicharla Suresh 2023 年 6 月 26 日
Actually, the model is deployed on Raspi and is running in external mode. No errors. However, when I run the same model in my PC (Simunlink) lets say the out put voltage is reaching 440V at 1 Sec, but on Raspi, the same value is reaching after I wai for few minutes. Is the model gets heavy for Raspi to Run?
Burak
Burak 2025 年 1 月 9 日
移動済み: Walter Roberson 2025 年 1 月 9 日

Do you have a solution for this, can you help me with this?

サインインしてコメントする。

回答 (2 件)

Raghava S N
Raghava S N 2023 年 6 月 27 日
Hi Suresh,
You could try increasing the sample time, which forces the model to use lesser number of time steps to simulate your model. Hence, it should decrease the simulation time of the model.

Burak
Burak 2025 年 1 月 9 日

Do you have a solution for this, can you help me with this?

  1 件のコメント
Prasanth Sunkara
Prasanth Sunkara 2025 年 1 月 13 日
編集済み: Prasanth Sunkara 2025 年 1 月 13 日
Hi @Burak,
Deploying Physical models(like PV systems etc from Simscape) can get computationally heavy on Raspberry Pi. However, based on how the system is modelled in Simulink it maybe possible to deploy some of these on Raspberry Pi.
Please reach out to MathWorks technical support for deeper discussion on your specific scenario.
Thanks,
Prasanth

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeRaspberry Pi Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by