Re: any replacement for wait function [message #45715] |
Thu, 29 September 2005 16:46 |
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 #45719 is a reply to message #45717] |
Thu, 29 September 2005 14:26  |
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  |
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
|
|
|