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 (최근 30일)

답변 (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 CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by