-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Thu Mar  9 02:42:08 2023 UTC
-- File 20220528_195801_1229.dat, 10600  packets found.
APID:
      1229 (EW) in 10600 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 10600 packets (all packets)
Total number of packets: 
      36720 in 10600 packets (all packets)
Packet No from 1 to 10600
!!!ERROR: Maximum packet number must be = 36720
   Sequence of packet numbers -- OK -- 
!!!ERROR: Last packet number must be = 36720
Hz and MHz counters from 129.150002 to 227.419579
-each separately from 129s to 227s and from 150002us to 889968us.
   Differences in neigboring packets: 
      0.000000 in 10597 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      98.269577 in 1 packets: 816
      -38.529611 in 1 packets: 9384
MIU packet time from 2022-05-28T20:00:13.150.002.000 to 2022-05-28T20:01:51.419.579.000
   Differences in neigboring packets: 
      0.000000 in 10597 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      98.269577 in 1 packets: 816
      -38.529611 in 1 packets: 9384
MIU orbit number: 
      60000 in 10600 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 10600 packets (all packets)
MIU orbit information / number of events: 
      0 in 10600 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 10600 packets (all packets)
Instrument anomalies: 
      0 (OK) in 10600 packets (all packets)
FPGA configuration version: 
      211 in 10600 packets (all packets)
10 MHz counter at the last 1Hz pulse from 131.2293295 to 229.2290003
   Differences in neigboring packets: 
      0.0000000 in 10597 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      97.9996708 in 1 packets: 816
      -38.9998689 in 1 packets: 9384
Temperature FPGA: 
      00 -> 55.0 degC in 816 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      FF -> 56.3 degC in 9784 packets: 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, ...
Temperature XO: 
      C5 -> 43.6 degC in 10600 packets (all packets)
Temperature ant 3: 
      01 -> 108.0 degC in 10600 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 10600 packets (all packets)
Number of external events: 
      1 in 816 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 8568 packets: 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, ...
      2 in 1216 packets: 9385, 9386, 9387, 9388, 9389, 9390, 9391, 9392, 9393, 9394, 9395, 9396, 9397, 9398, 9399, 9400, 9401, 9402, ...
Number of generated alerts: 
      1 in 816 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 8568 packets: 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, ...
      2 in 1216 packets: 9385, 9386, 9387, 9388, 9389, 9390, 9391, 9392, 9393, 9394, 9395, 9396, 9397, 9398, 9399, 9400, 9401, 9402, ...
Survey memory error: 
      0 in 10600 packets (all packets)
Event memory error: 
      0 in 10600 packets (all packets)
Configuration error: 
      0 in 10600 packets (all packets)
SDRAM CRC error: 
      0 in 10600 packets (all packets)
Radio gain: 
      0 in 10600 packets (all packets)
Radio bandwidth: 
      0 in 10600 packets (all packets)
Digital gain: 
      0 in 10600 packets (all packets)
Analog gain: 
      0 in 10600 packets (all packets)

EVENT DATA READER
-- File 20220528_195801_1229.dat, 51 EW pages found. Extra packets: 196.
   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 816 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 8568 packets: 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, ...
      2 in 1020 packets: 9385, 9386, 9387, 9388, 9389, 9390, 9391, 9392, 9393, 9394, 9395, 9396, 9397, 9398, 9399, 9400, 9401, 9402, ...
   LS 32 bits of C10MHz from descriptor (period 430s)  from 131.5180529 to 229.7387319
      Difference between the neighboring packets: 
      0.0000170 in 10401 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      98.0611850 in 1 packets: 816
      -38.6751190 in 1 packets: 9384
   Memory page number from 0 to 86
      Difference between the neighboring packets: 
      0 in 10353 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 49 packets: 204, 408, 612, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856, 3060, 3264, 3468, 3672, 3876, ...
      37 in 1 packets: 816
   Event page number from 1 to 60
      Difference between the neighboring packets: 
      0 in 10353 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 48 packets: 204, 408, 612, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856, 3060, 3264, 3468, 3672, 3876, ...
      -59 in 1 packets: 816
      -41 in 1 packets: 9384
   MIU event flag 
      1 in 10404 packets (all packets)
   Time triggered event flag 
      0 in 10404 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: 2022-05-28T20:00:13.094.513.637
   Min EW header abs. time found among all events            : 2022-05-28T20:00:13.150.002.000
   Max EW event (1st sample) abs. time found among all events: 2022-05-28T20:01:51.364.090.642
   Max EW header abs. time found among all events            : 2022-05-28T20:01:51.419.579.000
   TM values from -293 to 241 median:-4.00000
