Azzera filtri
Azzera filtri

Is it possible to force mask initialization externally?

3 visualizzazioni (ultimi 30 giorni)
sst
sst il 21 Ott 2016
Risposto: Randy il 19 Dic 2016
I was wondering, is it possible to force mask initialization from an external command somehow?

Risposte (1)

Randy
Randy il 19 Dic 2016
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.

Categorie

Scopri di più su Simulink Functions 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!

Translated by