output file:
The output file contains information on the process variable alarm status change, such as the time of
occurrence, the alarm designation, the severity of the alarm, and the row location of the previous alarm
status change.
In order to save disk space sddsalarmlog logs integer codes (indexes) instead of the actual string values
for the control name, the alarm status and the alarm severity. The integer codes are indices into one
of three string arrays written to the output file. The logging information can be recovered using SDDS
tool sddsderef.
As an option, and for a direct interpretation of the output file, the control name, alarm status and
alarm severity can be written explicitly as string columns with or without the integer codes. However
this option uses up a lot more disk space.
In either case the following columns are defined:
- PreviousRow — Long column of row numbers. For each process variables alarm status change, the
row location of the previous alarm status change is written.
- TimeOfDay — Float column of system time in units of hours. The time does not wrap around at
24 hours.
By default these columns are defined (except when the option -explicit=only is specified):
- ControlNameIndex — Long column indicating the process variable whose alarm status changed.
The value of this data is the index into the string array ControlNameString, which is the list of
all process variables monitored.
- AlarmStatusIndex — Short column indicating the alarm status. The value of this data is the index
into the string array AlarmStatusString, which is the list of all possible alarm status values.
- AlarmSeverityIndex — Short column indicating the alarm status. The value of this data is the
index into the string array AlarmSeverityString, which is the list of all possible alarm severity
values.
These columns are created by the option -explicit:
- ControlName — String column for the process variable whose alarm status just changed.
- AlarmStatus — String column for the alarm status.
- AlarmSeverity — String column for the alarm severity.
This column is created with option -durations:
- Duration — String column for the duration of the previous alarm state.
These arrays are created by default except when the option -explicit=only is specified:
- ControlNameString — String colunm of all process variables to be monitored.
- AlarmStatusString — String colunm of all possible alarm status values.
- AlarmSeverityString — String colunm of all possible alarm severity values.
These parameters are defined:
- InputFile — String parameter for the name of the input file.
- TimeStamp — String parameter for time stamp for file.
- PageTimeStamp — String parameter for time stamp for each page. When data is appended to an
existing file, the new data is written to a new page. The PageTimeStamp value for the new page is
the creation date of the new page. The TimeStamp value for the new page is the creation date of
the very first page.
- StartTime — Double parameter for start time from the C time call cast to type double.
- YearStartTime — Double parameter for start time of present year from the C time call cast to
type double.
- StartYear — Short parameter for the year when the file was started.
- StartJulianDay — Short parameter for the day when the file was started.
- StartMonth — Short parameter for the month when the file was started.
- StartDayOfMonth — Short parameter for the day of month when the file was started.
- StartHour — Short parameter for the hour when the file was started.