How to use App Designer helper functions as Simulink callback methods.
Mostra commenti meno recenti
I am running a simulink model from app designer which plots the simulink output. For this I'm using Event Listener method approach.
The code I used in Simulink 'StartFcn' is :
blk2 = 'SineWave/Scope';
event = 'PostOutputs';
listener = @updateAxes;
% Create the listener
h1 = add_exec_event_listener(blk2, event, listener);
Here the updateAxes is an .m script that updates the App Designer axes. This runs without errors as a separate script.
But, I want to create a helper function in my app and use it as the above listener 'updateAxes' function. is it possible?
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Develop Apps Using App Designer in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!