PvWave Startup [message #14229] |
Mon, 08 February 1999 00:00  |
Bertrand Revenaz
Messages: 2 Registered: January 1999
|
Junior Member |
|
|
Hi,
I'm a new PVWAVE user and I am trying to get pvwave to run some .pro
files at startup. How would I go about gettting it to do that
automatically when PVWAVE startsup.
Also one of the .pro files calls to other file with the sybtax
.RNEW $HOME/plot/macros.pro
.RNEW $HOME/plot/tex2wave.pro
I get errors when I try to compile the pro files that has these two
lines in it.
If anybody could help it would be great,
Thanks,
Bertrand Revenaz
breven@po-box.mcgill.ca
|
|
|
Re: PvWave Startup [message #14323 is a reply to message #14229] |
Tue, 09 February 1999 00:00  |
David Ritscher
Messages: 30 Registered: August 1995
|
Member |
|
|
David Fanning, Ph.D. writes:
...
> Instead, you want to execute the commands as if you
> were typing them at the command line. (This file is
> sometimes called a "batch file" because you execute
> a sequence of commands one after the other.) You can
> do this when you start up PV-Wave by making this file
> the startup file. You do this (probably) by declaring
> an environment variable that is named something like
> WAVE_STARTUP (I haven't used PV-Wave in quite a while,
> I'm not sure exactly how this goes now.) ...
Yes, David, the environment variable with PV-Wave is
WAVE_STARTUP
The default value (i.e., the file PV-Wave always tries to execute
when it starts up, when WAVE_STARTUP is not defined), is:
$HOME/.wvstartup
I'm glad to see that you're still sharp on the 'other' product!
David Ritscher
--
Cardiac Rhythm Management Laboratory
Department of Medicine
University of Alabama at Birmingham
B168 Volker Hall - 1670 University Boulevard
Birmingham AL 35294-0019
Tel: (205) 975-2122 Fax: (205) 975-4720
Email: david.ritscher@bigfoot.com
|
|
|
Re: PvWave Startup [message #14326 is a reply to message #14229] |
Mon, 08 February 1999 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Bertrand Revenaz (breven@po-box.mcgill.ca) writes:
> I'm a new PVWAVE user and I am trying to get pvwave to run some .pro
> files at startup. How would I go about gettting it to do that
> automatically when PVWAVE startsup.
> Also one of the .pro files calls to other file with the sybtax
>
> .RNEW $HOME/plot/macros.pro
> .RNEW $HOME/plot/tex2wave.pro
>
> I get errors when I try to compile the pro files that has these two
> lines in it.
You are doing a couple of things wrong. First of all,
I would use the executive command .RUN rather than .RNEW
as you are doing above. .RNEW has the unfortunate (or
fortunate, as your experience grows) side effect of
deleting all your main-level variables. In the code above
these would be the variables you probably just created
in the macros.pro program. Not what you had in mind, I'm
guessing. :-)
Then I would put these two commands into a file by
themselves. You *don't* want to compile this file.
Instead, you want to execute the commands as if you
were typing them at the command line. (This file is
sometimes called a "batch file" because you execute
a sequence of commands one after the other.) You can
do this when you start up PV-Wave by making this file
the startup file. You do this (probably) by declaring
an environment variable that is named something like
WAVE_STARTUP (I haven't used PV-Wave in quite a while,
I'm not sure exactly how this goes now.) Or, suppose you
put the commands into a file named doit.pro, then you
could execute the batch file with the ampersand
character inside of PV-Wave like this:
WAVE> @doit
In any case, you can only use executive commands like
.RNEW and .RUN from the IDL command line. You can't use
them inside of programs.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Note: This follow-up was e-mailed to the cited author.]
|
|
|