Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
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

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 13 Juin 2015
Modifié(e) : Azzi Abdelmalek le 13 Juin 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')

Plus de réponses (0)

Catégories

En savoir plus sur Modeling dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by