comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » asynchronous timers
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: asynchronous timers [message #89301 is a reply to message #89292] Thu, 14 August 2014 20:30 Go to previous messageGo to previous message
Jim  Pendleton is currently offline  Jim Pendleton
Messages: 165
Registered: November 2011
Senior Member
On Thursday, August 14, 2014 9:16:13 AM UTC-6, David Grier wrote:
> On Thursday, August 14, 2014 6:40:01 AM UTC-4, superchromix wrote:
>
>> Has anyone put to use the new "asynchronous timer" that was introduced in version 8.3?
>
>>
>
>>
>
>>
>
>> I was just reading the help section for it and noticed that this timer can "interrupt pro code" when it fires. hmmm. Does this offer some possibilities for pseudo-"multithreaded" operation? For example, one process could be off doing a heavy calculation, and a separate gui process could periodically fire a timer and update it's display?
>
>>
>
>>
>
>>
>
>> thoughts?
>
>>
>
>>
>
>>
>
>> thanks
>
>>
>
>> Mark
>
>
>
> I've used the asynchronous timers to update a video interface for a microscope controller: you click on the video image to make things move under the microscope. IDL's timers do indeed interrupt IDL code, but do not interrupt calls to the compiled libraries underlying IDL code. For instance, a timer won't interrupt a long-running FFT, but instead will take action once the FFT is complete and control has returned to IDL. The same is true of spawn'ed commands and calls to external libraries.
>
>
>
> The set time on a timer thus is the minimum time before the callback routine will execute. The actual time depends on external factors.
>
>
>
> It appears that timer events can pile up, and there does not appear to be any way to look at the
>
> interrupt queue or to modify it. It is possible to clear the queue altogether, but that isn't always
>
> desirable. I may be missing something here, so other folks' insights would be helpful.
>
>
>
> TTFN,
>
>
>
> David

Doug E. might have some comments on this. IDL 8.4 will have some modified behavior with respect to timers, relative to 8.3. There will be more defined rules about when they will be allowed to interrupt the interpreter.

Jim P.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Customising ENVI water depths tool with IDL
Next Topic: Reading CEOS format using IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 15:00:43 PDT 2025

Total time taken to generate the page: 0.47556 seconds