I am working with c2000 f28379d. In "external mode ", if I set 1 second for LED BLINK, I am getting the same result. But "connected IO mode" fails . How to synchronize.

4 ビュー (過去 30 日間)
ARUN
ARUN 2024 年 11 月 27 日
回答済み: Kothuri 2024 年 12 月 11 日

回答 (1 件)

Kothuri
Kothuri 2024 年 12 月 11 日
Hi ARUN,
Connected I/O mode and External mode operate differently in terms of how they communicate with the hardware and handle real-time constraints.
  • Connected I/O Mode may fail due to timing mismatch as it relies on the communication link between Simulink and the F28379D hardware, which is often slower than the actual hardware processing speed.
  • Real-Time Violation is due to if your LED blink logic expects precise 1-second intervals, the communication delay will prevent Connected I/O mode from maintaining the timing.
  • In Connected I/O mode, the control logic runs in Simulink on the host computer, and commands are sent to the hardware (e.g., the LED state change) over a communication interface (e.g., USB, UART).
  • The hardware acts as an I/O interface, but the timing of operations depends on the communication link and Simulink's execution speed.
  • To rectify the issue, set the sample time of your logic to a value that ensures commands are sent frequently enough. For example, use a “fixed-step solver” with a step size of 0.1 seconds.
You can refer the below documentation link for more info on Connected I/O

カテゴリ

Help Center および File ExchangeMulticore Processor Targets についてさらに検索

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by