sddsalarmlog
logs changes of alarm status for process variables named in an input file.
sddsalarmlog PAR.alog PAR.alog.sdds -timeDuration=1,daywhere the file
PAR.alog
is the input file containing the names of the
process variables, and the file PAR.alog.out
is the output file.
usage: sddsalarmlog <input> <output> -timeDuration=<realValue>[,<time-units>] [{-append[=recover] | -eraseFile | -generations[=digits=<integer>][,delimiter=<string>} | -dailyFiles[=verbose]] [-pendEventTime=<seconds>] [-durations] [-explicit[=only]] [-verbose] [-comment=<parameterName>,<text>]
The input file is an SDDS file with the required string column ControlName which contains the names of the process variables whose status is to be monitored.
The output file contains information on the process variable alarm status change, such as the time of occurence, 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:
By default these columns are defined (except when the option -explicit=only is specified):
These columns are created by the option -explicit:
This column is created with option -durations:
These arrays are created by default except when the option -explicit=only is specified:
These parameters are defined:
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.
sddsalarmlog
.
-generations[=digits=<integer>][,delimiter=<string>]
--
The output is sent to the file <SDDSoutputfile>-<N>
, where <N>
is
the smallest positive integer such that the file does not already
exist. By default, four digits are used for formating <N>
, so that
the first generation number is 0001.