Can I change the name of a parameter of a existing simulink block?
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Bou
il 21 Gen 2014
Risposto: Kaustubha Govind
il 27 Mar 2014
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
0 Commenti
Risposta accettata
Kaustubha Govind
il 27 Mar 2014
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)
0 Commenti
Più risposte (1)
ES
il 21 Gen 2014
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');
Vedere anche
Categorie
Scopri di più su Author Block Masks in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!