Is it possible to force mask initialization externally?

I was wondering, is it possible to force mask initialization from an external command somehow?

1 comentario

Ezor
Ezor el 16 de Dic. de 2016
I'm looking for the same thing. Did you get an answer so far?

Iniciar sesión para comentar.

Respuestas (1)

Randy
Randy el 19 de Dic. de 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.

Categorías

Más información sobre Author Block Masks en Centro de ayuda y File Exchange.

Productos

Preguntada:

sst
el 21 de Oct. de 2016

Respondida:

el 19 de Dic. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by