<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Advanced MATLAB: Handles and other inputs to GUIDE callbacks</title>
	<link>http://blogs.mathworks.com/videos/2008/04/17/advanced-matlab-handles-and-other-inputs-to-guide-callbacks/</link>
	<description>Doug Hull is a proud MathWorker who is on a mission to help you with MATLAB.</description>
	<pubDate>Sun, 22 Nov 2009 23:01:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: wrn</title>
		<link>http://blogs.mathworks.com/videos/2008/04/17/advanced-matlab-handles-and-other-inputs-to-guide-callbacks/#comment-1270</link>
		<dc:creator>wrn</dc:creator>
		<pubDate>Wed, 17 Dec 2008 21:34:53 +0000</pubDate>
		<guid>http://blogs.mathworks.com/videos/2008/04/17/advanced-matlab-handles-and-other-inputs-to-guide-callbacks/#comment-1270</guid>
		<description>Doug,
I want to do the thing like Zach. 

I have a GUI that contain many axes.

But when I call the function with timer or serial callback.

when I use like in this example
http://blogs.mathworks.com/pick/2005/10/03/guide-video-part-two/

like this 
part from my updateAxes function.

hAxes = findobj(hMainGui, 'type', 'axes');                        axes(hAxes(1));
plot ....

The axes will not be in my main GUI but another new window.

