A scaler dump can be produced from the control program with the command
control>scaler [buffer] [dest]
where [buffer] should be substituted with 'curr' for the last read scaler buffer or 'accum' for the accumulated scaler buffer (see section 8.4.1 of acqu manual) and [dest] should be substituted with 'tt' to print the results to the screen or 'file' to print the results to a file.
To produce formatted output the control program looks for the existence of a file
/dmp/scaler_format.dat
This file puts comment lines with the scaler output and allows
arithmetic operations between them. The /dmp/scaler_format.dat file
contains examples.The format for the file is specified below.
*
Input lines are either
*
Comment '*' should be 1st character of line
*
Format 'f' should be 1st character of line (printf format spec)
*
Constant 'c' should be 1st character of line, followed by
*
the value of the constant
*
*
Scaler spec.....up to 16 scalers specified per line
*
for each scaler: 's' index [connect] [index']
*
*
s136
scaler 136
*
s136+137 sum scalers 136
and 137
*
s136-137 diff scalers 136
and 137
*
s136/137 quotient scalers
136 and 137
*
s136*137 product scalers
136 137
*
s136/
quotient scaler 136 and constant
*
s136/137/ 136 div by 137 div
by constant
*
* Thus a trailing operator specifies
a constant operation
* +,-,* operations also possible
with constants
Notes.
1) To remove the formatted scalers option just rename the scaler_format.dat file.
2) If this file does not exist then the dump prints out the scalers
in the order they appear in the fastbus crate. This order can be obtained
from the fastbus setup file (at present fastbus.PipTofTag).