-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Fri Sep 13 23:19:10 2024 UTC
-- File 20240809_094040_1229.dat, 4074  packets found.
APID:
      1229 (EW) in 4074 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 4074 packets (all packets)
Total number of packets: 
      36720 in 4074 packets (all packets)
Packet No from 1 to 4074
!!!ERROR: Maximum packet number must be = 36720
   Sequence of packet numbers -- OK -- 
!!!ERROR: Last packet number must be = 36720
Hz and MHz counters from 0.442630 to 1.819430
-each separately from 0s to 1s and from 442630us to 819430us.
   Differences in neigboring packets: 
      0.000000 in 4072 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1.376800 in 1 packets: 2448
MIU packet time from 2024-08-09T09:40:43.442.630.000 to 2024-08-09T09:40:44.819.430.000
   Differences in neigboring packets: 
      0.000000 in 4072 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1.376800 in 1 packets: 2448
MIU orbit number: 
      60000 in 4074 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 4074 packets (all packets)
MIU orbit information / number of events: 
      0 in 4074 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 4074 packets (all packets)
Instrument anomalies: 
      0 (OK) in 4074 packets (all packets)
FPGA configuration version: 
      211 in 4074 packets (all packets)
10 MHz counter at the last 1Hz pulse from 1.3797985 to 2.3797951
   Differences in neigboring packets: 
      0.0000000 in 4072 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      0.9999966 in 1 packets: 2448
Temperature FPGA: 
      02 -> 52.4 degC in 2448 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      03 -> 51.1 degC in 1626 packets: 2449, 2450, 2451, 2452, 2453, 2454, 2455, 2456, 2457, 2458, 2459, 2460, 2461, 2462, 2463, 2464, 2465, 2466, ...
Temperature XO: 
      C2 -> 38.8 degC in 4074 packets (all packets)
Temperature ant 3: 
      01 -> 108.0 degC in 4074 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 4074 packets (all packets)
Number of external events: 
      1 in 2448 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 1626 packets: 2449, 2450, 2451, 2452, 2453, 2454, 2455, 2456, 2457, 2458, 2459, 2460, 2461, 2462, 2463, 2464, 2465, 2466, ...
Number of generated alerts: 
      1 in 2448 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 1626 packets: 2449, 2450, 2451, 2452, 2453, 2454, 2455, 2456, 2457, 2458, 2459, 2460, 2461, 2462, 2463, 2464, 2465, 2466, ...
Survey memory error: 
      0 in 4074 packets (all packets)
Event memory error: 
      0 in 4074 packets (all packets)
Configuration error: 
      0 in 4074 packets (all packets)
SDRAM CRC error: 
      0 in 4074 packets (all packets)
Radio gain: 
      0 in 4074 packets (all packets)
Radio bandwidth: 
      0 in 4074 packets (all packets)
Digital gain: 
      0 in 4074 packets (all packets)
Analog gain: 
      0 in 4074 packets (all packets)

EVENT DATA READER
-- File 20240809_094040_1229.dat, 19 EW pages found. Extra packets: 198.
   ERROR -  Extra packets
   Design version: 211 => Data interpreted as:   Pre-final (EM4-FM1) data structure with variable 32bit C10MHz in the event data descriptor
--
Data structure of all event data packets in the sequence read from file:
   Event numbers from 1 to 3
      1 in 2448 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 1428 packets: 2449, 2450, 2451, 2452, 2453, 2454, 2455, 2456, 2457, 2458, 2459, 2460, 2461, 2462, 2463, 2464, 2465, 2466, ...
   LS 32 bits of C10MHz from descriptor (period 430s)  from 1.9334061 to 3.1679971
      Difference between the neighboring packets: 
      0.0000170 in 3874 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1.1687330 in 1 packets: 2448
   Memory page number from 0 to 59
      Difference between the neighboring packets: 
      0 in 3857 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 17 packets: 204, 408, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2652, 2856, 3060, 3264, 3468, 3672
      42 in 1 packets: 2448
   Event page number from 1 to 60
      Difference between the neighboring packets: 
      0 in 3857 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 17 packets: 204, 408, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2652, 2856, 3060, 3264, 3468, 3672
      -59 in 1 packets: 2448
   MIU event flag 
      1 in 3876 packets (all packets)
   Time triggered event flag 
      0 in 3876 packets (all packets)
   Absolute time of the 1st EW sample = header abs. time + offset - one page (3.468 ms) - 175 ns delay
   Min EW event (1st sample) abs. time found among all events: 2024-08-09T09:40:43.387.141.825
   Min EW header abs. time found among all events            : 2024-08-09T09:40:43.442.630.000
   Max EW event (1st sample) abs. time found among all events: 2024-08-09T09:40:44.763.941.825
   Max EW header abs. time found among all events            : 2024-08-09T09:40:44.819.430.000
   TM values from -283 to 220 median:-4.00000
