Have I understood something wrong when using "If Statement -block and If Action Subsystem -block in Simulink code?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Azzi Abdelmalek
el 20 de En. de 2013
Editada: Azzi Abdelmalek
el 20 de En. de 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 comentarios
Ver también
Categorías
Más información sobre Subsystems en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!