Simscape Block Parameter not Tunable
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Matthew Mishrikey
am 6 Jan. 2022
Kommentiert: Matthew Mishrikey
am 13 Jan. 2022
I wish to control a Simscape block parameter using the dashboard slider switch.
I select Temperature Source, but the slider switch does not recognize it as having a tunable parameter.
The only block I can link the switch to is the scope!
Are the dashboard elements not compatible with simscape ones?
0 Kommentare
Akzeptierte Antwort
Pratyush Roy
am 11 Jan. 2022
Hi Matthew,
Simscape run-time parameters are run-to-run tunable. Therefore, for Dashboard blocks linked to Simscape blocks, changing the dials during simulation does not affect the simulation results.
To use Dashboard blocks for run-to-run tuning of Simscape block parameters, we can designate the parameter as Run-time configurable, associate it with a workspace variable, and link the Dashboard block to the workspace variable. The link here might be helpful for more information.
Hope this helps!
3 Kommentare
Pratyush Roy
am 12 Jan. 2022
Hi Matthew,
Currently setting a Simscape parameter to any other configuration other than "run-time" and then connecting it to a Dashboard block is a limitation. The issue of tuning Simscape Variables using Dashboard blocks is a known one and our developers will try to fix it in a future release.
To link a dashboard block to a workspace variable, consider defining a variable, say T, in the base workspace and set the Parameter value for temperature in the Temperature Source as T. Then the dashboard blocks can be linked to the variable T. Please refer to the image file attached for reference,
Hope this helps!
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Control Simulations with Interactive Displays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!