Is it possible to force mask initialization externally?

2 vues (au cours des 30 derniers jours)
sst
sst le 21 Oct 2016
Réponse apportée : Randy le 19 Déc 2016
I was wondering, is it possible to force mask initialization from an external command somehow?
  1 commentaire
Ezor
Ezor le 16 Déc 2016
I'm looking for the same thing. Did you get an answer so far?

Connectez-vous pour commenter.

Réponses (1)

Randy
Randy le 19 Déc 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.

Catégories

En savoir plus sur Author Block Masks dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by