Live CAN message from Simulink to App Designer
Mostrar comentarios más antiguos
Hi all,
I am having issue with both Simulink and App designer due to Arduino Hardware limitation.
So my new approach is to read live CAN message via Simulink and bring that data to App designer.
I was able to run the simulation but it is running as just 'start' not 'monitor and tune' by using this code
set_param(app.ModelName,'SimulationCommand','Start')
Is there a way to programatically run 'monitor and tune' so I can run simulink via App Designer on Arduino?
Thanks!
3 comentarios
Umar
el 30 de Jun. de 2024
Hi Min,
To run Simulink in 'monitor and tune' mode programmatically, you can use the following code snippet:
set_param(app.ModelName, 'SimulationCommand', 'Connect')
This command will switch the simulation mode to 'monitor and tune', allowing you to interactively tune parameters during simulation. By using this command in your App Designer code, you can achieve real-time monitoring and tuning of your Simulink model on Arduino hardware.
Hope this will help resolve your problem.
Min
el 1 de Jul. de 2024
Min
el 1 de Jul. de 2024
Respuesta aceptada
Más 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!