MATLAB Answers

GUI help: error using waitfor seen only on certain computers

1 view (last 30 days)
Tanner Stevenson
Tanner Stevenson on 7 Jul 2014
Edited: Tanner Stevenson on 8 Jul 2014
I have written a GUI, titled ComplianceGUI, that can display live video, record from the live video, replay videos, and analyze the video with binary conversion based on the suggestions found in this forum answer: GUI live video tutorial. I wrote this code on my personal laptop, which has an i5 processor, but it is to be used on a laptop with a two-core processor. Although the code worked perfectly on my own computer, the code will sometimes run into a strange error on the two-core laptop it is to be used on (along with my older laptop which is also two-core):
_Undefined function 'ComplianceGUI' for input arguments of type 'struct'.
Error in @(hObject,eventdata)ComplianceGUI('captureVideo_Callback',hObject,eventdata,guidata(hObject))
Error using waitfor
Error while evaluating uicontrol Callback_
I have not been able to find a solution to this problem because I have no idea why it only sometimes appears and why it does not appear on my personal laptop. I assume that it has to do with Matlab data management since the error message seems to suggest that the program forgets that it is called ComplianceGUI, but I have no idea where to begin fixing it. If it does appear, it seems to do so when a second button is pressed after running a first task such as recording video or analyzing video. I have attached my full code. Any insight or help would be appreciated.
EDIT: Attached the figure file too
  1 Comment
Geoff Hayes
Geoff Hayes on 8 Jul 2014
Tanner - It may be helpful to attach the figure (ComplianceGUI.fig) as well so someone (with the Image Acquisition Toolbox) can run through the code and try to reproduce the problem.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!