Simulink model not running in real time

11 views (last 30 days)
Amy
Amy on 6 Feb 2025
Answered: praguna manvi on 11 Feb 2025
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.

Answers (1)

praguna manvi
praguna manvi on 11 Feb 2025
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!

Categories

Find more on Arduino Hardware in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!