Why vid.StopFcn in Image Acquisition Toolbox doesn't work in appdesigner but works just fine in Guide?
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface) 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!