Could this happen because i use global variables?
The model that you are trying to run in External mode does not match the application running on your target. Rebuild the model, run it on your target, and start External mode simulation again.
31 views (last 30 days)
Show older comments
Pascal Viertel on 22 Jun 2018
Commented: Pascal Viertel on 2 Jul 2018
Everytime i try to simulate my model in external mode i get this error. I dont have an idea which changes are made in my code between deploying to hardware and the start of the simulation. Is there any chance to detect these changes with some kind of workspace comparison e.g?
Gayatri Menon on 26 Jun 2018
Could you try cleaning up all the files related to the model on the Raspberry Pi and MATLAB as mentioned below. Save the model before deploying and relaunch the model in External Mode and then check if you are facing the same error
1. Go to the home directory in Raspberry Pi, delete all folders and files generated corresponding to the model 2. In MATLAB Current Browser, delete the slprj and all generated project and .elf files corresponding to the model.
Also, check out the below MATLAB answer.
Find more on I2C Devices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!