-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Sun Mar 19 14:59:45 2023 UTC
-- File 20220616_005516_1229.dat, 16349  packets found.
APID:
      1229 (EW) in 16349 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 16349 packets (all packets)
Total number of packets: 
      36720 in 16349 packets (all packets)
Packet No from 1 to 16349
!!!ERROR: Maximum packet number must be = 36720
   Sequence of packet numbers -- OK -- 
!!!ERROR: Last packet number must be = 36720
Hz and MHz counters from 25.152337 to 125.211402
-each separately from 25s to 125s and from 152337us to 773684us.
   Differences in neigboring packets: 
      0.000000 in 16346 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      100.059065 in 1 packets: 12240
      -48.437718 in 1 packets: 15708
MIU packet time from 2022-06-16T00:55:44.152.337.000 to 2022-06-16T00:57:24.211.402.000
   Differences in neigboring packets: 
      0.000000 in 16346 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      100.059065 in 1 packets: 12240
      -48.437718 in 1 packets: 15708
MIU orbit number: 
      60000 in 16349 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 16349 packets (all packets)
MIU orbit information / number of events: 
      0 in 16349 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 16349 packets (all packets)
Instrument anomalies: 
      0 (OK) in 16349 packets (all packets)
FPGA configuration version: 
      211 in 16349 packets (all packets)
10 MHz counter at the last 1Hz pulse from 26.6118663 to 126.6115370
   Differences in neigboring packets: 
      0.0000000 in 16346 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      99.9996707 in 1 packets: 12240
      -48.9998386 in 1 packets: 15708
Temperature FPGA: 
      FF -> 56.3 degC in 16349 packets (all packets)
Temperature XO: 
      C5 -> 43.6 degC in 16349 packets (all packets)
Temperature ant 3: 
      01 -> 108.0 degC in 16349 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 16349 packets (all packets)
Number of external events: 
      1 in 12240 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 3468 packets: 12241, 12242, 12243, 12244, 12245, 12246, 12247, 12248, 12249, 12250, 12251, 12252, 12253, 12254, 12255, 12256, 12257, 12258, ...
      2 in 641 packets: 15709, 15710, 15711, 15712, 15713, 15714, 15715, 15716, 15717, 15718, 15719, 15720, 15721, 15722, 15723, 15724, 15725, 15726, ...
Number of generated alerts: 
      1 in 12240 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 3468 packets: 12241, 12242, 12243, 12244, 12245, 12246, 12247, 12248, 12249, 12250, 12251, 12252, 12253, 12254, 12255, 12256, 12257, 12258, ...
      2 in 641 packets: 15709, 15710, 15711, 15712, 15713, 15714, 15715, 15716, 15717, 15718, 15719, 15720, 15721, 15722, 15723, 15724, 15725, 15726, ...
Survey memory error: 
      0 in 16349 packets (all packets)
Event memory error: 
      0 in 16349 packets (all packets)
Configuration error: 
      0 in 16349 packets (all packets)
SDRAM CRC error: 
      0 in 16349 packets (all packets)
Radio gain: 
      0 in 16349 packets (all packets)
Radio bandwidth: 
      0 in 16349 packets (all packets)
Digital gain: 
      0 in 16349 packets (all packets)
Analog gain: 
      0 in 16349 packets (all packets)

