How to activate or desactivate a simulink block?
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Good morning, I have a variable which change his value for 0 to 1 and viceversa. I know that there is a block to activate or desactivate a simulink block but if I use a enable block I can`t use goto or from blocks.
I need to use from or goto blocks, so has someone any idea to activate or desactivae a block?
Thanks for all.
1 Kommentar
Antworten (2)
Azzi Abdelmalek
am 5 Dez. 2014
set_param('ModelName/BlocName','Commented','off') % or on
3 Kommentare
Azzi Abdelmalek
am 5 Dez. 2014
Bearbeitet: Azzi Abdelmalek
am 5 Dez. 2014
It's a line of code, put it in a Matlab function block
Siehe auch
Kategorien
Mehr zu Install Products finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!