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 #9240 is a reply to message #9128] Wed, 04 June 1997 00:00 Go to previous messageGo to previous message
rivers is currently offline  rivers
Messages: 228
Registered: March 1991
Senior Member
In article <slrn5p63uq.q12.vetoulis@dyson.umd.edu>, vetoulis@dyson.umd.edu (������� ��������) writes:

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

The simplest way is to just spawn 'ls -l filename' periodically to see if the
file has changed.

IDL> spawn, 'ls -l chart1.ps', result
IDL> print, result
-rw-r--r-- 1 epics epics 163527 Jan 11 12:29 chart1.ps
IDL> print, strmid(result, 41, 12)
Jan 11 12:29

____________________________________________________________
Mark Rivers (773) 702-2279 (office)
CARS (773) 702-9951 (secretary)
Univ. of Chicago (773) 702-5454 (FAX)
5640 S. Ellis Ave. (708) 922-0499 (home)
Chicago, IL 60637 rivers@cars.uchicago.edu (e-mail)

or:
Argonne National Laboratory (630) 252-0422 (office)
Building 434A (630) 252-0405 (lab)
9700 South Cass Avenue (630) 252-1713 (beamline)
Argonne, IL 60439 (630) 252-0443 (FAX)
[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: Fri Oct 10 10:02:16 PDT 2025

Total time taken to generate the page: 0.80426 seconds