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 
Switch to threaded view of this topic Create a new topic Submit Reply
Continuous check for new files and processing possible? [message #92705] Thu, 11 February 2016 08:13 Go to next message
rogass is currently offline  rogass
Messages: 200
Registered: April 2008
Senior Member
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
Re: Continuous check for new files and processing possible? [message #92706 is a reply to message #92705] Thu, 11 February 2016 08:23 Go to previous messageGo to next message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
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
Re: Continuous check for new files and processing possible? [message #92707 is a reply to message #92706] Thu, 11 February 2016 08:28 Go to previous messageGo to next message
rogass is currently offline  rogass
Messages: 200
Registered: April 2008
Senior Member
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
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 next 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
Re: Continuous check for new files and processing possible? [message #92714 is a reply to message #92705] Mon, 15 February 2016 03:12 Go to previous message
rogass is currently offline  rogass
Messages: 200
Registered: April 2008
Senior Member
Am Donnerstag, 11. Februar 2016 17:13:44 UTC+1 schrieb rog...@googlemail.com:
> 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

Dear Wayne,
thanks a lot.

Cheers
Chris
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Cghistoplot
Next Topic: IDL moment command problems

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

Current Time: Wed Oct 08 11:51:00 PDT 2025

Total time taken to generate the page: 0.00638 seconds