EVENT DATA READER
-- File 20220616_005516_1229.dat, 80 EW pages found. Extra packets: 29.
   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 12240 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 3468 packets: 12241, 12242, 12243, 12244, 12245, 12246, 12247, 12248, 12249, 12250, 12251, 12252, 12253, 12254, 12255, 12256, 12257, 12258, ...
      2 in 612 packets: 15709, 15710, 15711, 15712, 15713, 15714, 15715, 15716, 15717, 15718, 15719, 15720, 15721, 15722, 15723, 15724, 15725, 15726, ...
   LS 32 bits of C10MHz from descriptor (period 430s)  from 26.7087166 to 126.8263916
      Difference between the neighboring packets: 
      0.0000170 in 16317 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      99.8506730 in 1 packets: 12240
      -48.4964950 in 1 packets: 15708
   Memory page number from 4 to 117
      Difference between the neighboring packets: 
      0 in 16240 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 78 packets: 204, 408, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856, 3060, 3264, 3468, 3672, ...
      35 in 1 packets: 12240
   Event page number from 1 to 60
      Difference between the neighboring packets: 
      0 in 16240 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 77 packets: 204, 408, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856, 3060, 3264, 3468, 3672, ...
      -59 in 1 packets: 12240
      -16 in 1 packets: 15708
   MIU event flag 
      1 in 16320 packets (all packets)
   Time triggered event flag 
      0 in 16320 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-06-16T00:55:44.096.848.642
   Min EW header abs. time found among all events            : 2022-06-16T00:55:44.152.337.000
   Max EW event (1st sample) abs. time found among all events: 2022-06-16T00:57:24.155.913.642
   Max EW header abs. time found among all events            : 2022-06-16T00:57:24.211.402.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: 12240
    Page no. 1:  204 packets  -- OK;  memory page(s):
      4 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      5 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      6 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      7 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      8 in 204 packets (all packets)  --OK-- 
    Page no. 6:  204 packets  -- OK;  memory page(s):
      9 in 204 packets (all packets)  --OK-- 
    Page no. 7:  204 packets  -- OK;  memory page(s):
      10 in 204 packets (all packets)  --OK-- 
    Page no. 8:  204 packets  -- OK;  memory page(s):
      11 in 204 packets (all packets)  --OK-- 
    Page no. 9:  204 packets  -- OK;  memory page(s):
      12 in 204 packets (all packets)  --OK-- 
    Page no. 10:  204 packets  -- OK;  memory page(s):
      13 in 204 packets (all packets)  --OK-- 
    Page no. 11:  204 packets  -- OK;  memory page(s):
      14 in 204 packets (all packets)  --OK-- 
    Page no. 12:  204 packets  -- OK;  memory page(s):
      15 in 204 packets (all packets)  --OK-- 
    Page no. 13:  204 packets  -- OK;  memory page(s):
      16 in 204 packets (all packets)  --OK-- 
    Page no. 14:  204 packets  -- OK;  memory page(s):
      17 in 204 packets (all packets)  --OK-- 
    Page no. 15:  204 packets  -- OK;  memory page(s):
      18 in 204 packets (all packets)  --OK-- 
    Page no. 16:  204 packets  -- OK;  memory page(s):
      19 in 204 packets (all packets)  --OK-- 
    Page no. 17:  204 packets  -- OK;  memory page(s):
      20 in 204 packets (all packets)  --OK-- 
    Page no. 18:  204 packets  -- OK;  memory page(s):
      21 in 204 packets (all packets)  --OK-- 
    Page no. 19:  204 packets  -- OK;  memory page(s):
      22 in 204 packets (all packets)  --OK-- 
    Page no. 20:  204 packets  -- OK;  memory page(s):
      23 in 204 packets (all packets)  --OK-- 
    Page no. 21:  204 packets  -- OK;  memory page(s):
      24 in 204 packets (all packets)  --OK-- 
    Page no. 22:  204 packets  -- OK;  memory page(s):
      25 in 204 packets (all packets)  --OK-- 
    Page no. 23:  204 packets  -- OK;  memory page(s):
      26 in 204 packets (all packets)  --OK-- 
    Page no. 24:  204 packets  -- OK;  memory page(s):
      27 in 204 packets (all packets)  --OK-- 
    Page no. 25:  204 packets  -- OK;  memory page(s):
      28 in 204 packets (all packets)  --OK-- 
    Page no. 26:  204 packets  -- OK;  memory page(s):
      29 in 204 packets (all packets)  --OK-- 
    Page no. 27:  204 packets  -- OK;  memory page(s):
      30 in 204 packets (all packets)  --OK-- 
    Page no. 28:  204 packets  -- OK;  memory page(s):
      31 in 204 packets (all packets)  --OK-- 
    Page no. 29:  204 packets  -- OK;  memory page(s):
      32 in 204 packets (all packets)  --OK-- 
    Page no. 30:  204 packets  -- OK;  memory page(s):
      33 in 204 packets (all packets)  --OK-- 
    Page no. 31:  204 packets  -- OK;  memory page(s):
      34 in 204 packets (all packets)  --OK-- 
    Page no. 32:  204 packets  -- OK;  memory page(s):
      35 in 204 packets (all packets)  --OK-- 
    Page no. 33:  204 packets  -- OK;  memory page(s):
      36 in 204 packets (all packets)  --OK-- 
    Page no. 34:  204 packets  -- OK;  memory page(s):
      37 in 204 packets (all packets)  --OK-- 
    Page no. 35:  204 packets  -- OK;  memory page(s):
      38 in 204 packets (all packets)  --OK-- 
    Page no. 36:  204 packets  -- OK;  memory page(s):
      39 in 204 packets (all packets)  --OK-- 
    Page no. 37:  204 packets  -- OK;  memory page(s):
      40 in 204 packets (all packets)  --OK-- 
    Page no. 38:  204 packets  -- OK;  memory page(s):
      41 in 204 packets (all packets)  --OK-- 
    Page no. 39:  204 packets  -- OK;  memory page(s):
      42 in 204 packets (all packets)  --OK-- 
    Page no. 40:  204 packets  -- OK;  memory page(s):
      43 in 204 packets (all packets)  --OK-- 
    Page no. 41:  204 packets  -- OK;  memory page(s):
      44 in 204 packets (all packets)  --OK-- 
    Page no. 42:  204 packets  -- OK;  memory page(s):
      45 in 204 packets (all packets)  --OK-- 
    Page no. 43:  204 packets  -- OK;  memory page(s):
      46 in 204 packets (all packets)  --OK-- 
    Page no. 44:  204 packets  -- OK;  memory page(s):
      47 in 204 packets (all packets)  --OK-- 
    Page no. 45:  204 packets  -- OK;  memory page(s):
      48 in 204 packets (all packets)  --OK-- 
    Page no. 46:  204 packets  -- OK;  memory page(s):
      49 in 204 packets (all packets)  --OK-- 
    Page no. 47:  204 packets  -- OK;  memory page(s):
      50 in 204 packets (all packets)  --OK-- 
    Page no. 48:  204 packets  -- OK;  memory page(s):
      51 in 204 packets (all packets)  --OK-- 
    Page no. 49:  204 packets  -- OK;  memory page(s):
      52 in 204 packets (all packets)  --OK-- 
    Page no. 50:  204 packets  -- OK;  memory page(s):
      53 in 204 packets (all packets)  --OK-- 
    Page no. 51:  204 packets  -- OK;  memory page(s):
      54 in 204 packets (all packets)  --OK-- 
    Page no. 52:  204 packets  -- OK;  memory page(s):
      55 in 204 packets (all packets)  --OK-- 
    Page no. 53:  204 packets  -- OK;  memory page(s):
      56 in 204 packets (all packets)  --OK-- 
    Page no. 54:  204 packets  -- OK;  memory page(s):
      57 in 204 packets (all packets)  --OK-- 
    Page no. 55:  204 packets  -- OK;  memory page(s):
      58 in 204 packets (all packets)  --OK-- 
    Page no. 56:  204 packets  -- OK;  memory page(s):
      59 in 204 packets (all packets)  --OK-- 
    Page no. 57:  204 packets  -- OK;  memory page(s):
      60 in 204 packets (all packets)  --OK-- 
    Page no. 58:  204 packets  -- OK;  memory page(s):
      61 in 204 packets (all packets)  --OK-- 
    Page no. 59:  204 packets  -- OK;  memory page(s):
      62 in 204 packets (all packets)  --OK-- 
    Page no. 60:  204 packets  -- OK;  memory page(s):
      63 in 204 packets (all packets)  --OK-- 
   Event no. 1 pages: 60  ordered packets: 12240
   TM values from -293 to 241 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=25 C1MHz=0.152337
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 12239 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: 26.7087166
   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-06-16T00:55:44.152.337.000
   Event 1st sample abs. time : 2022-06-16T00:55:44.096.848.642)
   --- Rel. time correction for 1 points based on 119 XO calibration points at 1Hz counter from 0 to 118
   --- First point: 1Hz counter = 25, 32bit 10MHz counter = 26.708716600 corrected by 40bit 10MHz counter of 26.611866300 obtained at 1Hz counter of 25. Result: 25.096850620
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              25.096850445
   Event data descriptor XO time (reconstructed seconds from XP start)    :              25.096850620
   Sampling frequency correction factor for this event:     0.999996700

 Event no. 2 total number of packets: 612
    Page no. 1:  204 packets  -- OK;  memory page(s):
      115 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      116 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      117 in 204 packets (all packets)  --OK-- 
   Event no. 2 pages: 3  ordered packets: 612
   TM values from -217 to 207 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=76 C1MHz=0.773684
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 611 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: 78.3298966
   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-06-16T00:56:35.773.684.000
   Event 1st sample abs. time : 2022-06-16T00:56:35.718.195.642)
   --- Rel. time correction for 1 points based on 119 XO calibration points at 1Hz counter from 0 to 118
   --- First point: 1Hz counter = 76, 32bit 10MHz counter = 78.329896600 corrected by 40bit 10MHz counter of 77.611698400 obtained at 1Hz counter of 76. Result: 76.718200570
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              76.718200395
   Event data descriptor XO time (reconstructed seconds from XP start)    :              76.718200570
   Sampling frequency correction factor for this event:     0.999996700

 Event no. 3 total number of packets: 3468
    Page no. 1:  204 packets  -- OK;  memory page(s):
      98 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      99 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      100 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      101 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      102 in 204 packets (all packets)  --OK-- 
    Page no. 6:  204 packets  -- OK;  memory page(s):
      103 in 204 packets (all packets)  --OK-- 
    Page no. 7:  204 packets  -- OK;  memory page(s):
      104 in 204 packets (all packets)  --OK-- 
    Page no. 8:  204 packets  -- OK;  memory page(s):
      105 in 204 packets (all packets)  --OK-- 
    Page no. 9:  204 packets  -- OK;  memory page(s):
      106 in 204 packets (all packets)  --OK-- 
    Page no. 10:  204 packets  -- OK;  memory page(s):
      107 in 204 packets (all packets)  --OK-- 
    Page no. 11:  204 packets  -- OK;  memory page(s):
      108 in 204 packets (all packets)  --OK-- 
    Page no. 12:  204 packets  -- OK;  memory page(s):
      109 in 204 packets (all packets)  --OK-- 
    Page no. 13:  204 packets  -- OK;  memory page(s):
      110 in 204 packets (all packets)  --OK-- 
    Page no. 14:  204 packets  -- OK;  memory page(s):
      111 in 204 packets (all packets)  --OK-- 
    Page no. 15:  204 packets  -- OK;  memory page(s):
      112 in 204 packets (all packets)  --OK-- 
    Page no. 16:  204 packets  -- OK;  memory page(s):
      113 in 204 packets (all packets)  --OK-- 
    Page no. 17:  204 packets  -- OK;  memory page(s):
      114 in 204 packets (all packets)  --OK-- 
   Event no. 3 pages: 17  ordered packets: 3468
   TM values from -232 to 221 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=125 C1MHz=0.211402
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 3467 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: 126.7674526
   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-06-16T00:57:24.211.402.000
   Event 1st sample abs. time : 2022-06-16T00:57:24.155.913.642)
   --- Rel. time correction for 1 points based on 119 XO calibration points at 1Hz counter from 0 to 118
   --- First point: 1Hz counter = 125, 32bit 10MHz counter = 126.767452600 corrected by 40bit 10MHz counter of 119.611560100 obtained at 1Hz counter of 118. Result: 125.155916115
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):             125.155915940
   Event data descriptor XO time (reconstructed seconds from XP start)    :             125.155916115
   Sampling frequency correction factor for this event:     0.999996700
