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

Home » Public Forums » archive » Re: Unsupported keyword on older IDL version
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: Unsupported keyword on older IDL version [message #31637 is a reply to message #31636] Mon, 29 July 2002 13:35 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
I wrote earlier today:

> On the other hand, this does have the advantage of
> running in a run-time version of IDL, whereas the
> CALL_FUNCTION approach would fail.

I was apparently wrong about this. Dick Jackson points
out to me in a private e-mail that he can include
EXECUTE and CALL_FUNCTION in run-time programs and they
work perfectly OK.

I'm embarrassed to say I didn't try this myself
when I wrote this advice, but based it on a recent
posting to this newsgroup from the usually reliable
Reimar Bauer, who wrote:

"there is a small amount of rules you should know.
[about run-time IDL]
* !PATH does not exist in runtime
* the filename of the routine have to be the same as
the calling procedure.
* EXECUTE won't work (e.g. read_ascii uses EXECUTE)
* nothing could be compiled but other compiled routines
could be loaded."

Here is a test program. Runs fine on Windows 2000 with
IDL 5.5 in run-time. Does anyone else have problems with
it?

**********************************************************
PRO RuntimeFeaturesTest
READ_JPEG, FILEPATH('rose.jpg', SUBDIR=['examples', 'data']), image
IF image[0] NE -1 THEN TV, /True, image
Wait, 1
Call_Procedure, 'Plot', RandomU(seed, 10)
Wait, 1
pixels = TVRd()
count = Call_Function('Total', pixels)
XYOutS, /Device, 100, 100, 'Total of pixels: '+StrTrim(count, 2)
Wait, 1
ok = Execute('Erase')
Wait, 1
END
**********************************************************

IDL> runtimefeaturestest
IDL> Resolve_All
IDL> Save, File='runtimefeaturestest.sav', /Routines

What do you make of this, Reimar?

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: how to input idl figure to MS office
Next Topic: CALL_EXTERNAL

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

Current Time: Wed Oct 08 17:54:29 PDT 2025

Total time taken to generate the page: 0.00422 seconds