Creating custom callback functions

Is it possible to create a custom call back function that can be called when a block has changed? I'd like to check if the user changed a property in a block and if they have I'd like to update the blocks display to reflect the change. The current callbacks won't allow for me to set something up when a block has changed. I didn't know if there was a way to determine something like this or not. Thanks.

댓글 수: 1

TAB
TAB 2012년 9월 14일
For which block you want this ?
For any simulink's inbuilt block or for your own masked subsystem block ?

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

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2012년 9월 14일

3 개 추천

If I understand correctly, you're looking for a callback to run when a dialog parameter is changed? You can do that by creating a mask for your block, and using the mask parameter callback.

카테고리

도움말 센터File Exchange에서 Subsystems에 대해 자세히 알아보기

제품

질문:

2012년 9월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by