FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference 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

Yes


Specification (FSP) files, *.fsp

Yes


Interactively, to FPT> prompt:

No


Interactive command files

No


Embedded in the Fortran code

Yes


Example:

The program hovers2.f is processed with the command:

$ fpt hovers2.f /datapool_listing_file:dpool.lis write_datapool_text_file:hover2.dpt

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 2014 Software Validation Ltd. All rights reserved.