It subscribes to the list of parameters contained in the file named by the conf argument.
The value of each parameter is written to files in the directory pointed to by the data_path argument.
All parameters in the list are written as a comma separated set of fields terminated by a new line, i.e. each line in the file is one round of polling information. The list is written to the file at intervals of one second unless overridden by the time argument.
Several files may be generated by the program. Each file will contain the number of polling events specified by the data_pnt argument. The maximum number of files to generate is determined by the file_cnt argument. The file names are of the form "f.<file_num>" where file_num is replaced by the current file number, i.e. if file_cnt=3 the generated files will be named f.001, f.002, and f.003.
This scheme allows data to be logged for prescribed intervals while providing for some kind of control of disk usage. An errant copy of poll_par2 won’t run for weeks on end and eventually create a problem by filling up the disk.
The time value is quantized to 100mS.
poll_par2 --dbman_host csdev11 --mngr MNGRconf --data_path data_dir --data_pnt 30 --file_cnt 10 --time 0.1
The MNGRconf file looks like this.
poll_par|g1|read1 |0|TPS TK-1|GvmVR |
poll_par|g1|read2 |0|SETUP |Ispecies|
poll_par|g1|read3 |0|SETUP |Ospecies|
The data_dir contains these file names when finished.
f.001, f.002, f.003, f.004, f.005, f.006, f.007, f.008, f.009, and f.010.
The contents of the data file look like this (not all lines shown). <date> is replaced with the current time and date:
<date>,0.000000e+00,1.000000e+00,2.000000e+00,
<date>,0.000000e+00,1.000000e+00,2.000000e+00,
<date>,0.000000e+00,1.000000e+00,2.000000e+00,
<date>,0.000000e+00,1.000000e+00,2.000000e+00,