Simulink External Mode Timed Out
이전 댓글 표시
Hi, running my Simulink model in external mode will yield the following error:
Error occurred while executing External Mode MEX-file 'ext_comm': Timed-out waiting for second connect response packet.
The model involves transmitting three different CAN messages from an Arduino board - please see the attached image for reference.
I've spent ages troubleshooting this to no avail, here's what I've tried so far.
- Building and deploying the model is fine and does not result in the error. However I would like to monitor and tune parameters live.
- Reducing the number of messages (i.e. sending only a single CAN-ID) will not incur the error.
- Changing model baud rate does not solve the issue - I am running a genuine Arduino with ATmega16u2.
- Changing the model explorer 'configuration' does not solve the issue.
I am approaching memory limits of the Arduino (circa 85% program and data) with 'Monitor and Tune' but am not exceeding this.
Any help would be greatly appreciated. The model should otherwise work, but feel free to make suggestions for improvement.
댓글 수: 3
Jiachen Lu
2021년 8월 24일
Arun Kumar
2021년 8월 26일
Hi Jiachen Lu,
Which Arduino board are you using. If using Uno, consider using other boards with more memory like Arduino Mega, Due, MKR.
Have you tried "Build, Deploy & Start" ?
Thanks,
Arun
Jiachen Lu
2021년 8월 26일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Arduino Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!