Simulink callbacks when modifying model
조회 수: 7 (최근 30일)
이전 댓글 표시
Is there any callback available when user make change to the model? I need to know if there was change made within subsystem. Equivalent to DeleteChildFcn, but for any modification.
I know there are callbacks available in each blocks, but it requires all existing blocks ( and new blocks copied to model ) to have callback functions defined.
댓글 수: 0
답변 (1개)
Fangjun Jiang
2015년 4월 30일
Open your model, File -> Model Properties -> Callbacks,
Any callback function that you can use? Maybe PreSaveFcn or CloseFcn to detect if the model is changed? get_param(Model,'Dirty')?
댓글 수: 2
zhichuan wang
2018년 7월 12일
편집: zhichuan wang
2018년 7월 12일
This kind of callbacks will be useful to dectect changes in subsystem. And we really need this similar function. Does anyone have sovle this isuue?
참고 항목
카테고리
Help Center 및 File Exchange에서 Model, Block, and Port Callbacks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!