<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Advanced MATLAB: Timer objects</title>
	<atom:link href="http://blogs.mathworks.com/videos/2008/05/05/advanced-matlab-timer-objects/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/videos/2008/05/05/advanced-matlab-timer-objects/</link>
	<description>Doug Hull is a proud MathWorker who is on a mission to help you with MATLAB.</description>
	<lastBuildDate>Fri, 17 Feb 2012 16:45:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Paul</title>
		<link>http://blogs.mathworks.com/videos/2008/05/05/advanced-matlab-timer-objects/#comment-2513</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Wed, 12 Jan 2011 17:00:02 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/05/05/advanced-matlab-timer-objects/#comment-2513</guid>
		<description>Hi Doug, 
I have the very same problem Ankit had (reply #27).

&lt;pre&gt;
t3 = timer(&#039;TimerFcn&#039;, @authentic_wrapper, &#039;Period&#039;, 10, &#039;ExecutionMode&#039;, &#039;FixedSpacing&#039;);
start(t3);
&lt;/pre&gt;

First line is OK but after start function is says &quot;??? Error while evaluating TimerFcn for timer &#039;timer-1&#039; 
Too many input arguments.&quot;

I have the .m file of the type function with the name authentic_wrapper in the same directory. What do I do wrong? Syntax seems to be right.

Thank you.

Paul</description>
		<content:encoded><![CDATA[<p>Hi Doug,<br />
I have the very same problem Ankit had (reply #27).</p>
<pre>
t3 = timer('TimerFcn', @authentic_wrapper, 'Period', 10, 'ExecutionMode', 'FixedSpacing');
start(t3);
</pre>
<p>First line is OK but after start function is says &#8220;??? Error while evaluating TimerFcn for timer &#8216;timer-1&#8242;<br />
Too many input arguments.&#8221;</p>
<p>I have the .m file of the type function with the name authentic_wrapper in the same directory. What do I do wrong? Syntax seems to be right.</p>
<p>Thank you.</p>
<p>Paul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhull</title>
		<link>http://blogs.mathworks.com/videos/2008/05/05/advanced-matlab-timer-objects/#comment-2366</link>
		<dc:creator>dhull</dc:creator>
		<pubDate>Thu, 21 Oct 2010 15:40:45 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/05/05/advanced-matlab-timer-objects/#comment-2366</guid>
		<description>@Nara,

I know it is possible.

This video is about the extent of my DAQ knowledge.  Try http://www.mathworks.com/support

Sorry,
Doug</description>
		<content:encoded><![CDATA[<p>@Nara,</p>
<p>I know it is possible.</p>
<p>This video is about the extent of my DAQ knowledge.  Try <a href="http://www.mathworks.com/support" rel="nofollow">http://www.mathworks.com/support</a></p>
<p>Sorry,<br />
Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nara</title>
		<link>http://blogs.mathworks.com/videos/2008/05/05/advanced-matlab-timer-objects/#comment-2364</link>
		<dc:creator>Nara</dc:creator>
		<pubDate>Thu, 21 Oct 2010 03:12:54 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/05/05/advanced-matlab-timer-objects/#comment-2364</guid>
		<description>Thanks Doug for your response. I can wait untill the reading is complete and then collect the data, so don&#039;t have to use the real time workshop. My problem is, let&#039;s say data collection of a tension test where the daq board reads the displacement and RS-232 port reads the load. How to get these two collect data at the same time, e.g. at a certain displacement we know the amount of load. Do you have any suugestion for that?</description>
		<content:encoded><![CDATA[<p>Thanks Doug for your response. I can wait untill the reading is complete and then collect the data, so don&#8217;t have to use the real time workshop. My problem is, let&#8217;s say data collection of a tension test where the daq board reads the displacement and RS-232 port reads the load. How to get these two collect data at the same time, e.g. at a certain displacement we know the amount of load. Do you have any suugestion for that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhull</title>
		<link>http://blogs.mathworks.com/videos/2008/05/05/advanced-matlab-timer-objects/#comment-2347</link>
		<dc:creator>dhull</dc:creator>
		<pubDate>Mon, 11 Oct 2010 19:14:31 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/05/05/advanced-matlab-timer-objects/#comment-2347</guid>
		<description>@Jess,

I can not think of an easy way to do that at the commend prompt.  However, if you had a dialog box come up, you could set a timer to close it, and set a default value if needed.

@Nara,

It depends on the fidelity you want.  How close to simultaneous do you want. If you are trying to get to hard real time, then you will want to look into Real Time Workshop.

Doug</description>
		<content:encoded><![CDATA[<p>@Jess,</p>
<p>I can not think of an easy way to do that at the commend prompt.  However, if you had a dialog box come up, you could set a timer to close it, and set a default value if needed.</p>
<p>@Nara,</p>
<p>It depends on the fidelity you want.  How close to simultaneous do you want. If you are trying to get to hard real time, then you will want to look into Real Time Workshop.</p>
<p>Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nara</title>
		<link>http://blogs.mathworks.com/videos/2008/05/05/advanced-matlab-timer-objects/#comment-2345</link>
		<dc:creator>Nara</dc:creator>
		<pubDate>Mon, 11 Oct 2010 15:22:45 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/05/05/advanced-matlab-timer-objects/#comment-2345</guid>
		<description>I want to read data form a daq board and an rs-232 port simultaneously. I can get data out of both these objects in Matlab, but I want them to be synchronized so that the data are correspondent. After watching this video I thought this might be doable by adding a timer. But I don&#039;t know how to do that or even where to start especially that I&#039;m reading the rs-232 data in continuous mode (Baud rate=9600). Another solution might be reading the rs-232 data discrete (rather than continuous) w/ small delay time (e.g. 0.1s), then synchronize it w/ daq board. But I have no clue how to implement this either. Do you have any idea how to get any of these (contnious synchronized reading or discrete synchronized reading) work?</description>
		<content:encoded><![CDATA[<p>I want to read data form a daq board and an rs-232 port simultaneously. I can get data out of both these objects in Matlab, but I want them to be synchronized so that the data are correspondent. After watching this video I thought this might be doable by adding a timer. But I don&#8217;t know how to do that or even where to start especially that I&#8217;m reading the rs-232 data in continuous mode (Baud rate=9600). Another solution might be reading the rs-232 data discrete (rather than continuous) w/ small delay time (e.g. 0.1s), then synchronize it w/ daq board. But I have no clue how to implement this either. Do you have any idea how to get any of these (contnious synchronized reading or discrete synchronized reading) work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jess</title>
		<link>http://blogs.mathworks.com/videos/2008/05/05/advanced-matlab-timer-objects/#comment-2314</link>
		<dc:creator>jess</dc:creator>
		<pubDate>Thu, 07 Oct 2010 03:57:11 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/05/05/advanced-matlab-timer-objects/#comment-2314</guid>
		<description>Is there a way set a timer around an input prompt? That is, the screen displays a input prompt and the user has to enter a value and hit enter within a certain time.
Thanks for any help or referral.</description>
		<content:encoded><![CDATA[<p>Is there a way set a timer around an input prompt? That is, the screen displays a input prompt and the user has to enter a value and hit enter within a certain time.<br />
Thanks for any help or referral.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhull</title>
		<link>http://blogs.mathworks.com/videos/2008/05/05/advanced-matlab-timer-objects/#comment-2296</link>
		<dc:creator>dhull</dc:creator>
		<pubDate>Mon, 27 Sep 2010 13:56:50 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/05/05/advanced-matlab-timer-objects/#comment-2296</guid>
		<description>I am not sure what it would mean to have &#039;nested&#039; timers.

You can set the period between starts, between completion and start, and other such variants.  Between these and some creativity, I think you will be able to do whatever is needed.</description>
		<content:encoded><![CDATA[<p>I am not sure what it would mean to have &#8216;nested&#8217; timers.</p>
<p>You can set the period between starts, between completion and start, and other such variants.  Between these and some creativity, I think you will be able to do whatever is needed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nikhil</title>
		<link>http://blogs.mathworks.com/videos/2008/05/05/advanced-matlab-timer-objects/#comment-2283</link>
		<dc:creator>Nikhil</dc:creator>
		<pubDate>Sat, 25 Sep 2010 16:29:11 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/05/05/advanced-matlab-timer-objects/#comment-2283</guid>
		<description>Hey,

Further to the previous post I discovered the pause function!

Would still be interested to know if you can have nested timers though.

Thanks,

Nikhil</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>Further to the previous post I discovered the pause function!</p>
<p>Would still be interested to know if you can have nested timers though.</p>
<p>Thanks,</p>
<p>Nikhil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nikhil</title>
		<link>http://blogs.mathworks.com/videos/2008/05/05/advanced-matlab-timer-objects/#comment-2282</link>
		<dc:creator>Nikhil</dc:creator>
		<pubDate>Sat, 25 Sep 2010 14:35:30 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/05/05/advanced-matlab-timer-objects/#comment-2282</guid>
		<description>Hi Doug,

Nice blog. Could you let me know if it is possible to set up a timer within a timer? 

I have a function which is set up to run regularly (primary timer). Within that function I need Matlab to pause (secondary timer) between certain steps, so I set up a wait function as below. When I run the system, Matlab hangs. Maybe there&#039;s a way to make Matlab pause without a timer?

&lt;pre&gt;
function waitnow(length)

t_w = timer(&#039;StartFcn&#039;, &#039;disp(&#039;&#039;waiting for refresh...&#039;&#039;)&#039;, &#039;TimerFcn&#039;,&#039;disp(&#039;&#039;waited&#039;&#039;)&#039;,&#039;StartDelay&#039;,length);

start(t_w);

wait(t_w);

% stop(t_w); 
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hi Doug,</p>
<p>Nice blog. Could you let me know if it is possible to set up a timer within a timer? </p>
<p>I have a function which is set up to run regularly (primary timer). Within that function I need Matlab to pause (secondary timer) between certain steps, so I set up a wait function as below. When I run the system, Matlab hangs. Maybe there&#8217;s a way to make Matlab pause without a timer?</p>
<pre>
function waitnow(length)

t_w = timer('StartFcn', 'disp(''waiting for refresh...'')', 'TimerFcn','disp(''waited'')','StartDelay',length);

start(t_w);

wait(t_w);

% stop(t_w);
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://blogs.mathworks.com/videos/2008/05/05/advanced-matlab-timer-objects/#comment-2183</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Mon, 19 Jul 2010 16:13:43 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/05/05/advanced-matlab-timer-objects/#comment-2183</guid>
		<description>I had followed the instructions and displayed date on gui successfully. Thank you.</description>
		<content:encoded><![CDATA[<p>I had followed the instructions and displayed date on gui successfully. Thank you.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

