How can I show values of a library block parameters?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I added the battery from the library in Simulink. I want to use some parameters of this battery (for example, Fully charged voltage) while the simulation runs. How can I do it?
0 commentaires
Réponses (1)
madhan ravi
le 26 Nov 2023
Modifié(e) : madhan ravi
le 26 Nov 2023
you can use MATLABFucntion block and use get_param(gcb, "Fully_charge_voltage") to get the value of the masked parameter. Assuming Fully_charge_voltage is the name of the parameter. The name of the parameter can e viewed by clicking the masked subsytem and using ctrl+M shortcut. Under Parameters&Dialog you should be able to see the name of the parameter.
0 commentaires
Voir également
Catégories
En savoir plus sur Author Block Masks dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!