Refresh Mask after saving Model

6 vues (au cours des 30 derniers jours)
Yannic Gerads
Yannic Gerads le 26 Fév 2018
Commenté : Yannic Gerads le 26 Fév 2018
Hello,
I try to find a way to update a mask after I saved my model. My current mask creates a mask which shows me the name, the last version and the last modifier of the Model. When I save the model the values don't change, only when I move the block it refreshes the values. I'm searching for a function which I could implement in the mask initialization and updates the values after each saving.
Thanks,

Réponse acceptée

Fangjun Jiang
Fangjun Jiang le 26 Fév 2018
Modifié(e) : Fangjun Jiang le 26 Fév 2018
You can specify a function, or lines of code in the Model Properties -> Callbacks -> PostSaveFcn.
I wonder if you can do a model update to refresh the mask.
set_param(YourModel,'SimulationCommand','update')
  1 commentaire
Yannic Gerads
Yannic Gerads le 26 Fév 2018
Thanks for the quick response!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Author Block Masks dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by