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

Mohd Hazny Aziz
Mohd Hazny Aziz 2011년 11월 4일
thanks for reply...for example if it being disable it mean that the if-else subsystem will execute until it enable back right??
Kaustubha Govind
Kaustubha Govind 2011년 11월 4일
I suppose you meant to say "the if-else subsystem will *NOT* execute until it is enabled"? Yes, that's correct.
Mohd Hazny Aziz
Mohd Hazny Aziz 2011년 11월 9일
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??
Kaustubha Govind
Kaustubha Govind 2011년 11월 9일
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.
Mohd Hazny Aziz
Mohd Hazny Aziz 2011년 11월 11일
k..thanks Kaustubha Govind...i got it

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Subsystems에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by