Path: news.mathworks.com!not-for-mail
From: "Vihang Patil" <vihang_patil@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: A timeout occurred during GETSNAPSHOT.
Date: Sat, 19 Jan 2008 05:48:01 +0000 (UTC)
Organization: Konem Solutions
Lines: 28
Message-ID: <fms2uh$5m0$1@fred.mathworks.com>
References: <fmn8r9$q0k$1@fred.mathworks.com>
Reply-To: "Vihang Patil" <vihang_patil@yahoo.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1200721681 5824 172.30.248.37 (19 Jan 2008 05:48:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 19 Jan 2008 05:48:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 413701
Xref: news.mathworks.com comp.soft-sys.matlab:446467


"loli me" <loli.m@mathworks.com> wrote in message
<fmn8r9$q0k$1@fred.mathworks.com>...
> Hey,
> 
> i have problems unsing the example data myCameraGUI.m from 
> MATLAB.
> After starting und stoping the Video CAmera in myCameraGUI 
> comes the error message:
> 
> >> 
> ??? A timeout occurred during GETSNAPSHOT.
> 

Hello
I had faced the same error message too. I have observed, in
my case, this would happen if you use a USB Frame Grabber
Card/ USB tv tuner card. The workaround I used was to let
the preview window be running at all times while the
getsnapshot is being issued.
If you thing that preview window is unacceptable to be
visible  at all times you can turn the preview windows
figure handle visible property ,'visible' 'off' and still
use the getsnapshot to work for you..
Also having the preview window working in the background,
the getsnapshot command will work faster too.
HTH
Vihang