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.
1 view (last 30 days)
Show older comments

1 Comment
Answers (1)
Kothuri
on 11 Dec 2024
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
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!