Is it possible to force mask initialization externally?

2 次查看(过去 30 天)
I was wondering, is it possible to force mask initialization from an external command somehow?

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Author Block Masks 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by