Why vid.StopFcn in Image Acquisition Toolbox doesn't work in appdesigner but works just fine in Guide?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I've made an application using guide that acquires an images with the Image Acquisition Toolbox. In the Start callback function I initialize the property vid.StopFnc like that :
vid.StopFcn = {@StopRun, handles};
Then the function is :
function StopRun(vid,event, handles)
% Set Interface
handles.toggle_StartAcq.BackgroundColor = [0.3 0.75 0.93];
handles.toggle_StartAcq.Value = 0;
handles.push_FlushIm.Enable = 'on';
When I do the same with appdesigner I always get this error : Undefined function 'StopRun' for input arguments of type 'videoinput'.
I get this error with private or public function.
Anyone knows what happening?
Thanks
Denis
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface) finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!