App Designer interaction with SIMSCAPE?
Mostra commenti meno recenti
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 Commento
Risposte (1)
Aniket
il 19 Nov 2024
0 voti
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!
Categorie
Scopri di più su Foundation and Custom Domains in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!