Effacer les filtres
Effacer les filtres

Disable blocks through code

7 vues (au cours des 30 derniers jours)
Antonio Garcia
Antonio Garcia le 12 Avr 2022
Good day people!
I want to disable a block in simulink through code in matlab. This is because even though I null the output of this source, it still affects the voltages and thus affect the system that I am working on. Thank you!

Réponses (1)

David John
David John le 19 Avr 2022
use set_param to set the "Commented" parameter to "on".
For example, if you have a model called "model" with a block that you want to disable called "block", you can try set_param('model/block','Commented','on');

Catégories

En savoir plus sur Physical Units 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!

Translated by