Can I change the name of a parameter of a existing simulink block?

Hello,
I want to change the name of a/the parameter of a PS Constant block. I want to change it from 'constant' to 'constant1'.
Is this possible?
When I go to the Mask-Parameters I cant adjust anything because it is read only. Can I maybe make my own block, copy all properties of the PS Constant block into it and only change the parameter name?
Thanks in advance!
Greetings Boudewijn

 채택된 답변

Kaustubha Govind
Kaustubha Govind 2014년 3월 27일

0 개 추천

You can't change the name of the parameter, but you can add another mask on top of the block and create a new set of parameters that map to the ones on the mask below. (In newer releases, this mapping can be done automatically by promoting block parameters to a mask)

추가 답변 (1개)

ES
ES 2014년 1월 21일
you can use a set_param to set all the properties of a block.
set_param(BlockPath,'PropertName','PropertyValue');
for ex:
to set block name,
set_param(BlockPath,'BlockName','Constant1');

댓글 수: 1

Thanks, but i dont want to change the name of the Block. I want to change the name of a Parameter.
So for ex: The name of the PS Constant block is Irradiance. The Parameter name is constant. I want to change the name of the parameter 'constant', not the value!

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Simulink에 대해 자세히 알아보기

제품

질문:

Bou
2014년 1월 21일

답변:

2014년 3월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by