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

Home » Public Forums » archive » Real time application
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
Real time application [message #36055] Thu, 07 August 2003 06:15 Go to next message
sayaz03 is currently offline  sayaz03
Messages: 1
Registered: August 2003
Junior Member
I had written c++ class called "point". after that i created objects
mypoint1 and mypoint2 of this class. I am wondering how can i make my
program a real time program so that these points will be updated
according to my specifications.
also what is meant by multithreading?

Thanks
Re: real time [message #63925 is a reply to message #36055] Mon, 24 November 2008 06:55 Go to previous message
Brian Larsen is currently offline  Brian Larsen
Messages: 270
Registered: June 2006
Senior Member
Mauro,

Let me spew a few thoughts here, then maybe someone will give a good
answer :)

It seems to me that there are a couple of ways to do this.

- One could use a dumb IDL blocking method:
while 1 do begin
tst=file_test(filename,/exists)
if tst eq 1 then begin
;; do something here
;; then delete or move the file
endif
wait, 10 ; 10 seconds delay in "real time"
endwhile

- One could do a cron solution (assuming some form of *nix)
just have cron call an idl script every xx minutes, the script then
using file_test either does something or quits

- One could be smart and write a perl (or whatever) wrapper that
watched the file for you then executed the idl script


OK, who has a really good answer?


Brian

------------------------------------------------------------ --------------
Brian Larsen
Boston University
Center for Space Physics
http://people.bu.edu/balarsen/Home/IDL
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Nothing to do with IDL
Next Topic: Re: Least squares fit of a model to a skeleton consisting out of 3D points.

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

Current Time: Wed Oct 08 13:31:17 PDT 2025

Total time taken to generate the page: 0.00729 seconds