source: branches/testFACT++branch/www/smartfact/struct/help-binaryfile.page@ 19305

Last change on this file since 19305 was 14623, checked in by tbretz, 12 years ago
File size: 1.3 KB
Line 
1Binary-file format
2|<h4>Camera and histogram file format</h4>
3The first line of the file always contains a thirteen-digit number
4which is the time (in UTC) corresponding to the contained data as Unix
5time (milli-seconds since 1/1/1970). The second line contains a
6floating point number (in human readable ascii format) representing the
7lower limit if the scale and the third line the upper limit. The next three
8lines contain the three numbers displayed on top of the graphics,
9usually the minumum, median and maximum data value. Everything
10after is considered to be the data. For some restrictions of the HTML
11GET mechanism available in JavaScript the data must not exceed ascii
12character 127. So the full scale displayed, either in colors or as
13graph, is from 0 to 127. Eeach ascii character represents one entry in
14the camera or the histogram. The number of entries in the histogram can
15be between 0 to hundreds, although more entries than a typical screen
16has pixels does not make much sense. Keep in mind that the data is
17reloaded every few seconds and the larger the file is the higher the
18network traffic is. For the camera the number of entries is fixed and
19must either be 40 (boards), 160 (patches), 320 (HV channels) or 1440
20(pixels). They must be ordered by crate, board, chip, group, channel.
21|
Note: See TracBrowser for help on using the repository browser.