IF-ELSE block in simulink

Assalamualaikum & hi all
I just want to know is it possible to end the IF-ELSE block execution process at certain point. Because in my model the IF_ELSE block keeps execute,unless i stop the model. My model run in real-time process using Wincon software

 采纳的回答

Kaustubha Govind
Kaustubha Govind 2011-11-3

0 个投票

You can put the If-Else subsystem inside an Enabled Subsystem that you can disable/enable at any point in the simulation.

5 个评论

thanks for reply...for example if it being disable it mean that the if-else subsystem will execute until it enable back right??
I suppose you meant to say "the if-else subsystem will *NOT* execute until it is enabled"? Yes, that's correct.
yup...but in my understanding if the if-else block run in real-time..the model keep on updated depending on the sample time..do the enabled subsystem able to disable/enable during that time??
Yes, the enabled subsystem will also look at the control signal at every time-step. If the control signal disables it, it will not run the contents of the subsystem.
k..thanks Kaustubha Govind...i got it

请先登录,再进行评论。

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Simulink Functions 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by