Clear Filters
Clear Filters

Is it possible to force mask initialization externally?

2 views (last 30 days)
I was wondering, is it possible to force mask initialization from an external command somehow?

Answers (1)

Randy
Randy on 19 Dec 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.

Categories

Find more on Simulink Functions in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!