MATLAB: How to create a level triggered subsystem in simulink

level triggeredsimulinksimulink subsystemtriggered subsystem

I need an output from a triggered subsystem as long as a variable,say 'flag' remains high and the input to the subsystem keeps on changing while 'flag' is high.How to do this?

Best Answer

Use an "Enabled Subsystem" block or even the "Enabled and Triggered Subsystem" block.
Related Question