Borrar filtros
Borrar filtros

Open system mask parameters

2 visualizaciones (últimos 30 días)
Amin Gholizad
Amin Gholizad el 28 de Ag. de 2023
Editada: Fangjun Jiang el 29 de Ag. de 2023
In simulink model explorer there is "Model Workspace" and you can create system msak for the variables in the model workspace. you can also open this parameter dialog box from Modeling -> component -> system mask -> mask parameters. However, I would like to create an annotation inside the model and when I click it this parameter dialog box to open. I do not know what to put in the ClickFcn of the annotation do to this. I have tried open_system(bdroot) and open_system(bdroot,'mask') but they do not work.

Respuestas (1)

Fangjun Jiang
Fangjun Jiang el 28 de Ag. de 2023
If the block has been masked, the command to open the masked parameters is
open_system(block)
  2 comentarios
Amin Gholizad
Amin Gholizad el 28 de Ag. de 2023
I know for the block it works, but for the whole model I could not find anything thats why I am asking.
Fangjun Jiang
Fangjun Jiang el 28 de Ag. de 2023
Editada: Fangjun Jiang el 29 de Ag. de 2023
I didn't find a way.
When the model is referenced in a "Model" block, open_system(ModelBlock) will open the parameter dialog. So, you could have the callback to create a new hidden model, add the Model block, reference the model and then open_system(ModelBlock). It is a stretch.
Within the model, there is another way to view the parameter dialog. Right click, Mask, System Mask Parameters. Providing this instruction as an annotation should make it easy enough for the user.

Iniciar sesión para comentar.

Categorías

Más información sobre Author Block Masks en Help Center y File Exchange.

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by