apply initial conditions to a subsystem
Ältere Kommentare anzeigen
I want to apply an external initial condition to my resettable system, just like how it is possible with a integrator block. Anyone know how to do that?
Antworten (1)
Fangjun Jiang
am 4 Nov. 2019
0 Stimmen
Use "Initialize Function" in library Simulink\User-Defined Functions.
4 Kommentare
ariel bintang
am 4 Nov. 2019
Fangjun Jiang
am 4 Nov. 2019
Integrator is supported. Not sure why continuous State-Space is not supported. If dropping a continuous State-Space block, the StateWriter block seems to "see" it. I didn't try to see if it actually works.
ariel bintang
am 4 Nov. 2019
Bearbeitet: ariel bintang
am 4 Nov. 2019
Fangjun Jiang
am 5 Nov. 2019
Bearbeitet: Fangjun Jiang
am 5 Nov. 2019
No longer need to use "Resettable Subsyhstem"
- Construct your regular Subsystem with states
- Construct your reset logic to send a "reset" event, which trigs the "Reset Function"
- Inside your "Reset Function", construct those reset values and write to the states.
Take a look at the built-in demo models.
Kategorien
Mehr zu Event Functions finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