--
Data structure of separate events (selected and re-ordered from the packet sequence):

 Event no. 1 total number of packets: 816
    Page no. 57:  204 packets  -- OK;  memory page(s):
      0 in 204 packets (all packets)  --OK-- 
    Page no. 58:  204 packets  -- OK;  memory page(s):
      1 in 204 packets (all packets)  --OK-- 
    Page no. 59:  204 packets  -- OK;  memory page(s):
      2 in 204 packets (all packets)  --OK-- 
    Page no. 60:  204 packets  -- OK;  memory page(s):
      3 in 204 packets (all packets)  --OK-- 
   Event no. 1 pages: 4  ordered packets: 816
   TM values from -217 to 189 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=129 C1MHz=0.150002
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 815 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: 131.5180529
   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): 2022-05-28T20:00:13.150.002.000
   Event 1st sample abs. time : 2022-05-28T20:00:13.094.513.637)
   --- Rel. time correction for 1 points based on 224 XO calibration points at 1Hz counter from 0 to 223
   --- First point: 1Hz counter = 129, 32bit 10MHz counter = 131.518052900 corrected by 40bit 10MHz counter of 131.229329500 obtained at 1Hz counter of 129. Result: 129.288724382
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):             129.288724207
   Event data descriptor XO time (reconstructed seconds from XP start)    :             129.288724382
   Sampling frequency correction factor for this event:     0.999996600

 Event no. 2 total number of packets: 1020
    Page no. 1:  204 packets  -- OK;  memory page(s):
      82 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      83 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      84 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      85 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      86 in 204 packets (all packets)  --OK-- 
   Event no. 2 pages: 5  ordered packets: 1020
   TM values from -244 to 228 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=188 C1MHz=0.889968
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 1019 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: 191.0636129
   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): 2022-05-28T20:01:12.889.968.000
   Event 1st sample abs. time : 2022-05-28T20:01:12.834.479.637)
   --- Rel. time correction for 1 points based on 224 XO calibration points at 1Hz counter from 0 to 223
   --- First point: 1Hz counter = 188, 32bit 10MHz counter = 191.063612900 corrected by 40bit 10MHz counter of 190.229131400 obtained at 1Hz counter of 188. Result: 188.834484337
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):             188.834484162
   Event data descriptor XO time (reconstructed seconds from XP start)    :             188.834484337
   Sampling frequency correction factor for this event:     0.999996600

 Event no. 3 total number of packets: 8568
    Page no. 1:  204 packets  -- OK;  memory page(s):
      40 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      41 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      42 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      43 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      44 in 204 packets (all packets)  --OK-- 
    Page no. 6:  204 packets  -- OK;  memory page(s):
      45 in 204 packets (all packets)  --OK-- 
    Page no. 7:  204 packets  -- OK;  memory page(s):
      46 in 204 packets (all packets)  --OK-- 
    Page no. 8:  204 packets  -- OK;  memory page(s):
      47 in 204 packets (all packets)  --OK-- 
    Page no. 9:  204 packets  -- OK;  memory page(s):
      48 in 204 packets (all packets)  --OK-- 
    Page no. 10:  204 packets  -- OK;  memory page(s):
      49 in 204 packets (all packets)  --OK-- 
    Page no. 11:  204 packets  -- OK;  memory page(s):
      50 in 204 packets (all packets)  --OK-- 
    Page no. 12:  204 packets  -- OK;  memory page(s):
      51 in 204 packets (all packets)  --OK-- 
    Page no. 13:  204 packets  -- OK;  memory page(s):
      52 in 204 packets (all packets)  --OK-- 
    Page no. 14:  204 packets  -- OK;  memory page(s):
      53 in 204 packets (all packets)  --OK-- 
    Page no. 15:  204 packets  -- OK;  memory page(s):
      54 in 204 packets (all packets)  --OK-- 
    Page no. 16:  204 packets  -- OK;  memory page(s):
      55 in 204 packets (all packets)  --OK-- 
    Page no. 17:  204 packets  -- OK;  memory page(s):
      56 in 204 packets (all packets)  --OK-- 
    Page no. 18:  204 packets  -- OK;  memory page(s):
      57 in 204 packets (all packets)  --OK-- 
    Page no. 19:  204 packets  -- OK;  memory page(s):
      58 in 204 packets (all packets)  --OK-- 
    Page no. 20:  204 packets  -- OK;  memory page(s):
      59 in 204 packets (all packets)  --OK-- 
    Page no. 21:  204 packets  -- OK;  memory page(s):
      60 in 204 packets (all packets)  --OK-- 
    Page no. 22:  204 packets  -- OK;  memory page(s):
      61 in 204 packets (all packets)  --OK-- 
    Page no. 23:  204 packets  -- OK;  memory page(s):
      62 in 204 packets (all packets)  --OK-- 
    Page no. 24:  204 packets  -- OK;  memory page(s):
      63 in 204 packets (all packets)  --OK-- 
    Page no. 25:  204 packets  -- OK;  memory page(s):
      64 in 204 packets (all packets)  --OK-- 
    Page no. 26:  204 packets  -- OK;  memory page(s):
      65 in 204 packets (all packets)  --OK-- 
    Page no. 27:  204 packets  -- OK;  memory page(s):
      66 in 204 packets (all packets)  --OK-- 
    Page no. 28:  204 packets  -- OK;  memory page(s):
      67 in 204 packets (all packets)  --OK-- 
    Page no. 29:  204 packets  -- OK;  memory page(s):
      68 in 204 packets (all packets)  --OK-- 
    Page no. 30:  204 packets  -- OK;  memory page(s):
      69 in 204 packets (all packets)  --OK-- 
    Page no. 31:  204 packets  -- OK;  memory page(s):
      70 in 204 packets (all packets)  --OK-- 
    Page no. 32:  204 packets  -- OK;  memory page(s):
      71 in 204 packets (all packets)  --OK-- 
    Page no. 33:  204 packets  -- OK;  memory page(s):
      72 in 204 packets (all packets)  --OK-- 
    Page no. 34:  204 packets  -- OK;  memory page(s):
      73 in 204 packets (all packets)  --OK-- 
    Page no. 35:  204 packets  -- OK;  memory page(s):
      74 in 204 packets (all packets)  --OK-- 
    Page no. 36:  204 packets  -- OK;  memory page(s):
      75 in 204 packets (all packets)  --OK-- 
    Page no. 37:  204 packets  -- OK;  memory page(s):
      76 in 204 packets (all packets)  --OK-- 
    Page no. 38:  204 packets  -- OK;  memory page(s):
      77 in 204 packets (all packets)  --OK-- 
    Page no. 39:  204 packets  -- OK;  memory page(s):
      78 in 204 packets (all packets)  --OK-- 
    Page no. 40:  204 packets  -- OK;  memory page(s):
      79 in 204 packets (all packets)  --OK-- 
    Page no. 41:  204 packets  -- OK;  memory page(s):
      80 in 204 packets (all packets)  --OK-- 
    Page no. 42:  204 packets  -- OK;  memory page(s):
      81 in 204 packets (all packets)  --OK-- 
   Event no. 3 pages: 42  ordered packets: 8568
   TM values from -293 to 241 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=227 C1MHz=0.419579
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 8567 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: 229.5930929
   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): 2022-05-28T20:01:51.419.579.000
   Event 1st sample abs. time : 2022-05-28T20:01:51.364.090.642)
   --- Rel. time correction for 1 points based on 224 XO calibration points at 1Hz counter from 0 to 223
   --- First point: 1Hz counter = 227, 32bit 10MHz counter = 229.593092900 corrected by 40bit 10MHz counter of 225.229013700 obtained at 1Hz counter of 223. Result: 227.364093602
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):             227.364093427
   Event data descriptor XO time (reconstructed seconds from XP start)    :             227.364093602
   Sampling frequency correction factor for this event:     0.999996700
