Simulink control from app
이전 댓글 표시
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?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Scopes and Data Logging에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!