I guess that the reason for this is because, my function is not calling in GUIDE callback scope(it's called from timer or serial callback). Like it work only if I invoke updateAxes from another callback function from GUI.

How can I do it, the update have to invoke when the new data is come.

Thank you very much.</description>
		<content:encoded><![CDATA[<p>Doug,<br />
I want to do the thing like Zach. </p>
<p>I have a GUI that contain many axes.</p>
<p>But when I call the function with timer or serial callback.</p>
<p>when I use like in this example<br />
<a href="http://blogs.mathworks.com/pick/2005/10/03/guide-video-part-two/" rel="nofollow">http://blogs.mathworks.com/pick/2005/10/03/guide-video-part-two/</a></p>
<p>like this<br />
part from my updateAxes function.</p>
<p>hAxes = findobj(hMainGui, &#8216;type&#8217;, &#8216;axes&#8217;);                        axes(hAxes(1));<br />
plot &#8230;.</p>
<p>The axes will not be in my main GUI but another new window.</p>
<p>I guess that the reason for this is because, my function is not calling in GUIDE callback scope(it&#8217;s called from timer or serial callback). Like it work only if I invoke updateAxes from another callback function from GUI.</p>
<p>How can I do it, the update have to invoke when the new data is come.</p>
<p>Thank you very much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhull</title>
		<link>http://blogs.mathworks.com/videos/2008/04/17/advanced-matlab-handles-and-other-inputs-to-guide-callbacks/#comment-1221</link>
		<dc:creator>dhull</dc:creator>
		<pubDate>Tue, 11 Nov 2008 16:35:58 +0000</pubDate>
		<guid>http://blogs.mathworks.com/videos/2008/04/17/advanced-matlab-handles-and-other-inputs-to-guide-callbacks/#comment-1221</guid>
		<description>The timer will be running in its own little workspace, so the handles structure that you pass at the beginning of the timer will be whatever it was when you create the timer. 

Try this in the opening function:

t = timer('TimerFcn',{@foofoo, handles} , 'Period', 1,'ExecutionMode', ...
'fixedspacing','startdelay',1);

start(t)

With this function on the path.

function foofoo(obj, event, hand)
disp(hand)

A silly little function, but it gets the handles structure out there as you see.

-Doug</description>
		<content:encoded><![CDATA[<p>The timer will be running in its own little workspace, so the handles structure that you pass at the beginning of the timer will be whatever it was when you create the timer. </p>
<p>Try this in the opening function:</p>
<p>t = timer(&#8217;TimerFcn&#8217;,{@foofoo, handles} , &#8216;Period&#8217;, 1,&#8217;ExecutionMode&#8217;, &#8230;<br />
&#8216;fixedspacing&#8217;,&#8217;startdelay&#8217;,1);</p>
<p>start(t)</p>
<p>With this function on the path.</p>
<p>function foofoo(obj, event, hand)<br />
disp(hand)</p>
<p>A silly little function, but it gets the handles structure out there as you see.</p>
<p>-Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zach</title>
		<link>http://blogs.mathworks.com/videos/2008/04/17/advanced-matlab-handles-and-other-inputs-to-guide-callbacks/#comment-1218</link>
		<dc:creator>Zach</dc:creator>
		<pubDate>Wed, 05 Nov 2008 22:14:54 +0000</pubDate>
		<guid>http://blogs.mathworks.com/videos/2008/04/17/advanced-matlab-handles-and-other-inputs-to-guide-callbacks/#comment-1218</guid>
		<description>Doug,
It seems like the handles structure is already there and ready to use. The timer that I made in the OpeningFcn needs to pass the args similar to the widgets on the GUI send, in particular the "handles" part of MyFunct(hObject, eventdata, handles). In the timer object you can specify the args to pass but I think Im having a problem getting the handles to pass through properly. This is what I am trying   handles.t = timer('TimerFcn',{@GetSmp_Callback, handles} , 'Period', 1,'ExecutionMode',...
    'fixedspacing','startdelay',1); I initialize this in openingFcn but I am not sure if im handing "handles" properly. Is there a way to use a timer in the GUI and also use the handles structure? I can use set/getappdata but then all the wigets and callbacks use handles structure.</description>
		<content:encoded><![CDATA[<p>Doug,<br />
It seems like the handles structure is already there and ready to use. The timer that I made in the OpeningFcn needs to pass the args similar to the widgets on the GUI send, in particular the &#8220;handles&#8221; part of MyFunct(hObject, eventdata, handles). In the timer object you can specify the args to pass but I think Im having a problem getting the handles to pass through properly. This is what I am trying   handles.t = timer(&#8217;TimerFcn&#8217;,{@GetSmp_Callback, handles} , &#8216;Period&#8217;, 1,&#8217;ExecutionMode&#8217;,&#8230;<br />
    &#8216;fixedspacing&#8217;,&#8217;startdelay&#8217;,1); I initialize this in openingFcn but I am not sure if im handing &#8220;handles&#8221; properly. Is there a way to use a timer in the GUI and also use the handles structure? I can use set/getappdata but then all the wigets and callbacks use handles structure.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://blogs.mathworks.com/videos/2008/04/17/advanced-matlab-handles-and-other-inputs-to-guide-callbacks/#comment-927</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Fri, 31 Oct 2008 13:59:21 +0000</pubDate>
		<guid>http://blogs.mathworks.com/videos/2008/04/17/advanced-matlab-handles-and-other-inputs-to-guide-callbacks/#comment-927</guid>
		<description>I have tested, it is working now.

Doug</description>
		<content:encoded><![CDATA[<p>I have tested, it is working now.</p>
<p>Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zach</title>
		<link>http://blogs.mathworks.com/videos/2008/04/17/advanced-matlab-handles-and-other-inputs-to-guide-callbacks/#comment-926</link>
		<dc:creator>Zach</dc:creator>
		<pubDate>Thu, 30 Oct 2008 03:37:59 +0000</pubDate>
		<guid>http://blogs.mathworks.com/videos/2008/04/17/advanced-matlab-handles-and-other-inputs-to-guide-callbacks/#comment-926</guid>
		<description>Doug,
I cant get the file to play from link or by going to list??</description>
		<content:encoded><![CDATA[<p>Doug,<br />
I cant get the file to play from link or by going to list??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://blogs.mathworks.com/videos/2008/04/17/advanced-matlab-handles-and-other-inputs-to-guide-callbacks/#comment-925</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Wed, 29 Oct 2008 19:34:03 +0000</pubDate>
		<guid>http://blogs.mathworks.com/videos/2008/04/17/advanced-matlab-handles-and-other-inputs-to-guide-callbacks/#comment-925</guid>
		<description>Zach,

I think that the GETAPPDATA, SETAPPDATA techniques shown here:

http://blogs.mathworks.com/pick/2005/10/03/guide-video-part-two/

Might be an easy solution for you.

Doug</description>
		<content:encoded><![CDATA[<p>Zach,</p>
<p>I think that the GETAPPDATA, SETAPPDATA techniques shown here:</p>
<p><a href="http://blogs.mathworks.com/pick/2005/10/03/guide-video-part-two/" rel="nofollow">http://blogs.mathworks.com/pick/2005/10/03/guide-video-part-two/</a></p>
<p>Might be an easy solution for you.</p>
<p>Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zach</title>
		<link>http://blogs.mathworks.com/videos/2008/04/17/advanced-matlab-handles-and-other-inputs-to-guide-callbacks/#comment-924</link>
		<dc:creator>Zach</dc:creator>
		<pubDate>Mon, 27 Oct 2008 21:57:26 +0000</pubDate>
		<guid>http://blogs.mathworks.com/videos/2008/04/17/advanced-matlab-handles-and-other-inputs-to-guide-callbacks/#comment-924</guid>
		<description>Doug,
I have a GUI that I put a timer in so that it will check if any serial data has come in every second. I am having trouble getting the Timer to pass the handles structure to my function that is plopped into the M-file that guide made. On compile it says that the "handles" is undefined. I tried to pass the hadles from the Timer funtion by saying {@myfunction, handles} to pass the handles to the myfunction but I get another compile problem. any help would be great.</description>
		<content:encoded><![CDATA[<p>Doug,<br />
I have a GUI that I put a timer in so that it will check if any serial data has come in every second. I am having trouble getting the Timer to pass the handles structure to my function that is plopped into the M-file that guide made. On compile it says that the &#8220;handles&#8221; is undefined. I tried to pass the hadles from the Timer funtion by saying {@myfunction, handles} to pass the handles to the myfunction but I get another compile problem. any help would be great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tayfun</title>
		<link>http://blogs.mathworks.com/videos/2008/04/17/advanced-matlab-handles-and-other-inputs-to-guide-callbacks/#comment-928</link>
		<dc:creator>Tayfun</dc:creator>
		<pubDate>Sun, 27 Jul 2008 11:38:57 +0000</pubDate>
		<guid>http://blogs.mathworks.com/videos/2008/04/17/advanced-matlab-handles-and-other-inputs-to-guide-callbacks/#comment-928</guid>
		<description>ıt is very good video. I learn a lot of new things about gui</description>
		<content:encoded><![CDATA[<p>ıt is very good video. I learn a lot of new things about gui</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: amiryousuf</title>
		<link>http://blogs.mathworks.com/videos/2008/04/17/advanced-matlab-handles-and-other-inputs-to-guide-callbacks/#comment-934</link>
		<dc:creator>amiryousuf</dc:creator>
		<pubDate>Wed, 07 May 2008 11:53:47 +0000</pubDate>
		<guid>http://blogs.mathworks.com/videos/2008/04/17/advanced-matlab-handles-and-other-inputs-to-guide-callbacks/#comment-934</guid>
		<description>thanks for the idea. it is working.</description>
		<content:encoded><![CDATA[<p>thanks for the idea. it is working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Administrator</title>
		<link>http://blogs.mathworks.com/videos/2008/04/17/advanced-matlab-handles-and-other-inputs-to-guide-callbacks/#comment-935</link>
		<dc:creator>Administrator</dc:creator>
		<pubDate>Tue, 06 May 2008 16:00:26 +0000</pubDate>
		<guid>http://blogs.mathworks.com/videos/2008/04/17/advanced-matlab-handles-and-other-inputs-to-guide-callbacks/#comment-935</guid>
		<description>Amir,

You would simply modify the callback to use the DISP command to display any data you want.

Doug</description>
		<content:encoded><![CDATA[<p>Amir,</p>
<p>You would simply modify the callback to use the DISP command to display any data you want.</p>
<p>Doug</p>
]]></content:encoded>
	</item>
</channel>
</rss>
