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

Home » Public Forums » archive » Re: How to call an IDL procedure from a DLM
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: How to call an IDL procedure from a DLM [message #47686] Fri, 24 February 2006 08:27 Go to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
Maurizio Tomasi wrote:
> Karl Schultz wrote:
>> On Thu, 23 Feb 2006 08:26:54 -0500, Haje Korth wrote:
>>

<snip>

> The log window is of course implemented using pure IDL. The problem is
> that the DLM should write a message in the log window for each FITS file
> that is loaded successfully. And in order to do this it should call a
> "write_log_message" procedure, which is obviously written in IDL
> (because it uses IDL widgets).

Could you not still refactor your code... You wouldn't even have to
return the data to IDL while you are reading the files, just the status.
You could have a setup routine which you pass all of the filenames, a
read_one routine which reads a single file and returns the status, and a
data_return routine which returns all of the data to IDL. There would
be other ways too. I think you could do this with little impact on your
applications performance.

I believe you could also possibly use the external widget API
(widget_stub and associated functions) to create an invisible widget
that your DLM issues events to (IDL_WidgetIssueStubEvent()). Since the
event struct only has a single long field that you define, you also need
to write a routine that takes that value (say an address) and gets the
status of your DLM function. All of this is in the EDG under internal
API/Widgets.

-Rick
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: flux-conserving image resampling?
Next Topic: Re: iVolume isosurface placement

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

Current Time: Wed Oct 08 17:42:18 PDT 2025

Total time taken to generate the page: 0.00449 seconds