필터 지우기
필터 지우기

Is it possible to force mask initialization externally?

조회 수: 3 (최근 30일)
sst
sst 2016년 10월 21일
답변: Randy 2016년 12월 19일
I was wondering, is it possible to force mask initialization from an external command somehow?
  댓글 수: 1
Ezor
Ezor 2016년 12월 16일
I'm looking for the same thing. Did you get an answer so far?

댓글을 달려면 로그인하십시오.

답변 (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에서 Simulink Functions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by