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