MATLAB Answers

Error running in Simulink external mode with Arduino

1 view (last 30 days)
Sarah
Sarah on 29 Nov 2017
I have been using an S-function I created in Simulink to communicate with multiple compass sensor modules for the past couple of months with no issue, but for whatever reason it stopped working this week and I started getting the error:
Error occurred while executing External Mode MEX-file 'ext_comm':
ExtSetTargetPkt() call failed on CLOSE.
Ensure target is still running
I am only getting this error when I run this particular s-function in external mode. The board works with other models including other s-functions I made with a very similar format) and this particular model is able to be deployed to hardware as well. Any idea why it stopped working?

  0 Comments

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by