Effacer les filtres
Effacer les filtres

How to add a mask parameter to a simulink block

1 vue (au cours des 30 derniers jours)
grapevine
grapevine le 11 Mai 2012
Hello everyone,
For the purpose of my internship, I need to automate the creation of the mask parameters on a Simulink block.
Do you know if there is any Matlab instruction to add a parameter to a simulink block?
I thought to use this instruction
add_param('sys','parameter1','value1')
but unfortunately it works only for a block diagram, not for a single block.
thanks 4 reading
  2 commentaires
TAB
TAB le 11 Mai 2012
Do you want to only change the value of parameter or you want to add more *Parameter fields* in the block?
grapevine
grapevine le 11 Mai 2012
Unfortunately, I have to add more *Parameter fields* in the block

Connectez-vous pour commenter.

Réponse acceptée

Kaustubha Govind
Kaustubha Govind le 11 Mai 2012
You need to do a set_param on the block to set MaskVariables, MaskPrompts, MaskValues, etc.
  1 commentaire
grapevine
grapevine le 11 Mai 2012
thanks a lot
it works great
get_param(gcb,'MaskVariables')

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Author Block Masks dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by