How to initialise Goto variables used in enabled subsystems
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Daniel
am 29 Nov. 2022
Kommentiert: Djordje
am 13 Aug. 2024
How can I initialise Goto variables in an enabled or switch case action subsystem?
I use the Goto blocks to reinitialize the integration variable when one subsystem is enabled, as described here: Building a Clutch Lock-Up Model
Now I can't find a clean way to initialize the goto variables when the model is started. As there is no previously active subsystem, no value can be passed to initialize the variable.
0 Kommentare
Akzeptierte Antwort
Jim Riggs
am 29 Nov. 2022
You should not need to "initialize" the Goto variables. The "Goto / from" blocks are simply a way to connect a signal without showing the connecting line. The Goto block gets its value from the signal line that is the input to the block.
4 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Conditionally Executed Subsystems and Models finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!