Path: news.mathworks.com!newsfeed-00.mathworks.com!NNTP.WPI.EDU!elk.ncren.net!newsflash.concordia.ca!canopus.cc.umanitoba.ca!not-for-mail
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Newsgroups: comp.soft-sys.matlab
Subject: Re: Event queue
Date: Thu, 14 Feb 2008 17:09:05 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 30
Message-ID: <fp1sjh$9iu$1@canopus.cc.umanitoba.ca>
References: <fp1cjs$8rl$2@frank-exchange-of-views.oucs.ox.ac.uk>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1203008945 9822 192.70.172.160 (14 Feb 2008 17:09:05 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Thu, 14 Feb 2008 17:09:05 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:451437



In article <fp1cjs$8rl$2@frank-exchange-of-views.oucs.ox.ac.uk>,
Chris Rodgers  <rodgers@physchem.NOSPAMox.aREMOVEc.uk> wrote:

>A couple of event queue related items...

>1) Is it possible to display the current Matlab event queue for 
>debugging purposes?

I don't know, but I see that someone has coded FlushEvents.m
to remove all events of a given kind from the Matlab queue.
Usually if you have enough access to the queue to be able to
examine an event to be able to flush it, you would have enough
access to be able to display it, but this is not always true;
I suggest checking out the code (www.koders.com)


>2) If I have a timer

>t = timer

>and then inside another routine, I set t.Running = 'off', will the 
>events for timer t that are already in the event queue be deleted, or 
>may the timer still end up running its callback after the long routine 
>completes?

According to the documentation for timer(), the Running field
is read-only.
-- 
  "I will not approve any plan which is based on the old principle
  of build now and repair later."                   -- Walter Hickle