Tools for Quantitative Archaeology
RUNNING PROGRAMS UNDER DOS
These instructions are mainly relevant only for very old systems running stand-alone DOS or if you want to use a plotter. Most users need not concern themselves with this section. Instructions relating specifically to Windows are provided in a separate section. First, edit autoexec.bat and put the directory in which the programs are found at the end of the path.
Starting a Program. Assuming that you have put the toolkit directory in your PATH, to start a program simply type its name e.g. DIST and hit <Enter>. If this doesn't work, either you mistyped the program name or you don't have the program in the default drive or on the path. On a hard disk, the program file need only be in subdirectory within the hard disk path. If you don't know what I'm talking about here, forget it; you don't need to know.
Interrupting a Program. To interrupt a program hold down the <Ctrl> key and hit <Break> at the same time (<Ctrl>C does not work). If the program is doing calculations it may take it a while to notice this and come to a halt. If you get impatient, hold down the Ctrl and Alt keys and hit Delete to restart your computer. If you do this on a floppy system you will need to replace the disk in the A: drive with a disk with DOS on it. Don't worry, your data will not be damaged.
Graphics Video Support
As with the other programs, to start a graphics program just enter its name. The programs sense the adapter and work correctly. To get screen graphics you must have a standard graphics adapter: either a Color Graphics Adapter (CGA), IBM Enhanced Graphics Adapter (EGA), Video Graphics Array (VGA), or a display adapter compatible with one of these cards. (Nearly all graphics cards on the market support one of these formats.
Hard-Copy Graphics Support
To produce hard-copy plots, these programs (other than STP) drive Hewlett Packard plotters and HP Laserjet III & above laser printers and other plotters and printers that support the HPGL graphics language. (This does not include original HP Laserjet or LaserJet II printers.) Alternately, the HP plot file can be imported into a Word Perfect (version 5.0 or 5.1) document and printed by Word Perfect using nearly any printer. Similarly, an HPGL plot file can be imported into many drawing and graphics programs and modified or printed. However, if your DOS and printer are capable of displaying a graphic screen dump, it may be possible to produce a hard-copy plot with the print screen facility (see below). If you don't have a Laserjet III or above or a plotter, importing plots into Word Perfect or a graphics program generally provides better results than use of the PrintScreen facility.
Incorporating Plots in Word Perfect Documents
For most users, the most convenient way to produce publishable quality plots will be to go through any word processing or graphics program (DOS or Windows) that will import HPGL files. This includes Word Perfect 5 and above. When the analysis program asks whether you want plotted output, answer yes. Then tell it to write the plot to a file, for example MYPLOT.HPG. As the program runs, the plot output in a plotter language called HPGL is written to the file. It doesn't matter which paper size (A or B) is specified as Word Perfect scales the graphics to the fit the available space. Then start Word Perfect and create a graphics box. At this point you specify the file name (or the file content) as the name of the HPGL plot file. The Word Perfect default is for a small figure, but you may adjust the size up to the paper margins (full). Once you have the plot in Word Perfect, you can print it out on any printer that Word Perfect supports for graphics (most printers including laser printers).
The above instructions work for Word Perfect 5.1. For Word Perfect 5.0, you need to go through an extra step. When the analysis program finishes you need to convert the HPGL file to Word Perfect Graphics (WPG) format. This is done using the GRAPHCNV utility supplied with Word Perfect. Run GRAPHCNV, providing the input (MYPLOT.HPG) and output (perhaps, MYPLOT.WPG) file names. Then, when you start Word Perfect and create a figure box, you give it the WPG file.
There is one limitation to this approach. Word Perfect does not support the full Hewlett Packard Graphics Language, so pie charts produced by KMPLT and HPPLOT, and solid fill types supported by HPPLOT (and with reference lines in KMPLT) will not appear in the Word Perfect graphic. One must use a plotter or Laserjet III or above printer to get plots using these features.
Printing Graphics on a Hewlett Packard Laserjet III & Above Printers
Programs that produce plotter plots (BAYES, DIVPLT, FORD, KMPLT, LDPLT, SCAT, and HPPLOT) can now send their output to Hewlett Packard LaserJet Series III and above printers and other laser printers that support emulation of HPGL (Hewlett Packard Graphics Language in the way that LaserJet III & above printers do). This will not work on laser printers such as the original LaserJets and LaserJet II Series II printers that do not have an HPGL emulation mode.
These programs produce plots in landscape (horizontal) mode but assume that the printer has a default orientation of portrait. If you have reset your printer to default to landscape mode, you'll have to change it back to portrait mode before printing any plots. To do this, press ON LINE to put the printer off-line, then press MENU until ORIENT L is displayed. Then press "+" to change the display to ORIENT P and then press ENTER and finally ON LINE.
Plots on an Hewlett Packard Plotter
Before starting the relevant program you must first run any DOS commands that are necessary to initialize the screen or the plotter. You only have to enter these commands once, even if you run the program several times (unless you do something to reverse the effects of these commands). Programs will inquire as to whether A or B sized paper is to be used. In order to use the large paper, you must manually set the plotter to indicate that B sized paper is loaded. (The program will issue a warning to this effect.)
If you plan to use the plotter, connect it to the either serial port and type:
C> MODE COM1:9600,,,,P
If the plotter is set to a different baud rate, substitute that rate for the 9600 in the above command. If the plotter is connected to COM2, substitute COM2 for COM1 above.
Alternately, and probably better, you can send plotter output to a file and then, any time after the program finished set the MODE as described above and use the DOS COPY command to send the file to the plotter, e.g.
C> COPY MYPLOT.HPG COM1
On a networked plotters, the latter strategy will work best. However, you will need to learn from the network administrator any setup required (such as the MODE command) and the name of the device to which the plot file should be copied.
The Print Screen Command in Graphics Mode
Using the print screen command in graphics mode (unlike text mode) requires full compatibility between the graphics card, the version of DOS you are running, and your printer. If you are able to do a PrtScr in graphics mode from any application, you can do it with this program. With older versions of DOS, if you plan to dump the graphics you must typed GRAPHICS<Enter>, a DOS command, before you start the graphics program. During program execution, when you want to print a graphics screen hold the shift key and press <PrtSc>.
Page Last Updated - 02-Jun-2007