--
Extremes in separate events:

 - Event number: 1 from 2022-05-28T20:00:13.094.513.637 to 2022-05-28T20:00:13.108.385.684 (XO: 129.288724207 - 129.302596254)
   Min TM value:-217 at an offset of 5506.631 usec -> 2022-05-28T20:00:13.100.020.268 (XO: 129.294230838)
   Max TM value:189 at an offset of 5506.344 usec -> 2022-05-28T20:00:13.100.019.980 (XO: 129.294230550)
   Max dTM/dt [1/us]:1.43e+03 at an offset of 5316.781 usec -> 2022-05-28T20:00:13.099.830.417 (XO: 129.294040987)
   Min dTM/dt [1/us]:-1.84e+03 at an offset of 5506.469 usec -> 2022-05-28T20:00:13.100.020.105 (XO: 129.294230675)
   Med: -4.00000   Ave: -4.3408674   Std: 13.560155

 - Event number: 2 from 2022-05-28T20:01:12.834.479.637 to 2022-05-28T20:01:12.851.819.695 (XO: 188.834484162 - 188.851824221)
   Min TM value:-244 at an offset of 11968.653 usec -> 2022-05-28T20:01:12.846.448.290 (XO: 188.846452815)
   Max TM value:228 at an offset of 2082.145 usec -> 2022-05-28T20:01:12.836.561.781 (XO: 188.836566307)
   Max dTM/dt [1/us]:2.14e+03 at an offset of 2082.070 usec -> 2022-05-28T20:01:12.836.561.706 (XO: 188.836566232)
   Min dTM/dt [1/us]:-2.12e+03 at an offset of 11968.578 usec -> 2022-05-28T20:01:12.846.448.215 (XO: 188.846452740)
   Med: -4.00000   Ave: -4.5023926   Std: 16.773434

 - Event number: 3 from 2022-05-28T20:01:51.364.090.642 to 2022-05-28T20:01:51.509.747.122 (XO: 227.364093427 - 227.509749907)
   Min TM value:-293 at an offset of 111465.468 usec -> 2022-05-28T20:01:51.475.556.109 (XO: 227.475558894)
   Max TM value:241 at an offset of 71504.398 usec -> 2022-05-28T20:01:51.435.595.040 (XO: 227.435597825)
   Max dTM/dt [1/us]:2.51e+03 at an offset of 1460.792 usec -> 2022-05-28T20:01:51.365.551.434 (XO: 227.365554219)
   Min dTM/dt [1/us]:-2.47e+03 at an offset of 111465.318 usec -> 2022-05-28T20:01:51.475.555.959 (XO: 227.475558744)
   Med: -4.00000   Ave: -4.3673658   Std: 14.817909
