The linac bpms and MV200 PVs are synchronously monitored using the command below. One might wish to monitor these PVs determine if linac beam position and transverse size at a flag are correlated. The output file will contain 100 aligned samples of the PV data and should therefore take 16.67 seconds assuming the linac is running at 6 Hz. Alignment of process variable data is accepted and written to the output file if and only if the PV time stamps are within +/- 1/6 Hz = 0.08 seconds. Data acquisition stops after 100 samples are acquired or a -timeLimit of 20 seconds has elapsed. Note, it is absolutely required that the scalar synchronous PV file listed below (synchPVs.mon) contain at least a single PV. This is true even if one wishes only to synchronously acquire waveform process variables.
where the contents of the file synchPVs.mon are
The scalar linac bpm and MV200 PVs are synchronously monitored along with LCLS bpm data waveforms using the command below. The command is identical to that in the previous example except for the additional waveform file that specifies a file containing waveform PV data.
where the contents of the file LCLS.wmon are
The input file is an SDDS file with a few data columns required:
The waveformData file is an optional input file specified on the command line which lists waveform PVs to be synchronously logged along with the scalar PVs in the input file.
The slowData file is an optional input file specified on the command line which lists scalar PVs to be slow (read non-synchronously) logged along with the synchronously logged scalar or waveform PVs in the input and waveform PV files. This feature is convenient if one wishes to log PVs for system information purposes instead of correlation analysis (such as beam current, vacuum pressure etc.). This file has the same columns as the input file.
The output file contains one data column for each process variables named in the input file if no waveformData file is specified. By default, the data type is float (single precision). If an optional waveformData file is specified, the structure of the output file changes. In this case, the column data are the waveform PVs and the scalar PVs in the input and slowData files are parameters. Each page contains waveform and scalar PV data for a single sample of the total number of samples acquired. The total number of pages equal the number of samples specified in -samples if all samples are able to be collected (ie. timeLimit is not exceeded during acquisition). Time columns and other miscellaneous columns are defined:
Many time-related parameters are defined in the output file: