How to make a timer execute an internal function in gui?
Show older comments
I am unable to call a function that is inside of GUI (not calling the external function). The timer works well if the function is external, but I want it to be internal, that I will have just one file. I have the inicialization of timer in opening function:
function GUI_OpeningFcn(hObject, eventdata, handles, varargin)
handles.t = timer('BusyMode', 'queue', 'ExecutionMode',...
'fixedRate', 'Period', 4.0, 'TimerFcn', 'funkcija');
start(handles.t);
The function I want to run each time with usage of initialized timer:
function funkcija(EventData, handles)
a = 1;
I know there is something wrong with the input parameters, but I just cannot figure out what exactly.
Accepted Answer
More Answers (0)
Categories
Find more on Code Execution 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!