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

Home » Public Forums » archive » Re: timers without widgets
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: timers without widgets [message #43551] Fri, 22 April 2005 09:38 Go to next message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
Hi Benjamin,

> does anyone know if it is possible to have timed events without using
> widgets?

I don't think it is... There is no way to register callback in IDL
except within the widget system. I should say I'm on pretty shaky
ground since I haven't looked at this in a long time but I wanted to
implement a simple callback in a dlm and the only way I could figure out
how to do it was by using WIDGET_STUB to send events to IDL's widget
event system.

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.

-Rick
Re: timers without widgets [message #43733 is a reply to message #43551] Fri, 22 April 2005 15:37 Go to previous message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
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).

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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Syntax for R. Franks extproc_define() in IDL 6.1
Next Topic: Re: Syntax for R. Franks extproc_define() in IDL 6.1

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

Current Time: Fri Oct 10 05:24:37 PDT 2025

Total time taken to generate the page: 0.56077 seconds