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

Home » Public Forums » archive » Re: How to tell if I'm running IDL or PV-WAVE
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 tell if I'm running IDL or PV-WAVE [message #1772] Mon, 31 January 1994 07:19 Go to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
ft@maxwell.ccs.att.com (Frederick True) writes:

> In article <1994Jan28.034743.14539@bnlux1.bnl.gov> rivers@bnlux1.bnl.gov (mark rivers) writes:
>> Is there a way to find out from within a procedure whether one is running
>> PV-WAVE or IDL? I need to call LINKNLOAD if I am running PV-WAVE or
>> CALL_EXTERNAL if I am running IDL. The !version system variable doesn't
>> seem to have this information.

> Interesting point. There seems to be no system variable which tells you
> "Wave" or "IDL", or even the vendor name ("RSI" or "VNI"). Without doing
> some hack like trying to find a system variable which is only found in one
> of these packages, I'd use something along the lines of:

> wver = call_unix("printenv","WAVE_VERSION")

> Then, test wver for a null value (= running IDL) or a string value (= running
> Wave). I've never used IDL, so I can't assure you this will work there (it
> works in Wave). Nor am I sure what the analog would be in VMS; I assume
> "call_unix" is not part of the VMS version - but there must be some
> mechanism for performing an OS command.

This wouldn't work in IDL. The equivalent statement would be

wver = getenv("WAVE_VERSION")

which would work in either Unix or VMS.

Bill Thompson
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: mixing PS fonts in PV-WAVE\
Next Topic: multiple selections from a list

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

Current Time: Wed Oct 08 15:54:03 PDT 2025

Total time taken to generate the page: 0.16240 seconds