how to access value from gui to simulink subsystem for mask resistor ????

2 次查看(过去 30 天)
i want to change my resistor value from gui... i gave for example set_param('MyModel/MySubsystem/MyBlock','resistance','10'); but it shows Myblock does not have resistance parameter.. help me to solve this problem

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2015-6-13
编辑:Azzi Abdelmalek 2015-6-13
To get the reals names of your parameters type
get_param('MyModel/MySubsystem/MyBlock','DialogParameters')
The name of the parameter you want to change is R, not resistance.
set_param('MyModel/MySubsystem/MyBlock','R','10')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

标签

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by