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

Home » Public Forums » archive » Re: Ploting some data during fortran code execution
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
Re: Ploting some data during fortran code execution [message #15636] Thu, 03 June 1999 00:00
steinhh is currently offline  steinhh
Messages: 260
Registered: June 1994
Senior Member
Oh, by the way, I thought I should mention a *very* nice
way to take advantage of IDL's RPC capabilities.

I'm currently developing C programs for my PhD thesis, but
I like to use IDL as a plotting program (for easy visual
debugging) and as a prototyping language.

The way I do this is to use Remote Procedure Calls to send
data and commands to IDL. The *really* neat thing,
however, is that one idlrpc server process can be a server
for more than one client simultaneously.

So what I do is to use the idl/external/rpc/example.c
program as a command input front-end to an idlrpc process
running in the background.

My C programs connect to the same process and send data
and [e.g. plotting] commands. At the same time, I can use
the front-end to type commands interactively. The
example.c program is pretty "dumb" wrt. command line
editing, but guess what, you can easily run it under
idl-shell (sorry, idlwave-shell) in emacs, giving you all
the command line editing functionality you could ever
want, as well as the neat debugging/breakpoint
functionality of the idlwave package!

I really don't know what I'd do without it!

Regards,

Stein Vidar
Re: Ploting some data during fortran code execution [message #15637 is a reply to message #15636] Thu, 03 June 1999 00:00 Go to previous message
steinhh is currently offline  steinhh
Messages: 260
Registered: June 1994
Senior Member
In article <3756640D.A277B67D@eureka.kjist.ac.kr>
Jaedeuk Lee <goodman@eureka.kjist.ac.kr> writes:
> Hi, all.
>
> I'm solving a nonlinear optimization problem.
> In my code, optimum solution is computed by iterative scheme.
> (I used L-BFGS-B routine.)
> In this case, I want to trace the shape of solution during iteration.
> To do that, I must plot that data during execution of executable made by
>
> fortran code.
> In pv-wave, it was possible by using 'waveinit', 'wavecmd', 'waveterm'.
> However, It looks impossible in idl, because idl don't have 'waveinit',
> 'wavecmd', 'waveterm'.
> Is there any method to execute idl commands in fortran program.

What's wrong with IDL_Init(), IDL_ExecuteStr() and IDL_Cleanup()?
You wouldn't expect RSI to use their competitor's name in their
own routines, would you?

Look at "Introduction to Callable IDL" and "Using Callable IDL under
Unix and VMS" in the External Development Guide (among the "Other
Online Books in the online help). There's a section on Fortran
use as well.

Regards,

Stein Vidar
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL interface to Oracle
Next Topic: Re: how does /no_copy work???

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

Current Time: Fri Oct 10 11:15:52 PDT 2025

Total time taken to generate the page: 0.08467 seconds