Baeglebone Black in Simulink can't handle sample time of 0.001s.

7 ビュー (過去 30 日間)
PEDRO HENRIQUE Ulhoa
PEDRO HENRIQUE Ulhoa 2022 年 7 月 5 日
回答済み: Pratyush 2024 年 8 月 20 日
Beeaglebone black with simulink can't handle 1kHz. I am trying with just a Led blinking example. When I put 0.001s of sample time in the model configuration panel and StopTime simulation of 10s. Looks like the BBB is taking longer than 10s to finish the code. I am also deploying the code to the hardware, not seeing any signal in "real time".
  1 件のコメント
Henning König
Henning König 2024 年 8 月 17 日
@PEDRO HENRIQUE Ulhoa did you manage to solve this? Also in the need for >1kHz sample times..

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

回答 (1 件)

Pratyush
Pratyush 2024 年 8 月 20 日
Hi Pedro,
To address the BeagleBone Black's inability to handle a 1 kHz LED blinking task with Simulink:
  • Reduce the sample rate to improve performance.
  • Use a fixed-step solver with an appropriate step size.
  • Simplify the model and use Embedded Coder for optimized code.
  • Ensure the BBB runs in real-time mode; consider using an RTOS.
  • Use hardware PWM for precise timing.
  • Verify deployment settings and use external mode for real-time monitoring.
  • Add diagnostics to log execution times and check system load.
These steps should help optimize the setup and improve performance.

Community Treasure Hunt

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

Start Hunting!

Translated by