Borrar filtros
Borrar filtros

Why vid.StopFcn in Image Acquisition Toolbox doesn't work in appdesigner but works just fine in Guide?

1 visualización (últimos 30 días)
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

Respuestas (0)

Productos


Versión

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by