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

Home » Public Forums » archive » Continuous check for new files and processing possible?
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 check for new files and processing possible? [message #92708 is a reply to message #92707] Thu, 11 February 2016 10:56 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
I've actually not used FOLDERWATCH. When I tried to do something similar before, I instead used widget timer events

http://www.harrisgeospatial.com/docs/working_with_widget_eve n.html#widget_techniques_4218446668_96233

so that every 20 seconds I could perform a file_search() to see if any new files appeared. If a new image appeared I would read it and display it in a widget window.

it looks like one can do the same with FOLDERWATCH using the callback procedure given in the Init method. You could have the callback procedure display the new file in a WIDGET_WINDOW or whatever other method you use for diplaying static images. --Wayne





On Thursday, February 11, 2016 at 11:28:38 AM UTC-5, rog...@googlemail.com wrote:
> Am Donnerstag, 11. Februar 2016 17:23:24 UTC+1 schrieb wlandsman:
>> This is not a full answer but you might want to look at the FOLDERWATCH object introduced in IDL 8.4
>>
>> On Thursday, February 11, 2016 at 11:13:44 AM UTC-5, rog...@googlemail.com wrote:
>>> Hi folks,
>>> I'd like to do the following. My application should check every second for new files, read the content (csv), process it, display it (maybe inside a widget_window?) until a button is pressed. Unfortunately, there is another software that runs in parallel, produces those files and may 'steal' the focus.
>>>
>>> Maybe somebody had a similar problem and can help?
>>>
>>> Thanks in advance
>>> Chris
>
> This is a nice function. Do you think that it is possible to integrate this into a widget_window 'approach'?
>
> Cheers
> Chris
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Cghistoplot
Next Topic: IDL moment command problems

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

Current Time: Wed Oct 08 16:16:00 PDT 2025

Total time taken to generate the page: 0.00220 seconds