How to access Simulink Model callbacks like PreLoadFcn, InitFcn, StopFcn from matlab command window?
16 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Keerthana R O
le 29 Juil 2021
Réponse apportée : Fangjun Jiang
le 29 Juil 2021
I need to access the commands present inside Model Callbacks like PreLoadFcn, PostLoadFcn, InitFcn, StartFcn, StopFcn from the matlab command line for some scripting purpose. Is there any way to do with some inbuilt functions or any other way?
0 commentaires
Réponse acceptée
Fangjun Jiang
le 29 Juil 2021
Model='f14';
open_system(Model)
get_param(Model,'PreLoadFcn');
set_param(Model,'PreLoadFcn','YourFunctionName')
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Model, Block, and Port Callbacks 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!