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

Home » Public Forums » archive » SIMULTANEOUS RUN
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: SIMULTANEOUS RUN [message #2496 is a reply to message #2403] Thu, 07 July 1994 12:30 Go to previous messageGo to previous message
robijn is currently offline  robijn
Messages: 18
Registered: June 1994
Junior Member
In article <2vfr1h$idl@news.service.uci.edu>,
Victor Shvetsky (Garden) <victor@astro2.ps.uci.edu> wrote:
>
> Here is what I need:
> I have a very long deconvolution routine < about 5-10 minutes to finish>
> and during this time I want to use the xsurface routine < to rotate the image>
> right now I have something like this:
> a=widget_base()
> b=widget_base(a)
> XSURFACE is under the B base
>
> c=widget_base(a)
> DECONVOLUTION ROUTINE under c base
>
> HOW do I call xmanager so that I get DECONVOLUTION ROUTINE_event to run
> and If I choose XSURFACE button when deconvolution is running,
> I would be able to use xsurface WHILE DECON is running and NOT after.

You can't, at least not in plain IDL. What you need for that is to split
the IDL process in two threads - one running the DECON and the other
executing other IDL commands. This is typically handled by an operating
system. On a PC running Windows 3.1 (IDL also runs on that platform) it
is not possible to run two programs simultaniously, so IDL would have
to provide the code to handle the time sharing between the threads. That
would be quite an effort.

There is a possibility to run DECON parallel to IDL on Unix machines, but
that requires that you use CALL_EXTERNAL or SPAWN. The latter is the
easiest: adapt the deconvolution procedure so that it reads the input
data from a file and writes the results to another file. Use SPAWN to
start a second IDL session in the background. That second session only
runs DECON and exits. The first IDL process then has to check periodically
(widget_control, /timer) whether the file with results is complete
or whether the second process is still running. If it has finished, the
first IDL process reads the results and can continue.

Frank
--
_____ ____
/ / / Frank Robijn Internet: Robijn@Strw.LeidenUniv.NL
/___ /___/ Sterrewacht Leiden Bitnet: Robijn@HLERUL51
/ / \ Phone (31) 71 275841 Local: Robijn@HL628
/ / \ Fax : (31) 71 275819 Snail: P.O.Box 9513, 2300 RA Leiden,
The Netherlands
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Can't get POSTSCRIPT output
Next Topic: SIMULTANEOUS RUN

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

Current Time: Wed Oct 08 20:13:58 PDT 2025

Total time taken to generate the page: 0.00531 seconds