Live CAN message from Simulink to App Designer
Show older comments
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 Comments
Umar
on 30 Jun 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
on 1 Jul 2024
Min
on 1 Jul 2024
Accepted Answer
More Answers (0)
Categories
Find more on Deployment, Integration, and Supported Hardware 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!