How to add a mask parameter to a simulink block
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
TAB
am 11 Mai 2012
Do you want to only change the value of parameter or you want to add more *Parameter fields* in the block?
Akzeptierte Antwort
Kaustubha Govind
am 11 Mai 2012
You need to do a set_param on the block to set MaskVariables, MaskPrompts, MaskValues, etc.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Author Block Masks finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!