Simulink control from app
Show older comments
I'd like to control the simulation of a Simulink model from an app.
I have a Simulink model (model.jpg) with Analog Output/Input blocks connected to NI myDAQ. The model works well: I can pause simulation, continue simulation and stop simulation.
I have an app (matlab_app.jpg) with the Simulink control buttons from the Simulink library in the App Designer:
- simulation starts with Run button
- if I pause simulation the continue icon does not appear and simulation gets stuck
- if I stop simulation I get an error (error.jpg)
I have tried the Simulink control buttons with a simple Simulink model (sourse+gain) and the buttons work properly so the problem seems to arise with the Analog Output/Input blocks. Why does it happen? Any suggestion how to fix the problem?
Accepted Answer
More Answers (0)
Categories
Find more on Scopes and Data Logging 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!