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

Home » Public Forums » archive » pv-wave6 runtime mode problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
pv-wave6 runtime mode problem [message #7974] Wed, 29 January 1997 00:00 Go to next message
Jeroen Wijnands is currently offline  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 Go to previous message
Jim O'connor is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: XYOUTS character size strangeness
Next Topic: Re: ? Number of lines in a file

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

Current Time: Wed Oct 08 17:58:19 PDT 2025

Total time taken to generate the page: 0.00513 seconds