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

Home » Public Forums » archive » file in use by another program
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: file in use by another program [message #88098 is a reply to message #88097] Wed, 19 March 2014 22:03 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Wednesday, March 19, 2014 10:11:40 PM UTC-4, wallabadah wrote:
> Hi All,
>
>
>
> I have an IDL program that needs to read a csv file of data generated elsewhere on the network. Until recently the file was generated after the data collection was complete, but now the file is generated on the fly over several minutes. My IDL program is having a hard time with this! It's now loading the data file before it's complete, and sometimes before it contains any data at all.
>
>
>
> I'd like to know if there's an IDL way of determining if file is still open and in use by another program. I've looked at file_test(), but none of the available flags provide this information.
>
>
>
> any suggestions would be appreciated,

Use two files. One file contains the data. The other file is only created after the first file is complete. Then by monitoring the signal file, your IDL code will know when it's safe to read the data file.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to choose the pixels along a curve in an image
Next Topic: How to output two images on the widget

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

Current Time: Wed Oct 08 19:30:55 PDT 2025

Total time taken to generate the page: 0.00448 seconds