Have I understood something wrong when using "If Statement -block and If Action Subsystem -block in Simulink code?
2 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
Azzi Abdelmalek
on 20 Jan 2013
Edited: Azzi Abdelmalek
on 20 Jan 2013
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
0 Comments
See Also
Categories
Find more on Subsystems in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!