<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163768</link>
    <title>MATLAB Central Newsreader - Event queue</title>
    <description>Feed for thread: Event queue</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by 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>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Thu, 14 Feb 2008 12:36:12 -0500</pubDate>
      <title>Event queue</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163768#415026</link>
      <author>Chris Rodgers</author>
      <description>Hi,&lt;br&gt;
&lt;br&gt;
A couple of event queue related items...&lt;br&gt;
&lt;br&gt;
1) Is it possible to display the current Matlab event queue for &lt;br&gt;
debugging purposes?&lt;br&gt;
&lt;br&gt;
2) If I have a timer&lt;br&gt;
&lt;br&gt;
t = timer&lt;br&gt;
&lt;br&gt;
and then inside another routine, I set t.Running = 'off', will the &lt;br&gt;
events for timer t that are already in the event queue be deleted, or &lt;br&gt;
may the timer still end up running its callback after the long routine &lt;br&gt;
completes?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
&lt;br&gt;
Chris.</description>
    </item>
    <item>
      <pubDate>Thu, 14 Feb 2008 17:09:05 -0500</pubDate>
      <title>Re: Event queue</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163768#415102</link>
      <author>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)</author>
      <description>In article &amp;lt;fp1cjs$8rl$2@frank-exchange-of-views.oucs.ox.ac.uk&amp;gt;,&lt;br&gt;
Chris Rodgers  &amp;lt;rodgers@physchem.NOSPAMox.aREMOVEc.uk&amp;gt; wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt;A couple of event queue related items...&lt;br&gt;
&lt;br&gt;
&amp;gt;1) Is it possible to display the current Matlab event queue for &lt;br&gt;
&amp;gt;debugging purposes?&lt;br&gt;
&lt;br&gt;
I don't know, but I see that someone has coded FlushEvents.m&lt;br&gt;
to remove all events of a given kind from the Matlab queue.&lt;br&gt;
Usually if you have enough access to the queue to be able to&lt;br&gt;
examine an event to be able to flush it, you would have enough&lt;br&gt;
access to be able to display it, but this is not always true;&lt;br&gt;
I suggest checking out the code (www.koders.com)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&amp;gt;2) If I have a timer&lt;br&gt;
&lt;br&gt;
&amp;gt;t = timer&lt;br&gt;
&lt;br&gt;
&amp;gt;and then inside another routine, I set t.Running = 'off', will the &lt;br&gt;
&amp;gt;events for timer t that are already in the event queue be deleted, or &lt;br&gt;
&amp;gt;may the timer still end up running its callback after the long routine &lt;br&gt;
&amp;gt;completes?&lt;br&gt;
&lt;br&gt;
According to the documentation for timer(), the Running field&lt;br&gt;
is read-only.&lt;br&gt;
-- &lt;br&gt;
&amp;nbsp;&amp;nbsp;&quot;I will not approve any plan which is based on the old principle&lt;br&gt;
&amp;nbsp;&amp;nbsp;of build now and repair later.&quot;                   -- Walter Hickle</description>
    </item>
    <item>
      <pubDate>Fri, 28 Nov 2008 23:20:04 -0500</pubDate>
      <title>Re: Event queue</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163768#613794</link>
      <author>Ryan Ollos</author>
      <description>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in message &amp;lt;fp1sjh$9iu$1@canopus.cc.umanitoba.ca&amp;gt;...&lt;br&gt;
&amp;gt; In article &amp;lt;fp1cjs$8rl$2@frank-exchange-of-views.oucs.ox.ac.uk&amp;gt;,&lt;br&gt;
&amp;gt; Chris Rodgers  &amp;lt;rodgers@physchem.NOSPAMox.aREMOVEc.uk&amp;gt; wrote:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;A couple of event queue related items...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;1) Is it possible to display the current Matlab event queue for &lt;br&gt;
&amp;gt; &amp;gt;debugging purposes?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I don't know, but I see that someone has coded FlushEvents.m&lt;br&gt;
&amp;gt; to remove all events of a given kind from the Matlab queue.&lt;br&gt;
&amp;gt; Usually if you have enough access to the queue to be able to&lt;br&gt;
&amp;gt; examine an event to be able to flush it, you would have enough&lt;br&gt;
&amp;gt; access to be able to display it, but this is not always true;&lt;br&gt;
&amp;gt; I suggest checking out the code (www.koders.com)&lt;br&gt;
&lt;br&gt;
Hello Walter,&lt;br&gt;
&lt;br&gt;
I have the same question as Chris.  I have not been able to find the FlushEvents.m that you refer to, either on the FEX or koders.com.  Could you post a direct link?</description>
    </item>
    <item>
      <pubDate>Mon, 01 Dec 2008 22:57:21 -0500</pubDate>
      <title>Re: Event queue</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163768#614314</link>
      <author>Walter Roberson</author>
      <description>Ryan Ollos wrote:&lt;br&gt;
&amp;gt; roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in message &amp;lt;fp1sjh$9iu$1@canopus.cc.umanitoba.ca&amp;gt;...&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; I don't know, but I see that someone has coded FlushEvents.m&lt;br&gt;
&amp;gt;&amp;gt; to remove all events of a given kind from the Matlab queue.&lt;br&gt;
&lt;br&gt;
&amp;gt; I have not been able to find the FlushEvents.m that you refer to,&lt;br&gt;
&lt;br&gt;
What I was able to find this time was a part of (the old version of?) psych tools,&lt;br&gt;
and reading around a bit it appeared to call a mex routine, and on MS Windows apparently&lt;br&gt;
that mex routine is restricted to removing keyboard presses (with more functionality under&lt;br&gt;
Mac OS.) Not what I'd call a real interface to the Matlab event queue :(&lt;br&gt;
&lt;br&gt;
(Note: I have made no attempt myself to figure out how the Matlab event queue operates.)&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
.signature note: I am now avoiding replying to unclear or ambiguous postings.&lt;br&gt;
Please review questions before posting them. Be specific. Use examples of what you mean,&lt;br&gt;
of what you don't mean. Specify boundary conditions, and data classes and value&lt;br&gt;
relationships -- what if we scrambled your data or used -Inf, NaN, or complex(rand,rand)?</description>
    </item>
  </channel>
</rss>

