Model functioning in external mode, but not when built and deployed
Mostrar comentarios más antiguos
I am currently working on a project involving a motorized platform controlled by an arduino due. The inputs are two signals on two digital pins and the outputs are analog through the DAC0 and DAC1 pins.
When run in the monitor and tune external mode the model works correctly. However when I build and deploy the model the motors being controlled behave erroneously. While I am running the model in monitor and tune I can even hit the disconnect button in simulink and completely disconnect my computer and the device will function as desired, but if I hit the reset button on the arduino it behave erroneously once again.
I have tried changing the solver settings to fixed step, and a discreet solver as mentioned in this forum post-
This did not change any results.
Do you guys have any ideas why simulink does this? isn't the idea that I can tune my model in the monitor and tune app and then upload that code with the build function and it should do the same thing?
Model attached

1 comentario
Quinn Riley
el 12 de Mayo de 2022
Respuestas (0)
Categorías
Más información sobre Deployment, Integration, and Supported Hardware en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!