How to add a mask parameter to a simulink block
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
TAB
2012-5-11
Do you want to only change the value of parameter or you want to add more *Parameter fields* in the block?
采纳的回答
Kaustubha Govind
2012-5-11
You need to do a set_param on the block to set MaskVariables, MaskPrompts, MaskValues, etc.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Author Block Masks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!