Is it possible to force mask initialization externally?
Ältere Kommentare anzeigen
I was wondering, is it possible to force mask initialization from an external command somehow?
1 Kommentar
Ezor
am 16 Dez. 2016
I'm looking for the same thing. Did you get an answer so far?
Antworten (1)
Randy
am 19 Dez. 2016
1 Stimme
There may be a better way, but in the meantime, this works for me:
ts = Simulink.BlockDiagram.getSampleTimes(sysname);
I'm not really interested in the sample times, but this command forces an update diagram, so blocks will execute their initialization code.
Kategorien
Mehr zu Simulink finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!