How to access Simulink Model callbacks like PreLoadFcn, InitFcn, StopFcn from matlab command window?
15 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Keerthana R O
il 29 Lug 2021
Risposto: Fangjun Jiang
il 29 Lug 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 Commenti
Risposta accettata
Fangjun Jiang
il 29 Lug 2021
Model='f14';
open_system(Model)
get_param(Model,'PreLoadFcn');
set_param(Model,'PreLoadFcn','YourFunctionName')
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Model, Block, and Port Callbacks in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!