tomk@ur-laser.uucp (Tom Kessler) (07/16/85)
I need some help with an S device driver I am writing. I am writing a driver to produce an impress file for later use on an imagen laser printer. The driver is written in c with some .C using the S interface language (an m4 thing plus hacks) so that things can be called correctly from the apropriate fortran routines. The driver works very well in the interactive mode it succesfully opens writes to and closes the impress file. The problem occurs when I try to run S with the imagen device driver that I have created in the batch mode. It creates the impress file and never writes to it. It sits for a long period of time after the actual S commands are run and then exits without calling the line printer daemon to print the S file (the line printer daemon is called when I run S interactively and the file is removed as it should be) the temporary file is left behind in this case. The routine zparmz is certainly never called. It seems as if allthat gets done is that the file gets initialized in batch mode but never used. I get no error messages whatsoever from S. Yes I have created a ~s/graph/lib/imagen.z library and a Standalone driver in ~s/graph/bin/imagen following the code in the unixplot and pic device drivers as a model. I have also read the "Extending the S system" and "S an Interactive Environment for Data Analysis and Graphics" both by Becker and Chambers (by the way both are excellent but don't have the info I need) One further question what does S expect line width to vary from and to in a device driver. The imagen has 20 different line widths and labels them 1 through 20. Does S want line with in Pixels? Inches? Normalized device coordinates? By the way my copy of S is about a year old and is running on a Sun-2 Workstation. Any help will be greatly appreciated. -- -------------------------- Tom Kessler {allegra |seismo }!rochester!ur-laser!tomk Laboratory for Laser Energetics Phone: (716)- 275 - 5101 250 East River Road Rochester, New York 14623