Disabled a button with Simulink

Hello everyone !
I work on an project which is the following : I have to disable a button according to different conditions during simulation.
I tried to comment out the button automatically with a matlab function but I had an error.
So I guess I cannot comment out automatically a block when the simulation is running.
Do you have any ideas how it would be possible to disable a button instead of commenting out the button ?
Thank you for your help !
Eloise

Antworten (1)

Fangjun Jiang
Fangjun Jiang am 3 Jun. 2020

0 Stimmen

Try this. Put all those blocks inside an Enabled Subsystem. Use your logic to Enable/Disable the subsystem.

Kategorien

Mehr zu Create Large-Scale Model Components finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2018b

Gefragt:

am 3 Jun. 2020

Beantwortet:

am 3 Jun. 2020

Community Treasure Hunt

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

Start Hunting!

Translated by