9.572 Report-Generator

The Report-Generator logical device collects a user defined set of parameters and generates formatted reports on a regular basis. Reports are stored as PDF files for printout and in parallel as semicolon separated text files (CSV) for further machine based processing. The Report-Generator device is available as of version 3.0 of the software.

Report types

The Report-Generator provides a number of report types. Each type implements a certain report generation timing. The following table shows the available report types:

The report timing (the report type and for simple reports also the interval and the time of day) is set at the device window of the Report-Generator device. Please note that changing the report timing voids all temporary data collected for the actual report interval.

Report contents

The contents of a report produced by the Report-Generator device is defined in a text based configuration file. The file defines which parameters are to be recorded and also some information about the layout of the report sheets.

The configuration file defines one report property or report item per line. Empty lines and lines starting with a hash character ('#') are ignored. Each line starts with a keyword, followed by a (item specific) number of parameters.

The sequence of item definitions in the configuration file defines the sequence of lines in the report. The global TITLE definitions may appear anywhere in the file.

When using non-ASCII characters in the description texts, the file must be ISO8859 encoded that these characters are correctly shown in the report.

Snapshot reports

The Report-Generator device is capable to produce snapshot reports on a button press. The snapshot report prints the actual values of the recorded parameters. Report items which record time intervals are omitted in this report. Minimum/maximum/average items print the actual parameter value rather than the value computer over a certain time interval.

Pausing the data recording

The device allows to pause data recording by setting the appropriate parameter at the device window's main page. While paused, the device does not recognize any changes of parameter values. This may be helpful during maintenance of the station: Faults of incorrect parameter readings produced during the exchange of a device do not falsify the report statistics if the Report-Generator is set to PAUSED during the maintenance operation.

In order to remind the operator of re-enabling the device, the Report-Generator shows a fault while it is PAUSED.

Report file names

The device uses a fixed pattern to generate the names of the report files. Each file name starts with the name of the Report-Generator device, followed by a single letter for the report type and the description of the recorded time interval. Examples:

Snapshot reports do not include a type letter, their file names consists of the device name and a full time stamp of the report creation.

CSV report files

Beside the PDF formatted reports, the device automatically produces CSV files for further machine based processing of the reported data. The files contain a semicolon separated table with the same layout as in the corresponding PDF report, except for TEXT, SPACE and HEADING items which are omitted in the CSV file. Also the CSV files are not page-formatted and do not contain page headers.

Device window pages

The following table shows which device window pages are available with this individual device type. Tool-bar functions not mentioned here are described at the general description of device windows .

Configuration parameters

At the maintenance page of the device window there are a couple of configuration parameters which must be set to make the device work properly.

parameter description
configFile The name of the configuration file which defines the report content.
reportDirectory The name of the directory where the report files shall be stored. This may be an absolute path or a path relative to the software's working directory. The directory must exist, the software does not create it automatically.

Additional remarks

The Report-Generator device stores all temporary data needed to collect the data for a report - including the timing settings for the report - in a file called XXX.dat, where XXX is substituted by the name of the device. This backup file is updated once an hour. The file is located in the base installation directory of the sat-nms software. Deleting this file resets the Report-Generator device to a daily SIMPLE report type and voids all cached report data.

The configuration file defining the report contents may be changed "on the fly", e.g. to add new parameters. After changing the file, press "RESET" on the maintenance page at the Report-Generator device window. This makes the device re-read the file. The collected data of all item which match in item type and parameter identifier is retained. New or changed report items are newly initialized.

Variables defined by this device driver

name type flags range
info.driver TEXT R/O StringRange R/O
info.type TEXT R/O StringRange R/O
info.frame TEXT R/O StringRange R/O
config.configFile TEXT SAVE SETUP StringRange
config.reportDirectory TEXT SAVE SETUP StringRange
reportType CHOICE EnumRange (SIMPLE WEEKLY MONTHLY QUARTERLY YEARLY)
recording CHOICE EnumRange (RUNNING PAUSED)
timeOfDay TEXT SAVE StringRange
interval INTEGER SAVE IntegerRange (1 .. 365)
snapshot TEXT NOPRESET StringRange
reset TEXT NOPRESET StringRange
state TEXT R/O StringRange R/O
faults.01 ALARM R/O AlarmFlagRange R/O (Recording stopped)
faults.02 ALARM R/O AlarmFlagRange R/O (Config file)