Method to detect mask dialog is closed

조회 수: 4 (최근 30일)
Rey
Rey 2013년 4월 28일
Hi,
I need to detect when the mask dialog of a custom masked subsystem is closed, preferably also whether it is closed by clicking OK or Cancel/X.
Is there a way to do this?
(Apart from calling a custom m-file GUI with OK and Cancel pushbuttons from the OpenFcn of the subsystem, and using their callbacks.)
Thanks in advance for help!
  댓글 수: 3
Rey
Rey 2013년 5월 1일
Hi Kaustubha, thanks for your concern.
My aim is to detect it from some external code. To be more explicit, the external code is a GUI I designed to build a Simulink model programmatically based on user input.
However, if this is not possible, I'd like to hear how it could be done from inside the mask as well, because I may think of changing my masked library block, if it's a better option.
Rey
Rey 2013년 5월 1일
Btw, as mentioned at http://www.mathworks.com/matlabcentral/answers/193, I can make use of MaskInitialization commands for this purpose. So this means I'll need to change the masked subsystem, which is a custom library block. Alternative suggestions are welcome, especially a way to do this from external code.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Subsystems에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by