Creating custom callback functions
2 次查看(过去 30 天)
显示 更早的评论
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
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
2012-9-14
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.
0 个评论
另请参阅
类别
在 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!