error while using "simulink support package for arduino hardware"

3 Ansichten (letzte 30 Tage)
hamzi zughibi
hamzi zughibi am 2 Jun. 2022
Beantwortet: Kautuk Raj am 20 Sep. 2024
i got the following error when i'm trying click on monitor and tune
"Error occurred while executing External Mode MEX-file 'ext_comm': Failed to connect to the target. A time-out occurred while waiting for the connection response from the target. Possible reasons for the time-out: a) The target is not switched on. b) The target is not connected to your host machine. c) The application for the model is not running on the target. You might have clicked the Stop button. If the Run button is not dimmed, click it. Otherwise, click the Build button, which downloads and runs your application on the target."

Antworten (1)

Kautuk Raj
Kautuk Raj am 20 Sep. 2024
From my observation, you are experiencing a connection issue while using the Simulink Support Package for Arduino Hardware during the Monitor and Tune process.
This error message suggests that Simulink is having trouble communicating with the target board. A common cause of this issue during the runtime of an external mode simulation is high communication bandwidth usage, which can lead to temporary loss of connection.
To address this problem, consider updating MATLAB to version R2021a or later. This update introduces a new External Communication Interface called 'XCP on serial'. You can find documentation on the External Communication protocol through the links below in the respective releases:

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by