Re: Fortran + IDL [message #26374 is a reply to message #26230] |
Mon, 20 August 2001 11:56  |
Stein Vidar Hagfors H[1]
Messages: 56 Registered: February 2000
|
Member |
|
|
fskhk@puknet.puk.ac.za (Helena Kruger) writes:
> I am working in Fortran (with a complicated program) and IDL. Up to
> now I put the output of the fortran data in a text file, go to IDL,
> read the text file in IDL and draw the graphs. For every small change
> in fortran I have to go in and out the fortran program and IDL
> program.
Why do you need to do that? You should be able to have one window with
IDL running (constantly), and one window with compilation/running of
the Fortran program... Recompile/run the Fortran program, then re-read
the output file..
> Will it be easier and better to use ActiveX or Callable IDL
> under Windows? How and where can I learn to make the linkage?
I'd recommend either callable IDL or (even better) IDL Remote
Procedure Calls (look in the External Development Guide - edg.pdf in
the documentation library for IDL). It's possible then to make (C)
wrappers that will send your Fortran variables directly to IDL,
execute calls to plot data etc..
The reason why RPC is better than Callable for this instance is that
you can have *two* (or more!) clients connect to the same idlrpc
server, so you can do interactive work as well on the variables sent
over by your Fortran program.
However, unless the above two paragraphs tickle your programmer's
curiosity to learn something neat, I'd just stick with your current
setup (but don't quit the IDL session every time!). Getting something
up and going may take quite some time - so it all depends on how long
you expect to be testing this out interactively...
--
------------------------------------------------------------ --------------
Stein Vidar Hagfors Haugan
ESA SOHO SOC/European Space Agency Science Operations Coordinator for SOHO
NASA Goddard Space Flight Center, Email: shaugan@esa.nascom.nasa.gov
Mail Code 682.3, Bld. 26, Room G-1, Tel.: 1-301-286-9028/240-354-6066
Greenbelt, Maryland 20771, USA. Fax: 1-301-286-0264
------------------------------------------------------------ --------------
|
|
|