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
0 个评论
回答(1 个)
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
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Subsystems 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!