This is readme.txt. It contains the latest public announcement of atpwnt, installation instructions and other program information. UPDATE OF WATCOM ATP FOR WNT4: The Watcom-compiler-based version of ATP for Windows NT 4 and the lesser 32-bit Windows systems has been recently updated and tested by the Can-Am User Group. The atpwnt-e.zip package containing the program has been sent to Dr. Funaki so that he can make it available for download from the secure ftp server (http://pels.pwr.eng.osaka-u.ac.jp/~atp/restricted/). A password is required to access the secure server. Please contact your ATP user group to obtain the secure server password. Besides incorporating all the latest ATP features from Drs. Meyer and Liu, this Watcom version (atpwnt.exe) is the first to allow file names of 80 or more characters. Program dimensioning has also been increased substantially in response to the actual and anticipated needs of users. Some of the list sizes have been more than doubled from the "BPA" dimensions used in "tpbig". Users should alert this author, if they require still greater dimensions, since there is no penalty to supplying them to WNT users with adequate RAM -- 64 MB is plenty. (This author asserts that such WNT4 users should simply delete the listsize.dat file, since there are negligible execution time savings from its use in WNT4.) As previously, data files of up to 150,000 lines can be accommodated by Watcom ATP, so it is the preferred ATP program for those making large data cases. Potential users should be aware that atpwnt.exe does not inherently display screen plots. Plot display immediately follows execution when the eatpw.cmd execution script calls a separate program to seamlessly display the plots contained in the Postscript file from the case. Atpwnt-e.zip contains the DisplayNT.exe program, written by this author and Bob Schultz, to perform this function. It may also work on other 32- bit windows systems having the latest OpenGL support. A less-elegant solution is to use (free) Ghostview and Ghostscript to display the Postscript plots. The latter programs do allow plot printing to non-Postscript printers, so many users may need them anyhow. Both of these options are fully described in the atpgraph.pdf file on Bruce Mork's MTU server in the pub/atp/util/atpgraph directory. (Ftp to ftp.ee.mtu.edu. The user id is "atp"; the password was announced Aug. 13, 1998 on the atp-emtp listserver.) Installation, configuration, supporting programs and other details are described within atpwnt-e.zip. Bob Meredith -- September 21, 1998 ATPWNT CAPABILITIES AND A CAUTION: The Watcom version of ATP does NOT provide capabilities identical to those of the Salford version of the program. The most notable differences from Salford are that SPY graphics are not supported and there is no version of TPPLOT for WNT4. The password-protected or secure server atpwnt-e.zip file contains this descriptive file, the ATP executable, execution scripts, supporting programs, example data files and all necessary configuration files. The atpwnt.exe program produces only files -- not direct screen graphics. Calcomp graphics plot files are stored for later display in the form of extremely- compact Postscript vector print files. A highly- configurable viewer (DisplayNT.exe) is available. Users may either print the output plots to a Postscript printer or use Ghostview and Ghostscript to view and print the Postscript plot files. In either case the batch mode execution script (eatpw.cmd) can begin screen plot display at the end of execution, providing the appearance of seamless integration with the ATP program. A file named atpgraph.pdf, describing DisplayNT.exe, as well as the program itself (displynt.zip), are located in pub/atp/util/atpgraph at ftp.ee.mtu.edu. The directory has been password protected since August, 1998. TPPLOT functionality is provided by the "replot" capabilities of ATP, working from either formatted or unformatted ".pl4" files. Or one can rerun the cases to get the desired Postscript plots directly. All users also receive psplot.exe and postplot.cmd to print one, two or four plots per page to Postscript printers or to create extremely compact ".eps" figures for inclusion in electronic publishing INSTALLING WATCOM ATP FOR WNT: (1) The files in atpwnt-e.zip should be unzipped and moved to a directory named "atpwnt". This directory is intended to serve as a single point repository for executable ATP code, rather than as a working directory. (2) The "atpwnt" directory should be placed in your path statement. (3) Set an environmental variable for "atpwnt" to point to the atpwnt directory. For example, set "atpwnt" ="d:\atpwnt" in the WNT control panel under the environment tab (and add your "atpwnt" directory to your "path" variable at the same location). The symbolic name %atpwnt% in the eatpw.cmd script refers to that source of ATP executables and the INITIAL source of configuration files for atpwnt.exe and the eatpw.cmd script. No other environmental variable relating to ATP, such as "watdir" or "atpdir" should be set, because some portions of the ATP code may incorrectly attempt to use configuration files from those locations if they are set. Type "set" in your command window to list all of your environmental variables. (4) Users of W95 and W98 should rename the two "*.cmd" files to "*.bat" files, to have them recognized as command scripts. The graphics.wnt and startup.wnt files are the only files you may need to customize. These two files will be automatically copied by eatpw.cmd to every working directory in which you execute that command and in which they do not already exist. Thus it is necessary only to have a data file (i.e. dc1.dat) in a working directory before typing "eatpw dc1" to execute ATP. Copies of startup.wnt and graphics.wnt will be placed in the working directory. In turn these will also be copied to create the "startup" and "graphics" files, directly used by atpwnt. ***************************************************** (5) It is essential that any pre-existing files with any of the above four names be removed from any working directories in which you wish to execute atpwnt. ******************************************************* (6) Startup.wnt in the %atpwnt% directory must be customized to your system frequency. Set STATFR=60.0 or 50.0 Hz, usually. This is the frequency at which reactances are converted. (7) Startup.wnt must indicate where ".pl4" plot data files are to be saved. They will appear in your working directory if you use KTRPL4 to identify the drive on which your working directory exists (KTRPL4=-4 means drive D). Setting KTRPL4 to represent another drive will cause the files to appear in the root directory of that drive. If you do not normally use "*.pl4" files for anything, it is a convenient way of collecting them remotely for batch deletion. (8) If you want to sort input cards in memory, set LUNIT10 to a non-positive value. It will speed execution on large memory machines. Other "startup" and "graphics" variables are described in the "ATP Rule Book". Graphics-related variables are described in detail in the atpgraph.pdf file. Once startup.wnt has been copied to a working directory, it can be customized to reflect the type of studies done in that directory. For example, a consultant might have separate directories for 50-Hz studies and 60-Hz studies. Or you might want all plots created in a particular directory to display captions or titles with different sizes or locations - all items that can be customized in the startup.wnt and graphics.wnt files of that directory. Feel free to experiment with editing of startup and discard it when done experimenting. Eatpw.cmd will copy it from that directory's, startup.wnt, if it does not exist. For instance, if debugging output is desired, the user must change startup setting LU6VRT from 65536 to 0 to eliminate output file caching and set IPRSUP to a non- zero value. Simply deleting startup afterward is easier than undoing those changes. RUNNING ATPWNT: Atpwnt can be run in any working directory with a data case, using the eatpw.cmd command. Typing "eatpw dc1" will run case dc1.dat, if that test case is placed in any other working directory on your computer. Atpwnt can run multiple cases simultaneously, even in the same working directory. True multitasking is one of the advantages of WNT4 and atpwnt. A case named plottest.dat is provided to test graphics operation and integration with DisplayNT. Note that the eighth plot is abnormally wide, but that DisplayNT can be readily resized to display it. A listsize.dat file can be placed in the working directory, if you desire to use less than maximum program dimensions. However, IT IS A TOTALLY UNNECESSARY ACTION, if your WNT4 system has adequate memory. Only a maximum size listsize.dat file is provided. Any time spent editing the file will never be recovered in use, unless your system is swapping to virtual memory at the large dimensions. If your WNT4 can readily run MS Office applications, it can run maximally dimensioned ATP without a listsize.dat file. The executable atpwnt.exe can also be run interactively by responding to the command prompts issued after typing the name of the executable. This author sees no reason to EVER do so, however. GHOSTVIEW and GHOSTSCRIPT: These two programs work together to display on screen what would otherwise be printed from a Postscript file to a Postscript printer, be it color or black and white. They also allow printing the image to many non- Postscript printers. Thus they are of interest to those users without access to Postscript printers. Ghostview can also be used to provide the bitmap rendition necessary to make "*.eps" figures viewable in electronic documents and printable on non-Postscript printers. The programs are freely available on the internet: Ghostview versions are contained in the file://ftp.cs.wisc.edu/ghost/rjl/gsview13.zip or its successor. Ghostview must be used with Aladdin Ghostscript,found in the following files or their version successors: //ftp.cs.wisc.edu/ghost/aladdin/gs333fn1.zip //ftp.cs.wisc.edu/ghost/aladdin/gs333fn2.zip //ftp.cs.wisc.edu/ghost/aladdin/gs333ini.zip //ftp.cs.wisc.edu/ghost/aladdin/gs333w32.zip Note that graphics variable WHTBAK controls the degree of white or black in the background of the Postscript plots you might want to display or print with these programs (DisplayNT is unaffected). A gray or black background can be removed before printing by processing with the psplot program to produce the printable "postcom" file. DISPLAYNT: The authors' plot display program DisplayNT.exe is described in detail in the atpgraph.pdf file on the MTU server. Users should be aware that it will write its own default DisplayNT.ini file upon its first invocation. The DisplayNT.ini file allows user control of screen plot font sizes and all color selections, among other features. Multiple instances of the program can be run simultaneously to compare plots from different cases. An association with the ".ps" files from atp will allow plot review of any past case simply by double clicking the "*.ps" file's icon. Alternatively the program can be placed in the user's "send to" directory to be initiated by a right mouse menu click on the ".ps" file icon. Keystrokes by the user can readily suppress selected plot traces or text to allow a better view of the remaining plot traces. POSTPLOT/PSPLOT: Psplot7n.exe is the authors' program for conditioning and printing selected case plots from the Postscript plot file. It is most conveniently run by the editable postplot.cmd script. Type "postplot" to see a list of usage syntax. Typical usage is "postplot -iplottest.ps 2 5 7 8-end -p4" to print the indicated file's plots at four per page. If the file is that most recently created by eatpw, the file name may be eliminated and postplot will use default postplot.ps as the source. The numbers correspond to the plot sequence numbers following the dates in the screen display. Note that "DisplayNT 3" shows the third completed plot, whereas "postplot 3" will print the third ATP attempted plot, if ATP skipped some plots due to error. Other details and capabilities of psplot usage are described in the atpgraph.pdf file. REPLOT: Custom screen plots can be generated from the ".pl4" file by use of the REPLOT feature of ATP. Case replot1.dat demonstrates its use with the default unformatted file type. Case replotf.dat demonstrates its use with formatted file types. Please note that to use formatted files three changes to startup are required: Lunit4 must be changed from -4 to 4; L4byte must be changed from 1 to 0; and FMTPL4 must be changed from blank to 10E8.0. Use of the default unformatted "c-like" files provides significantly faster completion of the ATP case. BLANK.INC and "sortout": The file blank.inc may be included after your miscellaneous data cards to incorporate the blank card skeleton needed for keyword sorting of subsequent data cards. If diagnosis of problems in cases with keyword sorting is a problem, execute eatpw with a trailing argument of "sortout" after the file name. Atpwnt will create a fully-sorted data file with the same case name root, ending with ".fat". This argument is also quite helpful for assembling a complex case with many "$include" files into a single file for transmittal to someone else. Robert J. Meredith (meredith@csnet.net) Robert A. Schultz (rschultz@bestweb.net). (This text was last revised on September 21, 1998)