Postprocessing when user clicks apply/ok in a mask
36 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I need to do some postprocessing (altering a block depending on the user selection in the mask) whenever a user clicks the APPLY or OK button on a simulink mask. I do not want to do this on the fly as many settings have to be made and the processing take a while, so doing this on each change over again gets very annoying.
How can I achieve this?
Same for preprocessing when a mask is opened. However this is not cruicial, as I) have found a workaround byusing the callback of a hidden combobox as a workaround. However it would be nice to clean that up too...
3 comentarios
Oliver Jaehrig
el 14 de En. de 2026 a las 7:40
Editada: Oliver Jaehrig
el 14 de En. de 2026 a las 7:42
@Marcus Mask Initialization code is not only called one when the model is loaded. Please see this documentation when you use R2025b to see when it gets executed:
Here you can find the R2024b documentation:
The expectation is that when you change the Mask Workspace the callback should execute. This can be also used to trigger the callbacks by using a hidden variable if needed which changes to trigger the callback.
If you prefer I recommend you to create a Technical Support case, where we can support you further.
Respuestas (0)
Ver también
Categorías
Más información sobre Create Block Masks en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!