Effacer les filtres
Effacer les filtres

How can I show values of a library block parameters?

1 vue (au cours des 30 derniers jours)
Ömer
Ömer le 31 Oct 2023
Modifié(e) : madhan ravi le 26 Nov 2023
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?

Réponses (1)

madhan ravi
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.

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!

Translated by