<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/162166</link>
    <title>MATLAB Central Newsreader - A timeout occurred during GETSNAPSHOT.</title>
    <description>Feed for thread: A timeout occurred during GETSNAPSHOT.</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2008 by The MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Thu, 17 Jan 2008 09:58:01 -0500</pubDate>
      <title>A timeout occurred during GETSNAPSHOT.</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/162166#409777</link>
      <author>loli me</author>
      <description>Hey,&lt;br&gt;
&lt;br&gt;
i have problems unsing the example data myCameraGUI.m from &lt;br&gt;
MATLAB.&lt;br&gt;
After starting und stoping the Video CAmera in myCameraGUI &lt;br&gt;
comes the error message:&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
??? A timeout occurred during GETSNAPSHOT.&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; uiwait at 62&lt;br&gt;
waitfor (hFigDlg, 'waitstatus', 'inactive');&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; myCameraGUI&amp;gt;myCameraGUI_OpeningFcn at 78&lt;br&gt;
uiwait(handles.myCameraGUI);&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; gui_mainfcn at 221&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata&lt;br&gt;
(gui_hFigure), varargin{:});&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; myCameraGUI at 40&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin&lt;br&gt;
{:});&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; window2&amp;gt;pushbuttonJ_Callback at 79&lt;br&gt;
h = figure (myCameraGUI)&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; gui_mainfcn at 96&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;feval(varargin{:});&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; window2 at 42&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;gui_mainfcn(gui_State, varargin{:});&lt;br&gt;
&lt;br&gt;
Warning: The TimerFcn callback is being disabled.&lt;br&gt;
To enable the callback, set the TimerFcn property.&lt;br&gt;
??? Error using ==&amp;gt; figure&lt;br&gt;
Single input must be an existing figure handle or a scalar &lt;br&gt;
integer from 1 to 2147483646&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; window2&amp;gt;pushbuttonJ_Callback at 79&lt;br&gt;
h = figure (myCameraGUI)&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; gui_mainfcn at 96&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;feval(varargin{:});&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; window2 at 42&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;gui_mainfcn(gui_State, varargin{:});&lt;br&gt;
&lt;br&gt;
??? Error while evaluating uicontrol Callback&lt;br&gt;
&lt;br&gt;
Maybe someone could help me!&lt;br&gt;
&lt;br&gt;
Thanks&lt;br&gt;
&lt;br&gt;
loli&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Sat, 19 Jan 2008 05:48:01 -0500</pubDate>
      <title>Re: A timeout occurred during GETSNAPSHOT.</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/162166#410138</link>
      <author>Vihang Patil</author>
      <description>"loli me" &amp;lt;loli.m@mathworks.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;fmn8r9$q0k$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hey,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; i have problems unsing the example data myCameraGUI.m from &lt;br&gt;
&amp;gt; MATLAB.&lt;br&gt;
&amp;gt; After starting und stoping the Video CAmera in myCameraGUI &lt;br&gt;
&amp;gt; comes the error message:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &lt;br&gt;
&amp;gt; ??? A timeout occurred during GETSNAPSHOT.&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
Hello&lt;br&gt;
I had faced the same error message too. I have observed, in&lt;br&gt;
my case, this would happen if you use a USB Frame Grabber&lt;br&gt;
Card/ USB tv tuner card. The workaround I used was to let&lt;br&gt;
the preview window be running at all times while the&lt;br&gt;
getsnapshot is being issued.&lt;br&gt;
If you thing that preview window is unacceptable to be&lt;br&gt;
visible  at all times you can turn the preview windows&lt;br&gt;
figure handle visible property ,'visible' 'off' and still&lt;br&gt;
use the getsnapshot to work for you..&lt;br&gt;
Also having the preview window working in the background,&lt;br&gt;
the getsnapshot command will work faster too.&lt;br&gt;
HTH&lt;br&gt;
Vihang&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Wed, 18 Jun 2008 16:58:01 -0400</pubDate>
      <title>Re: A timeout occurred during GETSNAPSHOT.</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/162166#438150</link>
      <author>lee </author>
      <description>"Vihang Patil" &amp;lt;vihang_patil@yahoo.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;fms2uh$5m0$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; "loli me" &amp;lt;loli.m@mathworks.com&amp;gt; wrote in message&lt;br&gt;
&amp;gt; &amp;lt;fmn8r9$q0k$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Hey,&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; i have problems unsing the example data myCameraGUI.m from &lt;br&gt;
&amp;gt; &amp;gt; MATLAB.&lt;br&gt;
&amp;gt; &amp;gt; After starting und stoping the Video CAmera in myCameraGUI &lt;br&gt;
&amp;gt; &amp;gt; comes the error message:&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; ??? A timeout occurred during GETSNAPSHOT.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Hello&lt;br&gt;
&amp;gt; I had faced the same error message too. I have observed, in&lt;br&gt;
&amp;gt; my case, this would happen if you use a USB Frame Grabber&lt;br&gt;
&amp;gt; Card/ USB tv tuner card. The workaround I used was to let&lt;br&gt;
&amp;gt; the preview window be running at all times while the&lt;br&gt;
&amp;gt; getsnapshot is being issued.&lt;br&gt;
&amp;gt; If you thing that preview window is unacceptable to be&lt;br&gt;
&amp;gt; visible  at all times you can turn the preview windows&lt;br&gt;
&amp;gt; figure handle visible property ,'visible' 'off' and still&lt;br&gt;
&amp;gt; use the getsnapshot to work for you..&lt;br&gt;
&amp;gt; Also having the preview window working in the background,&lt;br&gt;
&amp;gt; the getsnapshot command will work faster too.&lt;br&gt;
&amp;gt; HTH&lt;br&gt;
&amp;gt; Vihang&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
how does one find the preview window's handle and set it to&lt;br&gt;
'visible','off'? I've tried the standard commands to find&lt;br&gt;
currently open figure and objects but neither seem to detect&lt;br&gt;
the preview window (it seems to be different from a standard&lt;br&gt;
figure).&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
</description>
    </item>
  </channel>
</rss>
