Clear Filters
Clear Filters

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

2 views (last 30 days)
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

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 13 Jun 2015
Edited: Azzi Abdelmalek on 13 Jun 2015
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')

More Answers (0)

Categories

Find more on Modeling in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!