stateflow one time step ahead sometimes
Ältere Kommentare anzeigen
Hi,
I built a simple system: ramp - display & stateflow with one input. If I run it, the stateflow is one timestep ahead. If I add another output (still an empty stateflow!) the "discrepancy" is gone. (This is probably just an issue how the display is updated.)
But in my actual model the stateflow sees limits exceeded before the controller (mpc) written in matlab embedded reacts. If I put a unit delay to the statespace input it works fine.
But I have the feeling that this is not a good solution.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Stateflow 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!