Warning: If the readback values of all of the vector PVs do not change, then no data sets are written to the output file. This skipping of duplicate values is intended to keep the size of the output file as small as possible. The scalar PVs are not checked for changes though. In the future an option that allows logging of duplicate vector PVs may be implemented.
where the contents of the file SRvac.vmon are
There is only one element in the suffix list of this example. The output file will contain columns Rootname and VGC1.PRES.
The input file is an SDDS file with one data column and one parameter:
The list of process variables is formed by combining all the rootnames and suffixes.
An alternative to specifying the rootnames and suffixes with the above input file is to specify the list of rootnames and suffixes with two separate files, as shown in the usage message above. The string data in rootname file must be in column Rootname. The string data in suffix file must be in column Suffix.
An optional input file for scalar PVs (i.e. regular PVs) can be specified. The required columns are:
The conditions file is an optional input specified on the command line which lists conditions that must be satisfied at each time steps before the data can be logged.
The file is like the main input file, but has numerical columns LowerLimit and UpperLimit. The minimal column set is ControlName, which contain the PV names, and the two limits columns above. Depending on command line options, when any or all PV readback from this file is outstide the range defined by the corresponding data from LowerLimit and UpperLimit, none of the data of the input file PVs are recorded. When this situations occurs for a long period of time, the size of the output file doesn’t grow, and it may appear that the monitoring process has somehow stopped. It is possible to check the program activity with the touch sub-option which causes the monitoring program to touch the output file at every step.
The output file contains one data column for each suffix named in the input file. By default, the data type is float (single precision). Other columns are:
Each reading step produces a new page in the output file. Time and other miscellaneous parameters are defined:
For each scalar PV defined in the scalars command line option a parameter of type double is defined.
Many time-related parameters which don’t change values throughout the file are defined:
One of allMustPass or oneMustPass must be specified. It would make sense to use allMustPass in most monitoring applications. If touchOutput is present, then the output file is touched, even if no data is written. This way, one can determine by the time stamp of the file whether the monitoring job is still alive when the conditions fail for a long period of time. If retakeStep is present, then the value of Step in the output file is not incremented until the conditions pass, and data is written to the output file.