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

Home » Public Forums » archive » Re: continuous update of plot
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: continuous update of plot [message #9247 is a reply to message #9128] Wed, 04 June 1997 00:00 Go to previous message
R. Bauer is currently offline  R. Bauer
Messages: 137
Registered: November 1996
Senior Member
=C3=E9=FE=F1=E3=EF=F2 =C2=E5=F4=EF=FD=EB=E7=F2 wrote:
> =

> Hello,
> =

> suppose I have a simulation that every so often writes out a 2d array.
> Is there a way for idl to detect that the file has changed, and
> replot or display the new data?
> This would be under unix (digital and/or sparc) with the data
> being produced by fortran.
> =

> I suppose that even a delay loop would serve, in the sense that
> it would redisplay the file every, say, 10 sec irrespectively of
> whether it changed or not. But this sounds wasteful.
> =

> Any ideas?
> =


Yes,

I think you can use fstat or spawn,'ls',result to detect if the file is
new.
If it is new you can use:

resolve_routine,'plscript' =

a =3D execute('plscript') =


resolve_routine will compile the procedure plscript and the following
function will execute it.

plscript will be the routine which reads the data and will produce the
plot.



R.Bauer

-- =

R.Bauer =


Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: widget arrangement under IDL 5
Next Topic: Getting current MAIN procedure filename

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

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

Total time taken to generate the page: 0.00436 seconds