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_parDATA won’t run for weeks on end and eventually create a problem by filling up the disk.
The time is quantized to 100mS.
If this argument is present it is used as the bit width of data. The data is then extracted using the bit width and printed as a signed integer.
poll_parDATA --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_parDATA|g1|read1 |0|TPS TK-1|GvmVR
|
poll_parDATA|g1|read2 |0|SETUP |Ispecies|
poll_parDATA|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>, 0x732f, 0x6969,
0xac2f,
<date>, 0x7324, 0x6967, 0xac2e,
<date>, 0x732e, 0x696b, 0xac2f,
<date>, 0x7330, 0x696d, 0xac2e,
# host conf dataPath it fc time
bit_size
# ------- -------- -------- -- -- --- --------
poll_parDATA --dbman_host csdev11 --mngr MNGRconf --data_path data_dir --data_pnt
30 --file_cnt 10 --time 0.1 --bitsize16
The MNGRconf file looks like this.
poll_parDATA|g1|read1
|0|TPS TK-1|GvmVR |
poll_parDATA|g1|read2 |0|SETUP |Ispecies|
poll_parDATA|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>, 29487, 26985, -21457,
<date>, 29476, 26983, -21456,
<date>, 29486, 26987, -21457,
<date>, 29488, 26989, -21456,
This program doesn’t handle the Ldisp datatype correctly.