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

Home » Public Forums » archive » timers without widgets
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: timers without widgets [message #43716 is a reply to message #43555] Sat, 23 April 2005 08:03 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Benjamin Hornberger <benjamin.hornberger@stonybrook.edu> writes:


> Rick Towler wrote:
>> I understand that 95% of events are generated by a GUI but it would
>> be nice to have some sort of mechanism to handle the other 5%.
>> Timers and socket I/O come to mind.
>
> Socket I/O is exactly our problem. We use a timer to continuously
> (actually frequently rather than continuously) read from a socket to
> implement a listening socket. But there are many problems with that,
> like IDL not reacting while it tries to read (looks like crashed).

Can't you set READ_TIMEOUT and WRITE_TIMEOUT to some very small
number? (perhaps even zero?)

It's a pity that IDL doesn't have a select() function for I/O
multiplexing, but using a small timeout value should at least allow
you to poll for data.

Craig


>
> I guess IDL is just made for data analysis and not instrument control
> which involves interaction with device drivers and the OS on a deeper
> level :-(.
>
> Benjamin
>

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Selecting Printers Programmatically
Next Topic: Re: GDL - a little uppdate...

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

Current Time: Sat Oct 11 04:29:11 PDT 2025

Total time taken to generate the page: 0.88255 seconds