|
|
|
Downloading DATAPLOT for the PC
Contact Information
|
February 2002.
|
Introduction
|
There are currently two versions of Dataplot for Windows
platforms.
|
I find it useful to keep both the command line and GUI versions installed. The command line version is useful for large data files, to run canned macros, and for those who are already familiar with the Dataplot command language. The GUI is useful for exploring what Dataplot can do, for new users, and for those who are infrequent or casual users of Dataplot. The standard installation will install both the command line version and the GUI version.
Hardware/Software Requirements
|
Some hardware/software requirements for Dataplot:
|
|
Downloading
|
The PC version is distributed in executable form since most users do not have the necessary Fortran compilers.
Complete or Component Installation
|
There are 2 methods for downloading.
|
Download for A Complete Installation
|
You can download the file
winntgui_98.exe for Windows
95/98/ME/NT4 platforms and the file
winntgui_2000.exe for
Windows 2000/XP platforms. These files are approximately
20 MB.
|
This is a WinZip self-extracting file. It does not matter in which directory you download this file, but for the discussion below, I assume that the file was downloaded to "C:\WINNTGUI.EXE".
Component Download
|
You can also download the Dataplot installation in several
smaller components. There are two reasons for doing this:
|
Problems With Downloading
|
Sometimes users do have problems downloading Dataplot from
the web pages. Note that I do not maintain the NIST ftp/web
servers (I do provide the content for Dataplot, but I am
not a system adminstrator for these servers). Downloading
problems may be caused by firewalls, ftp/browser
configurations, etc.
|
I simply do not have the time or expertise to diagnose these types of problems. I can check to see if our ftp server is up, but not much beyond that. If you are unable to download via the Web, you can do the following:
|
Post Downloading Instructions
|
Step 1: Unpack the Downloaded Files
|
Step 1 is to unpack the downloaded files. I am assuming the
downloaded files are in the "C:\" directory. Modify the
directions below if they are in a different directory.
|
Open a DOS prompt window and do the following.
Step 2: Install Tcl/Tk
|
To install Tcl/Tk, enter the command
|
If you have an earlier version of Tcl/Tk installed, I recommend upgrading to the current version (8.3) since it has better performance. NOTE: Tcl/Tk is now distributed by ActiveStates. I have tested Dataplot with their current version, 8.3.4.3 (as of 2/2002). Their license does not allow me to distribute Tcl/Tk directly with Dataplot, although it is freely downloadable. If you do not already have version 8.3 or higher installed on your system, I recommend installing the supplied version of Tcl/Tk first. Then, if you like, feel free to download the current production release from:
Step 3: Install Fortran Runtime Files
|
One difference with the upgrade to the Visual Fortran compiler
for the command line version is that the Fortran runtime
files are no longer bundled with the Dataplot executable.
However, you just need to enter the following command to
install them on your system:
|
Step 4: Edit the Batch Files
|
You should have the file C:\DATAPLOT\DP.BAT. It looks like
|
| |||
REM THIS FILE CONTAINS A BATCH JOB THAT CAN BE EXECUTED FROM A SHORTCUT.
REM
REM IN THE SHORTCUT, THE COMMAND LINE SHOULD BE SETUP AS:
REM
REM C:\DATAPLOT\DP.BAT
REM
REM YOU SHOULD ALSO CHECK THE FOLLOWING:
REM
REM 1) IF YOU INSTALLED TCL/TK OR DATAPLOT IN NON-DEFAULT DRIVES,
REM MODIFY THE TWO SET VARIABLES BELOW TO REFLECT THE CORRECT DRIVE.
REM YOU SHOULD KEEP THE STRUCTURE WITHIN THE DRIVE
REM CONSISTENT WITH THE DEFAULT INSTALLATIONS. THAT IS, YOU
REM CAN INSTALL DATAPLOT ON THE D: (OR ANY OTHER) DRIVE, BUT
REM YOU SHOULD INSTALL IT INTO THE D:\DATAPLOT DIRECTORY.
REM IF YOU CHANGED THE STRUCTURE, YOU WILL NEED TO MAKE ADDITIONAL
REM CHANGES BELOW.
REM
REM DPDIR IS THE DRIVE DATAPLOT WAS INSTALLED ON AND TCLDIR IS
REM THE DRIVE TCL/TK WAS INSTALLED ON.
REM
REM YOU MAY WANT TO CHANGE THE DIRECTORY FOR THE FOLLOWING REASONS
REM
REM 1) TO USE A DRIVE WITH MORE FREE SPACE.
REM 2) TO RUN OFF A ZIP DRIVE OR A NETWORK DRIVE. I RECOMMEND
REM INSTALLING TCL/TK ON YOUR LOCAL HARD DRIVE, BUT ALL OF THE
REM DATAPLOT FILES CAN RESIDE ON A ZIP DRIVE OR A NETWORK DRIVE.
REM I HAVE A VERSION RUNNING ON MY LOCAL PC OFF OF A ZIP DRIVE,
REM AND I FIND THE PERFORMANCE QUITE GOOD.
REM
REM ALTHOUGH I HAVE ALSO DONE SOMETHING SIMILAR WITH A CD-R
REM DRIVE, I HAVE FOUND THE PERFORMANCE SLUGGISH. IF YOU
REM RECEIVE THE INSTALLATION ON A CD-R, I RECOMMEND INSTALLING
REM THE DATAPLOT FILES ON YOUR HARD DRIVE.
REM
SET DPDIR=C:
SET TCLDIR=C:
REM THE FILES "XDPCWNNT" AND "XDPCWN95" IN THE FRSCRIPT DIRECTORY
REM NEED TO HAVE A FEW PATH NAMES CHANGED AS WELL IF YOU DID
REM DID NOT INSTALL DATAPLOT IN C:\DATAPLOT. LOOK FOR "C:\"
REM IN THESE FILES AND CHANGE ANY DRIVES THAT DON'T MATCH THE
REM LOCATION ON YOUR SYSTEM.
REM
REM 2) THE LATEST VERSION OF THE SCRIPT EXPECTS VERSION 8.3 OF
REM TCL/TK. IT MAY RUN WITH 8.1 OR 8.2, BUT WE RECOMMEND THAT
REM YOU UPGRADE TO 8.3.
REM
REM 3) SOME WINDOWS 95/98 MACHINES HAVE A PROBLEM WITH INADEQUATE
REM ENVIRONMENT VARIABLE SPACE. ON SOME MACHINES THIS SHOWS
REM UP AS AN EXPLICIT MESSAGE SAYING "OUT OF ENVIRONMENT SPACE".
REM ON OTHER SYSTEMS IT SHOWS UP AS "UNABLE TO START THE DATAPLOT
REM EXECUTABLE ...". IF THIS OCCURS, THERE ARE TWO WAYS TO FIX IT.
REM
REM
REM i) USE WINDOWS EXPLORER, GO TO THE FILE
REM "C:\DATAPLOT\DP.BAT", RIGHT CLICK AND SELECT "PROPERTIES".
REM UNDER "PROPERTIES", SELECT MEMORY AND THEN SELECT "ENVIRONMENT
REM MEMORY" AND SET THE AMOUNT OF MEMORY FOR ENVIRONMENT
REM SPACE TO BE AT LEAST 2048.
REM
REM ii) ALTERNATIVELY, YOU CAN CHANGE THE SHORTCUT TO
REM
REM C:\WINDOWS\COMMAND.COM /e:2048 /c C:\DATAPLOT\DP.BAT
REM
REM 4) THE FILE "C:\DATAPLOT\FRSCRIPT\XDPCONFIG" ALLOWS YOU TO
REM CONFIGURE CERTAIN OPTIONS FOR THE DATAPLOT GUI.
REM
REM THE WINDOWS 95 AND WINDOWS NT VERSIONS ARE SLIGHTLY DIFFERENT.
REM THIS BATCH FILE COPIES A VERSION FOR WINDOWS 95 OR NT. UNCOMMENT
REM THE APPROPRIATE LINE BELOW. YOU SHOULD ALSO VIEW THIS FILE
REM (IT IS AN ASCII TEXT FILE) TO SEE IF THERE ARE ANY CHANGES YOU
REM WOULD LIKE TO MAKE. AS LONG AS EVERYTHING IS INSTALLED IN DEFAULT
REM DIRECTORIES, YOU SHOULD NOT HAVE TO CHANGE ANYTHING.
REM
SET DATAPLO$=%DPDIR%\DATAPLOT\
SET FED$=%DPDIR%\DATAPLOT\
SET PATH=%PATH%;%DPDIR%\DATAPLOT
REM FOLLOWING LINES FOR GUI VERSION ONLY OF DATAPLOT
SET TCL_LIBRARY="%TCLDIR%\Program Files\TCL\LIB\TCL83"
SET TK_LIBRARY="%TCLDIR%\Program Files\TCL\LIB\TK83"
SET XDP_FILE=%DPDIR%\DATAPLOT\FRMENUS
SET XDP_CODE=%DPDIR%\DATAPLOT\FRSCRIPT
REM USE 1 OF THE FOLLOWING 2 LINES (WINDOWS 95/98 IS THE DEFAULT)
COPY C:\DATAPLOT\FRSCRIPT\XDPCWN95 C:\DATAPLOT\FRSCRIPT\XDPCONFIG
REM COPY %DPDIR%\DATAPLOT\FRSCRIPT\XDPCWNNT %DPDIR%\DATAPLOT\FRSCRIPT\XDPCONFIG
REM THE FOLLOWING ACTUALLY INITIATES THE DATAPLOT GUI.
REM NOTE THAT THE "-right" OPTION JUSTIFIES THE WINDOWS TO THE RIGHT OF THE
REM SCREEN. YOU CAN CHANGE THIS TO "-left" FOR LEFT JUSTIFICATION OR OMIT
REM FOR CENTER JUSTIFICATION. THIS IS SIMPLY A MATTER OF TASTE.
"%TCLDIR%\Program Files\Tcl\bin\wish83.exe" %DPDIR%\dataplot\frscript\xdp -pc -right %1
|
You need to make the following edits to the DP.BAT file.
|
|
| Step 5: Set Initial Environment Memory |
For Windows 95/98/ME/XP, the amount of initial environment
memory needs to be set.
On some platforms, you may get the message that XDP_MENU or XDP_CODE is undefined. |
| Step 6: Create Shortcuts |
For convenience, you probably want to create shortcuts
for both the command line and GUI version of Dataplot.
There are several ways to create shortcuts and there are
no special techniques for the Dataplot shortcuts. The
following is one method:
The shortcut for the command line version is setup in a similar fashion. The Command Line should be set to:
The "-svga" option sets the size for the initial windows (this option assumes super VGA resolution). You can omit it (assumes VGA resolution) or use "-large" (1280x1040 resolution). |
| Step 7: Dataplot Startup Files |
You should enter into either of these files (preferably the
DPLOGF.TEX file) any Dataplot commands that you wish to have
automatically executed upon entry into Dataplot. The following
are the contents of a "reasonable" DPLOGF.TEX file:
DEVICE 1 QWIN DEVICE 2 POSTSCRIPT . DIMENSION 40 VARIABLES TITLE DISPLACEMENT 2 TIC OFFSET UNITS SCREEN TIC OFFSET 5 5 CASE ASIS . BACKGROUND COLOR BLUE LET STRING FORE = YELLOW . LINE COLOR ^FORE ALL CHARACTER COLOR ^FORE ALL SPIKE COLOR ^FORE ALL BAR COLOR ^FORE ALL BAR FILL COLOR ^FORE ALL FRAME COLOR ^FORE ALL TIC MARK COLOR ^FORE TIC MARK LABEL COLOR ^FORE LABEL COLOR ^FORE TITLE COLOR ^FORE LEGEND COLOR ^FORE . FEEDBACK ON The default DPLOGF.TEX file will look something like this. Feel free to modify it to suit your taste and needs. |
| Step 8: Testing the Installation |
Before testing the GUI, it is a good idea to test the command
line executable first. Open a a DOS Prompt window and enter
the following:
DEVICE 1 DISCRETE Enter the following command:
Test Dataplot's HELP command (for documentation) by entering
A good general test is to execute the command
STOP HALT END QUIT BYE You should see some white text on a black foreground in the "Graphic1" window. If you only see a black window with no text (and no prompt), this indicates that your monitor is in "true color" mode. If this is the case, click on "x" in the upper right corner to kill the Dataplot run and do the following:
If the second graphics window was not automatically opened, at the Dataplot prompt enter the command
|
| Installation Problems |
If you have problems with the installation, contact
Alan Heckert.
e-mail: alan.heckert@nist.gov
|
| Downloading Dataplot Source Code |
Since most users do not have Fortran compilers on the PC,
we distribute Dataplot in executable form. However, for
those who want it, the source code is available.
If you have WinZip, you can download the Unix tar file. Otherwise, you can do the following:
user>anonymous password><email address> cd /pub/dataplot/other/src prompt off mget *.f mget *.INC mget *.c quit The Dataplot code is written to be portable. Most 32-bit Fortran 77/90 compilers should be able to compile Dataplot. However, there are two issues you need to be aware of.
|
|
Date created: 6/5/2001 |
|
| [ Dataplot | Dataplot Downloading | Unix Downloading | Mac Downloading ] |