fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref Manual Home |

WRITE DATAPOOL TEXT FILE

Syntax:

[DO NOT] WRITE DATAPOOL TEXT FILE: <filename>

Function:

Please see the command DATAPOOL LISTING FILE for a description of the Gould-SEL (ENCORE) DATAPOOL.

The Software Validation Ltd. DATAPOOL toolkit uses a DATAPOOL database written as an ASCII text file to maintain the DATAPOOL constructs in the user's program. This command generates the database file from information held in the Gould-SEL (ENCORE) DATAPOOL listing file. The file has the default file name extension .dpt.

Where to Use this Command

Operating system command line Yes
Configuration file, config.fsp No
Specification (fsp) files, *.fsp Yes
Interactively, to FPT> prompt Yes
Interactive command files No
Embedded in the Fortran code No

Examples

The program hovers2.f is processed with the command:

$ fpt hovers2.fsp

Where hover2.fsp contains:

! hovers2.fsp 12-Sep-99 John Collins hovers2.f %datapool_listing_file:dpool.lis %write_datapool_text_file:hover2.dpt ! End of hovers2.fsp

The datapool listing file, dpool.lis, contains the fragment:

LOG X EQU X:QDO +X'00028' EW001 X Pos, World, ft LOG Y EQU X:QDO +X'0002C' EW001 Y Pos, World, ft LOG H EQU X:QDO +X'00030' EW001 Height absol ft LOG HRAD EQU X:QDO +X'00034' EW001 Height radar ft LOG HBAR EQU X:QDO +X'00038' EW001 Height barom ft LOG THETA EQU X:QDO +X'0003C' EW001 Degrees LOG PHI EQU X:QDO +X'00040' EW001 Degrees LOG PSI EQU X:QD0 +X'00044' EW001 Degrees +- 180 LOG P EQU X:QDO +X'00048' EW001 Degrees/sec LOG Q EQU X:QDO +X'0004C' EW001 Degrees/sec LOG R EQU X:QDO +X'00050' EW001 Degrees/sec LOG LAT EQU X:QDO +X'00058' ED001 Latitude, degrees LOG LONG EQU X:QDO +X'00060' ED001 Longitde, degrees

This generates the DATAPOOL text file fragment:

X REAL*4 40 X Pos, World, ft 12-SEP-99 20:46:12 fpt Y REAL*4 44 Y Pos, World, ft 12-SEP-99 20:46:12 fpt H REAL*4 48 Height absolute ft 12-SEP-99 20:46:12 fpt HRAD REAL*4 52 Height radar ft 12-SEP-99 20:46:12 fpt HBAR REAL*4 56 Height barometric ft 12-SEP-99 20:46:12 fpt THETA REAL*4 60 Degrees 12-SEP-99 20:46:12 fpt PHI REAL*4 64 Degrees 12-SEP-99 20:46:12 fpt PSI REAL*4 68 Degrees +- 180 12-SEP-99 20:46:12 fpt P REAL*4 72 Degrees/sec 12-SEP-99 20:46:12 fpt Q REAL*4 76 Degrees/sec 12-SEP-99 20:46:12 fpt R REAL*4 80 Degrees/sec 12-SEP-99 20:46:12 fpt LAT REAL*8 88 Latitude, degrees 12-SEP-99 20:46:12 fpt LONG REAL*8 96 Longitude, degrees 12-SEP-99 20:46:12 fpt

Note that the DATAPOOL text file is maintained in address order.

See also:

DATAPOOL LISTING FILE

Copyright ©1995 to 2025 Software Validation Ltd. All rights reserved.