MATLAB Answers

sst
2

Is it possible to force mask initialization externally?

Asked by sst
on 21 Oct 2016
Latest activity Answered by Randy
on 19 Dec 2016
I was wondering, is it possible to force mask initialization from an external command somehow?

  1 Comment

I'm looking for the same thing. Did you get an answer so far?

Sign in to comment.

1 Answer

Answer by 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.

  0 Comments

Sign in to comment.