--
Data structure of separate events (selected and re-ordered from the packet sequence):

 Event no. 1 total number of packets: 2448
    Page no. 49:  204 packets  -- OK;  memory page(s):
      0 in 204 packets (all packets)  --OK-- 
    Page no. 50:  204 packets  -- OK;  memory page(s):
      1 in 204 packets (all packets)  --OK-- 
    Page no. 51:  204 packets  -- OK;  memory page(s):
      2 in 204 packets (all packets)  --OK-- 
    Page no. 52:  204 packets  -- OK;  memory page(s):
      3 in 204 packets (all packets)  --OK-- 
    Page no. 53:  204 packets  -- OK;  memory page(s):
      4 in 204 packets (all packets)  --OK-- 
    Page no. 54:  204 packets  -- OK;  memory page(s):
      5 in 204 packets (all packets)  --OK-- 
    Page no. 55:  204 packets  -- OK;  memory page(s):
      6 in 204 packets (all packets)  --OK-- 
    Page no. 56:  204 packets  -- OK;  memory page(s):
      7 in 204 packets (all packets)  --OK-- 
    Page no. 57:  204 packets  -- OK;  memory page(s):
      8 in 204 packets (all packets)  --OK-- 
    Page no. 58:  204 packets  -- OK;  memory page(s):
      9 in 204 packets (all packets)  --OK-- 
    Page no. 59:  204 packets  -- OK;  memory page(s):
      10 in 204 packets (all packets)  --OK-- 
    Page no. 60:  204 packets  -- OK;  memory page(s):
      11 in 204 packets (all packets)  --OK-- 
   Event no. 1 pages: 12  ordered packets: 2448
   TM values from -274 to 213 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=0 C1MHz=0.442630
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 2447 packets (all packets)
      -- OK -- correct differences for all packets of this event
         LS 32 bits of C10MHz from descriptor (period 430s)  in the first packet of this event: 1.9334061
   Event type -- OK -- (constant for all packets of this event): External
   Gain -- OK -- (constant for all packets of this event): 1x
   Header abs. time  -- OK -- (constant for all packets of this event): 2024-08-09T09:40:43.442.630.000
   Event 1st sample abs. time : 2024-08-09T09:40:43.387.141.825)
   --- Rel. time correction failed for 1 points and 0 XO calibration points.
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):            -333.000000175
   Event data descriptor XO time (reconstructed seconds from XP start)    :            -333.000000000
   Sampling frequency correction factor for this event:     1.000000000

 Event no. 2 total number of packets: 0
   No packets in this event  -- NOT OK -- 

 Event no. 3 total number of packets: 1428
    Page no. 1:  204 packets  -- OK;  memory page(s):
      53 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      54 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      55 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      56 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      57 in 204 packets (all packets)  --OK-- 
    Page no. 6:  204 packets  -- OK;  memory page(s):
      58 in 204 packets (all packets)  --OK-- 
    Page no. 7:  204 packets  -- OK;  memory page(s):
      59 in 204 packets (all packets)  --OK-- 
   Event no. 3 pages: 7  ordered packets: 1428
   TM values from -283 to 220 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=1 C1MHz=0.819430
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 1427 packets (all packets)
      -- OK -- correct differences for all packets of this event
         LS 32 bits of C10MHz from descriptor (period 430s)  in the first packet of this event: 3.1437381
   Event type -- OK -- (constant for all packets of this event): External
   Gain -- OK -- (constant for all packets of this event): 1x
   Header abs. time  -- OK -- (constant for all packets of this event): 2024-08-09T09:40:44.819.430.000
   Event 1st sample abs. time : 2024-08-09T09:40:44.763.941.825)
   --- Rel. time correction failed for 1 points and 0 XO calibration points.
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):            -333.000000175
   Event data descriptor XO time (reconstructed seconds from XP start)    :            -333.000000000
   Sampling frequency correction factor for this event:     1.000000000
--
Extremes in separate events:

 - Event number: 1 from 2024-08-09T09:40:43.387.141.825 to 2024-08-09T09:40:43.428.757.825 (XO: -333.000000175 - -332.958384175)
   Min TM value:-274 at an offset of 5935.750 usec -> 2024-08-09T09:40:43.393.077.575 (XO: -332.994064425)
   Max TM value:213 at an offset of 5935.475 usec -> 2024-08-09T09:40:43.393.077.300 (XO: -332.994064700)
   Max dTM/dt [1/us]:2.30e+03 at an offset of 15928.212 usec -> 2024-08-09T09:40:43.403.070.037 (XO: -332.984071963)
   Min dTM/dt [1/us]:-2.50e+03 at an offset of 5935.600 usec -> 2024-08-09T09:40:43.393.077.425 (XO: -332.994064575)
   Med: -4.00000   Ave: -4.4093041   Std: 4.2235765

 - Event number: 2 --EMPTY-- 

 - Event number: 3 from 2024-08-09T09:40:44.763.941.825 to 2024-08-09T09:40:44.788.217.825 (XO: -333.000000175 - -332.975724175)
   Min TM value:-283 at an offset of 15470.275 usec -> 2024-08-09T09:40:44.779.412.100 (XO: -332.984529900)
   Max TM value:220 at an offset of 15470.012 usec -> 2024-08-09T09:40:44.779.411.837 (XO: -332.984530163)
   Max dTM/dt [1/us]:2.10e+03 at an offset of 5409.488 usec -> 2024-08-09T09:40:44.769.351.312 (XO: -332.994590688)
   Min dTM/dt [1/us]:-2.76e+03 at an offset of 15470.125 usec -> 2024-08-09T09:40:44.779.411.950 (XO: -332.984530050)
   Med: -4.00000   Ave: -4.3958138   Std: 5.2161989
