pv-wave6 runtime mode problem [message #7974] |
Wed, 29 January 1997 00:00  |
Jeroen Wijnands
Messages: 1 Registered: January 1997
|
Junior Member |
|
|
Hello,
I am trying to use pv-wave6 through a script to generate some postscript
files. When I try it by hand my .pro and cpr files work just fine.
As soon as I try to run my .cpr in runtime mode it runs but it refuses
to write to a file.
The manual clearly states that this should bepossible.
who can help me out here?
--
--++--
Met Vriendelijke Groeten/ Best Regards
Jeroen Wijnands
home email: wijnands@xs4all.nl
PLEASE START USING MY HOME EMAIL FROM NOW ON!!
homepage: http://www.xs4all.nl/~wijnands
--++--
|
|
|
Re: pv-wave6 runtime mode problem [message #8015 is a reply to message #7974] |
Fri, 31 January 1997 00:00  |
Jim O'connor
Messages: 7 Registered: March 1996
|
Junior Member |
|
|
Jeroen Wijnands <j.wijnands@amc.uva.nl> writes:
>
> I am trying to use pv-wave6 through a script to generate some postscript
> files. When I try it by hand my .pro and cpr files work just fine.
>
> As soon as I try to run my .cpr in runtime mode it runs but it refuses
> to write to a file.
This works for me:
Wave> @setupcolorplot
Wave> your_plot_routine_here
Wave> @endcolorplot
where setupcolorplot.pro looks like:
set_plot,'ps'
plotdirname = '/tmp/'
compressed_date = strmid(datestr,0,2)+strmid(datestr,3,2)
compressed_time = strmid(timestr,0,2)+strmid(timestr,3,2)+strmid(timestr,6,2)
plotfilename = compressed_date+'_'+compressed_time+'.ps'
pathtofile = plotdirname+plotfilename
device,file=pathtofile,/landscape,/Color
print,"Re-execute plot command, then @endplot."
and endcolorplot.pro looks like:
device,/close
set_plot,'X'
cpcmd = 'lp -dlj_res '+pathtofile
spawn,cpcmd
print,cpcmd
You end up with a postscript file in /tmp/0130_120549.ps (if you did
it on 1/30 at 12:05:49).
--
Jim
|
|
|