How to use App Designer helper functions as Simulink callback methods.
Show older comments
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?
Accepted Answer
More Answers (0)
Categories
Find more on Develop Apps Using App Designer in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!