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일)
이전 댓글 표시

댓글 수: 1
답변 (1개)
Kothuri
2024년 12월 11일
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Multicore Processor Targets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!