App Designer interaction with SIMSCAPE?
조회 수: 34 (최근 30일)
이전 댓글 표시
I use this code to interact App Designer with simulink can work well,but can not work in simscape,why?
how can I interacr App Designer with simscape?
code:
- simInp = Simulink.SimulationInput('untitled');
- simInp = simInp.setVariable('a',app.EditField.Value);
댓글 수: 1
Aravind
2024년 10월 22일
Interaction between App Designer and Simscape can be achieved in a similar fashion to normal Simulink models. Could you please describe your problem in more detail, with the supporting model files if possible? This will help in identifying and debugging the issue.
답변 (1개)
Aniket
2024년 11월 19일 4:53
As Aravind mentioned, the interaction between App Designer and Simscape is similar to interaction with Simulink.
Please refer to the following MATLAB article for detailed instructions on using the "sim" command within App Designer.
I've also attached an MLAPP file (RC_app.mlapp) and a Simscape model (RC_simscape.slx). You can configure the resistance and voltage settings from the app and view the plot directly within it. This should provide guidance on how to proceed.
Hope this helps!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Statics and Dynamics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!