フィルターのクリア

Have I understood something wrong when using "If Statement -block and If Action Subsystem -block in Simulink code?

2 ビュー (過去 30 日間)
Hello everybody,
my question is about If-statement block and If Action subsystem block. I understand that when I want to build if statements in Simulink, I have to use them together. I´ve been using if statement blocks and sometimes very weird things happens in the code although if-statements are very familiar to me.
So, when signal to the If Action Subsystem is 0, does it mean that nothing in the If Action Subsystem is run?
And when the control signal is 1, then everything what is inside of the If Action Subsystem, is run?
Just want to know, if the signal coming from the If- block to subsystem block is just an enabling signal to run or not to run the subsystem...?
Thank you for all kind of help,
Ion

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 1 月 20 日
編集済み: Azzi Abdelmalek 2013 年 1 月 20 日
When Subsystem 1 is enabled, the output of subsystem 2 will maintained until subsystem will be enabled. That means if the output of subsystem is 10, it will stay 10 until this subsystem will be enabled

カテゴリ

Help Center および File ExchangeSubsystems についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by