The Plot Interface Definition File (PIDF) is the UDF interface file between a UDF definition and any application which uses data from that definition. This document is a full description of the PIDF and its fields. It is written with for both the general user and for anyone who might need to develop a PIDF for a specific UDF definition. It assumes at least a rudimentary understanding of the UDF concept and some of the terminology which is used in describing it.
The primary purpose of the PIDF is to allow an application program to identify what measurements exist under a UDF definition, to identify where those measurements are stored within the UDF data or header record, and to identify what units those measurements may be returned with including any necessary algorithms needed to produce those units. In addition the PIDF contains a large amount of default information: ranges, scaling, labels, and storage methods. What if any of this information an application chooses to use depends on the application.
The PIDF is a keyed ASCII file, that is each information field in the file consists of KEY WORD followed an entry. Data is blocked through the use of nested C-like structure statements enclosing a set of information field definitions. These structures take the form:
struct YYYYNN
{
};
where YYYYY is the structure identifier and NN
is an integer structure counter beginning at 0.
A PIDF contains 12 different blocks of information. In general, however not all blocks will apply to the measurements within a UDF and those not relevant are omitted. The possible blocks are listed below in the order in which they will be taken up with in this document.
The PIDF filename is the UDF Virtual Instrument acronym appended with .pidf.v2. The files are located in the directory indicated in the UDF database configuration file DB.cfg.
Comments are allowed within the PIDF file and are defined as any text following a $. There is no comment termination symbol. The $ may occur anywhere on a PIDF line. The comment terminates the line. To continue a comment on a succeeding line requires another $. Any number of spaces may occur between a line entry and the beginning of a comment.
An entry line within the PIDF has the format:
| string | A character string ENTRY which must be contained within double quotes ("); |
|---|---|
| char | A single character ENTRY which must be contained within single quotes ('); |
| float | A floating or real ENTRY |
| int | An integer ENTRY |
The valid KEYWORDs will be described individually in the PIDF contents section.
Information lines in the PIDF are limited to 149 characters including spaces.
All entries in a PIDF file occur between the lines
pidf v2_XXXX {
};
where XXXX is UDF virtual instrument acronym of the PIDF being defined. These
two lines must be the the first and last line in any PIDF file.
There is some terminology within the PIDF which has changed over time. In most cases the original terminology was based on a specific class of instruments or data usage. As more classes of instruments had their data converted into UDF/IDFS format and the usage of certain classifications of data generalized, the older terminology gradually shifted to a terminology which was more in-line with the actual usage. In contrast, however, the PIDF field names held to their original forms often leading to confusion. There are three shifts in terminology which probably account for 99% of any confusion in correlating the verbal descriptions of the PIDF contents with the actual field names. These are described below.