Simulink control from app
Mostrar comentarios más antiguos
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?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Scopes and Data Logging 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!