Simulink model not running in real time

21 ビュー (過去 30 日間)
Amy
Amy 2025 年 2 月 6 日 11:45
回答済み: praguna manvi 2025 年 2 月 11 日 11:24
If using 'Connected IO' it runs in real time but 'Run on board' it doesn't. When in 'Run on board' every 1 second in real time is 0.001 seconds in Simulink. When using 'Connected IO' no data is displayed from the ultrasonic sensor.

回答 (1 件)

praguna manvi
praguna manvi 2025 年 2 月 11 日 11:24
Hi @Amy,
As I see, you are experiencing different execution durations with "Connected IO" compared to "External Mode." This difference is expected since "Connected IO" runs simulations on the PC, while "External Mode" runs the generated code on the actual hardware. For more information, refer to the documentation under "How Connected IO Differs from External Mode":
Additionally, the ultrasonic sensor is currently not supported with "Connected IO." You can find the list of supported sensors in the documentation below:
Hope this helps!

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by