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

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

 Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 13 de Jun. de 2015
Editada: Azzi Abdelmalek el 13 de Jun. de 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')

Más respuestas (0)

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 13 de Jun. de 2015

Comentada:

el 13 de Jun. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by