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 #43731 is a reply to message #43555] Fri, 22 April 2005 16:08 Go to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
Benjamin Hornberger wrote:
> 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).

Does SOCKET not provide for non-blocking reads? I haven't really used
it... That's too bad. I should add that to my list of feature requests
for SOCKET.

> 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 :-(.

Yeah, I guess so. But that is too bad.

I had a similar project and had to use MATLAB. IDL's SOCKET doesn't
support UDP and even if it did the blocking would have killed me. I
used a free TCP/UDP library for MATLAB which doesn't provide for
callbacks so you have to poll, but it doesn't block and MATLAB's timer
is better.

-Rick
[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:45:24 PDT 2025

Total time taken to generate the page: 2.16128 seconds