--
Extremes in separate events:

 - Event number: 1 from 2022-06-16T00:55:44.096.848.642 to 2022-06-16T00:55:44.304.929.328 (XO: 25.096850445 - 25.304931131)
   Min TM value:-293 at an offset of 113388.562 usec -> 2022-06-16T00:55:44.210.237.203 (XO: 25.210239006)
   Max TM value:241 at an offset of 53464.189 usec -> 2022-06-16T00:55:44.150.312.830 (XO: 25.150314634)
   Max dTM/dt [1/us]:2.34e+03 at an offset of 163440.977 usec -> 2022-06-16T00:55:44.260.289.618 (XO: 25.260291421)
   Min dTM/dt [1/us]:-2.45e+03 at an offset of 43448.231 usec -> 2022-06-16T00:55:44.140.296.872 (XO: 25.140298675)
   Med: -4.00000   Ave: -4.5050070   Std: 7.5853071

 - Event number: 2 from 2022-06-16T00:56:35.718.195.642 to 2022-06-16T00:56:35.728.599.676 (XO: 76.718200395 - 76.728604429)
   Min TM value:-217 at an offset of 2173.807 usec -> 2022-06-16T00:56:35.720.369.449 (XO: 76.720374202)
   Max TM value:207 at an offset of 2173.545 usec -> 2022-06-16T00:56:35.720.369.186 (XO: 76.720373940)
   Max dTM/dt [1/us]:1.85e+03 at an offset of 2171.582 usec -> 2022-06-16T00:56:35.720.367.224 (XO: 76.720371977)
   Min dTM/dt [1/us]:-1.94e+03 at an offset of 2173.645 usec -> 2022-06-16T00:56:35.720.369.286 (XO: 76.720374040)
   Med: -4.00000   Ave: -4.5234970   Std: 6.6051833

 - Event number: 3 from 2022-06-16T00:57:24.155.913.642 to 2022-06-16T00:57:24.214.869.836 (XO: 125.155915940 - 125.214872134)
   Min TM value:-232 at an offset of 14836.349 usec -> 2022-06-16T00:57:24.170.749.990 (XO: 125.170752288)
   Max TM value:221 at an offset of 34992.578 usec -> 2022-06-16T00:57:24.190.906.219 (XO: 125.190908517)
   Max dTM/dt [1/us]:2.31e+03 at an offset of 45001.711 usec -> 2022-06-16T00:57:24.200.915.353 (XO: 125.200917651)
   Min dTM/dt [1/us]:-2.32e+03 at an offset of 14940.337 usec -> 2022-06-16T00:57:24.170.853.978 (XO: 125.170856276)
   Med: -4.00000   Ave: -4.4938039   Std: 8.1653092
