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

Home » Public Forums » archive » Re: any replacement for wait function
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: any replacement for wait function [message #45715] Thu, 29 September 2005 16:46
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
biophys writes:

> BTW, I learned to use widget_timer and wait together from the
> xmovie.pro in your coyote programs. ;)

Oh, my Gosh! June 96. Well, I guess I've learned a *couple*
of things in all those years. :-)

Cheers,

David

P.S. Probably you couldn't set a timer delay in those days. :-)

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: any replacement for wait function [message #45716 is a reply to message #45715] Thu, 29 September 2005 15:21 Go to previous message
biophys is currently offline  biophys
Messages: 68
Registered: July 2004
Member
Thanks, David

BTW, I learned to use widget_timer and wait together from the
xmovie.pro in your coyote programs. ;)
Re: any replacement for wait function [message #45717 is a reply to message #45716] Thu, 29 September 2005 15:11 Go to previous message
biophys is currently offline  biophys
Messages: 68
Registered: July 2004
Member
Ah, stupid me. You answer is really enlightening even at the first
glance.


> Why do you use WAIT? You should be able to do with WIDGET_TIMER alone, I
> think.
>
> Benjamin
Re: any replacement for wait function [message #45719 is a reply to message #45717] Thu, 29 September 2005 14:26 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
biophys writes:

> I'm trying to write a widget program doing some continuous calculation
> while display several pieces of small movie(image/plot sequences) at
> certain speed. I want the speed of movie to be independent of each
> other and the movie content is updated as background calculation spits
> out new data. However, the only way that I know to display a movie is
> to TV to a draw widget and use wiget_timer and wait function to control
> speed. And the problem is that the wait function suspends the whole idl
> session, thus suspending the the other draw widget update as well as
> the background calculation. So it seems impossible to implement this in
> IDL? Or I am not aware of some other technique? Any comments?

A timer widget AND a WAIT function!? Sounds like overkill to
me. I'd get rid of the WAIT function and let the timer do the
waiting.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: any replacement for wait function [message #45720 is a reply to message #45719] Thu, 29 September 2005 14:11 Go to previous message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
biophys wrote:
> Dear All,
>
> I'm trying to write a widget program doing some continuous calculation
> while display several pieces of small movie(image/plot sequences) at
> certain speed. I want the speed of movie to be independent of each
> other and the movie content is updated as background calculation spits
> out new data. However, the only way that I know to display a movie is
> to TV to a draw widget and use wiget_timer and wait function to control
> speed. And the problem is that the wait function suspends the whole idl
> session, thus suspending the the other draw widget update as well as
> the background calculation. So it seems impossible to implement this in
> IDL? Or I am not aware of some other technique? Any comments?
>
> Thanks
>

Why do you use WAIT? You should be able to do with WIDGET_TIMER alone, I
think.

Benjamin
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Cursos
Next Topic: Re: Shapefile to ROI in script

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

Current Time: Wed Oct 08 13:47:15 PDT 2025

Total time taken to generate the page: 0.00710 seconds