sddsstatmon
reads EPICS process variables, collects statistics,
and writes these statistics to an output file.
The statistics are the mean, standrd deviation, mininum, maximum, and sigma.
An input file defines the process variables to be monitored.
sddsstatmon SRvac.mon SRvac.sdds -time=24,hours -interval=1,second \ -samplesPerStatistic=60where the contents of the file
SRvac.mon
are
SDDS1 &description &end &column name = ControlName, type = string, &end &column name = ControlType, type = string, &end &column name = ReadbackUnits, type = string, &end &column name = ReadbackName, type = string, &end &data mode = ascii, no_row_counts=1 &end ! page number 1 S35DCCT:currentCC pv mA S35DCCT VM:01:3IP1.VAL pv Torr VM:01:3IP1 VM:01:2IP2.VAL pv Torr VM:01:2IP2 VM:01:2IP3.VAL pv Torr VM:01:2IP3 ...
usage: sddsstatmon <input> <output> [-erase | -generations[=digits=<integer>][,delimiter=<string>]] [-steps=<integer-value> | -time=<real-value>[,<time-units>]] [-interval=<real-value>[,<time-units>] | [-singleShot{=noprompt | stdout}] [-samplesPerStatistic=<integer>] [-verbose] [-precision={single|double}] [-updateInterval=<integer>] [-ezcaTiming[=<timeout>,<retries>]] [-noezca] [-oncaerror={skip | exit | repeat} [-comment=<parameterName>,<text>] [-getUnits={force | ifBlank | ifNoneGiven}] Writes values of process variables or devices to a binary SDDS file.
The input file is an SDDS file with a few data columns required:
The output file contains one column per statistic per process variable monitored. The five statistics are the mean, standard deviation, minimum value, maximum value, and sigma. The corresponding column names are <name>Mean, <name>StDev, <name>Min, <name>Max, and <name>Sigma, where <name> is the ReadbackName name value of the process variable in the input file.
By default, the data type is float (single precision). Time columns and other miscellaneous columns are defined:
sddsplot
to make the best coice of time unit conversions
for time axis labeling.
Many time-related parameters are defined in the output file:
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.
sddsstatmon
.
-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.
-singleShot[=noprompt]
-- a single read is prompted at the terminal
and initiated by a <cr>
key press. The time interval is disabled.
With noprompt
present, no prompt is written to the terminal, but a <cr>
is still expected. Typing ``q'' or ``Q'' terminates the monitoring.