Have I understood something wrong when using "If Statement -block and If Action Subsystem -block in Simulink code?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
Azzi Abdelmalek
il 20 Gen 2013
Modificato: Azzi Abdelmalek
il 20 Gen 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 Commenti
Vedere anche
Categorie
Scopri di più su Subsystems in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!