NAME:
sampler2log - sampler logger
SYNOPSIS:
sampler2log [-d delta][-n samples_per_file]
[-t minutes_per_file][-m max_files][-v]
device_managersampler
DESCRIPTION:
Sampler2log stores the monitor values from the specified sampler
into a series of FITS binary files in the telescope's logging directories.
The full path to each file is printed as it is opened. Each file accepts
3600 samples before being closed and the next file opened. The file name
consists of the time of its first sample. Files continue being opened and
filled as long as the program is running. If the device name is not specified
or is illegal, then sampler2log returns a list of legal device names
and exits. If only the device name is specified or the given manager name
is illegal, then the program returns a list of possible manager names for
that device and exits. If only the device and manager names are specified
or the given sampler name is illegal, then the program returns a list of
possible sampler names and exits.
OPTIONS:
| -d delta | specifies the minimum elapsed time in seconds between samples. For example, if a sampler produces the sample every 200 msecs and delta is set to 1 then only every fifth sample will be written to the file; or if delta is set to 0 then every sample would be written to the file. The default is 0. |
| -n samples_per_file | sets the criterion of the size of the file by number of samples. The default is 3600. Only one of the options or may be set. |
| -t minutes_per_file | sets the criterion for the size of each file by period. Only one of the options or may be set. |
| -m max_files | causes the program to exit after have been written. |
| -v | set verbose mode. |
CAVEATS:
If a to-be-written file already exists, the program adds its process
identifier (PID) to the new file's name.