How to change the Busselector block default parameters using m-script? (Changing the default parameter value of a built-in block is not allowed)
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
new_system('testModel');
x = 30;
y = 30;
w = 30;
pos = [x y+h/4 x+w y+h*.75];
add_block('built-in/Inport',[sys '/In1'],'Position',pos);
pos1 = [(x+offset) y (x+offset)+w y+h];
add_block('built-in/BusCreator',[sys '/Busselector'],'Position',pos1);
set_param('built-in/BusCreator','Inputs',15)
Now it say's: Changing the default parameter value of a built-in block is not allowed
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Reporting and Database Access dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!