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!