How can I show values of a library block parameters?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
madhan ravi
2023-11-26
编辑:madhan ravi
2023-11-26
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Author Block Masks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!