-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Sat Jun  3 03:18:28 2023 UTC
-- File 20230602_124303_1229.dat, 11754  packets found.
APID:
      1229 (EW) in 11754 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 11754 packets (all packets)
Total number of packets: 
      36720 in 11754 packets (all packets)
Packet No from 1 to 11754
!!!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.922953 to 35.425308
-each separately from 25s to 35s and from 177164us to 922953us.
   Differences in neigboring packets: 
      0.000000 in 11751 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      7.248144 in 1 packets: 3264
      -9.502355 in 1 packets: 11016
MIU packet time from 2023-06-02T12:43:31.922.953.000 to 2023-06-02T12:43:41.425.308.000
   Differences in neigboring packets: 
      0.000000 in 11751 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      7.248144 in 1 packets: 3264
      -9.502355 in 1 packets: 11016
MIU orbit number: 
      60000 in 11754 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 11754 packets (all packets)
MIU orbit information / number of events: 
      0 in 11754 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 11754 packets (all packets)
Instrument anomalies: 
      0 (OK) in 11754 packets (all packets)
FPGA configuration version: 
      211 in 11754 packets (all packets)
10 MHz counter at the last 1Hz pulse from 26.9226526 to 36.9226177
   Differences in neigboring packets: 
      0.0000000 in 11751 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      6.9999755 in 1 packets: 3264
      -9.9999651 in 1 packets: 11016
Temperature FPGA: 
      02 -> 52.4 degC in 3264 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      01 -> 53.7 degC in 7752 packets: 3265, 3266, 3267, 3268, 3269, 3270, 3271, 3272, 3273, 3274, 3275, 3276, 3277, 3278, 3279, 3280, 3281, 3282, ...
      03 -> 51.1 degC in 738 packets: 11017, 11018, 11019, 11020, 11021, 11022, 11023, 11024, 11025, 11026, 11027, 11028, 11029, 11030, 11031, 11032, 11033, 11034, ...
Temperature XO: 
      C3 -> 40.4 degC in 11754 packets (all packets)
Temperature ant 3: 
      01 -> 108.0 degC in 11754 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 11754 packets (all packets)
Number of external events: 
      2 in 3264 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 7752 packets: 3265, 3266, 3267, 3268, 3269, 3270, 3271, 3272, 3273, 3274, 3275, 3276, 3277, 3278, 3279, 3280, 3281, 3282, ...
      1 in 738 packets: 11017, 11018, 11019, 11020, 11021, 11022, 11023, 11024, 11025, 11026, 11027, 11028, 11029, 11030, 11031, 11032, 11033, 11034, ...
Number of generated alerts: 
      2 in 3264 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      5 in 7752 packets: 3265, 3266, 3267, 3268, 3269, 3270, 3271, 3272, 3273, 3274, 3275, 3276, 3277, 3278, 3279, 3280, 3281, 3282, ...
      1 in 738 packets: 11017, 11018, 11019, 11020, 11021, 11022, 11023, 11024, 11025, 11026, 11027, 11028, 11029, 11030, 11031, 11032, 11033, 11034, ...
Survey memory error: 
      0 in 11754 packets (all packets)
Event memory error: 
      0 in 11754 packets (all packets)
Configuration error: 
      0 in 11754 packets (all packets)
SDRAM CRC error: 
      0 in 11754 packets (all packets)
Radio gain: 
      0 in 11754 packets (all packets)
Radio bandwidth: 
      0 in 11754 packets (all packets)
Digital gain: 
      0 in 11754 packets (all packets)
Analog gain: 
      0 in 11754 packets (all packets)

EVENT DATA READER
-- File 20230602_124303_1229.dat, 57 EW pages found. Extra packets: 126.
   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
      2 in 3264 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 7752 packets: 3265, 3266, 3267, 3268, 3269, 3270, 3271, 3272, 3273, 3274, 3275, 3276, 3277, 3278, 3279, 3280, 3281, 3282, ...
      1 in 612 packets: 11017, 11018, 11019, 11020, 11021, 11022, 11023, 11024, 11025, 11026, 11027, 11028, 11029, 11030, 11031, 11032, 11033, 11034, ...
   LS 32 bits of C10MHz from descriptor (period 430s)  from 27.7901192 to 37.4242062
      Difference between the neighboring packets: 
      0.0000170 in 11625 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      7.0400570 in 1 packets: 3264
      -9.6340870 in 1 packets: 11016
   Memory page number from 0 to 80
      Difference between the neighboring packets: 
      0 in 11571 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 55 packets: 204, 408, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856, 3060, 3468, 3672, 3876, ...
      25 in 1 packets: 3264
   Event page number from 1 to 60
      Difference between the neighboring packets: 
      0 in 11571 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 54 packets: 204, 408, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856, 3060, 3468, 3672, 3876, ...
      -59 in 1 packets: 3264
      -37 in 1 packets: 11016
   MIU event flag 
      1 in 11628 packets (all packets)
   Time triggered event flag 
      0 in 11628 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: 2023-06-02T12:43:31.867.464.631
   Min EW header abs. time found among all events            : 2023-06-02T12:43:31.922.953.000
   Max EW event (1st sample) abs. time found among all events: 2023-06-02T12:43:41.369.819.631
   Max EW header abs. time found among all events            : 2023-06-02T12:43:41.425.308.000
   TM values from -904 to 1539 median:-5.00000
--
Data structure of separate events (selected and re-ordered from the packet sequence):

 Event no. 1 total number of packets: 612
    Page no. 1:  204 packets  -- OK;  memory page(s):
      78 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      79 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      80 in 204 packets (all packets)  --OK-- 
   Event no. 1 pages: 3  ordered packets: 612
   TM values from -39 to 28 median: -5.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=25 C1MHz=0.922953
   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: 27.7901192
   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): 2023-06-02T12:43:31.922.953.000
   Event 1st sample abs. time : 2023-06-02T12:43:31.867.464.631)
   --- Rel. time correction for 1 points based on 29 XO calibration points at 1Hz counter from 0 to 28
   --- First point: 1Hz counter = 25, 32bit 10MHz counter = 27.790119200 corrected by 40bit 10MHz counter of 26.922652600 obtained at 1Hz counter of 25. Result: 25.867469636
   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.867469461
   Event data descriptor XO time (reconstructed seconds from XP start)    :              25.867469636
   Sampling frequency correction factor for this event:     0.999996500

 Event no. 2 total number of packets: 3264
    Page no. 45:  204 packets  -- OK;  memory page(s):
      0 in 204 packets (all packets)  --OK-- 
    Page no. 46:  204 packets  -- OK;  memory page(s):
      1 in 204 packets (all packets)  --OK-- 
    Page no. 47:  204 packets  -- OK;  memory page(s):
      2 in 204 packets (all packets)  --OK-- 
    Page no. 48:  204 packets  -- OK;  memory page(s):
      3 in 204 packets (all packets)  --OK-- 
    Page no. 49:  204 packets  -- OK;  memory page(s):
      4 in 204 packets (all packets)  --OK-- 
    Page no. 50:  204 packets  -- OK;  memory page(s):
      5 in 204 packets (all packets)  --OK-- 
    Page no. 51:  204 packets  -- OK;  memory page(s):
      6 in 204 packets (all packets)  --OK-- 
    Page no. 52:  204 packets  -- OK;  memory page(s):
      7 in 204 packets (all packets)  --OK-- 
    Page no. 53:  204 packets  -- OK;  memory page(s):
      8 in 204 packets (all packets)  --OK-- 
    Page no. 54:  204 packets  -- OK;  memory page(s):
      9 in 204 packets (all packets)  --OK-- 
    Page no. 55:  204 packets  -- OK;  memory page(s):
      10 in 204 packets (all packets)  --OK-- 
    Page no. 56:  204 packets  -- OK;  memory page(s):
      11 in 204 packets (all packets)  --OK-- 
    Page no. 57:  204 packets  -- OK;  memory page(s):
      12 in 204 packets (all packets)  --OK-- 
    Page no. 58:  204 packets  -- OK;  memory page(s):
      13 in 204 packets (all packets)  --OK-- 
    Page no. 59:  204 packets  -- OK;  memory page(s):
      14 in 204 packets (all packets)  --OK-- 
    Page no. 60:  204 packets  -- OK;  memory page(s):
      15 in 204 packets (all packets)  --OK-- 
   Event no. 2 pages: 16  ordered packets: 3264
   TM values from -213 to 180 median: -5.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=28 C1MHz=0.177164
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 3263 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: 30.1969112
   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): 2023-06-02T12:43:34.177.164.000
   Event 1st sample abs. time : 2023-06-02T12:43:34.121.675.631)
   --- Rel. time correction for 1 points based on 29 XO calibration points at 1Hz counter from 0 to 28
   --- First point: 1Hz counter = 28, 32bit 10MHz counter = 30.196911200 corrected by 40bit 10MHz counter of 29.922642200 obtained at 1Hz counter of 28. Result: 28.274269960
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              28.274269785
   Event data descriptor XO time (reconstructed seconds from XP start)    :              28.274269960
   Sampling frequency correction factor for this event:     0.999996500

 Event no. 3 total number of packets: 7752
    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-- 
   Event no. 3 pages: 38  ordered packets: 7752
   TM values from -904 to 1539 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=35 C1MHz=0.425308
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 7751 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: 37.2924392
   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): 2023-06-02T12:43:41.425.308.000
   Event 1st sample abs. time : 2023-06-02T12:43:41.369.819.631)
   --- Rel. time correction for 1 points based on 29 XO calibration points at 1Hz counter from 0 to 28
   --- First point: 1Hz counter = 35, 32bit 10MHz counter = 37.292439200 corrected by 40bit 10MHz counter of 29.922642200 obtained at 1Hz counter of 28. Result: 35.369822794
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              35.369822619
   Event data descriptor XO time (reconstructed seconds from XP start)    :              35.369822794
   Sampling frequency correction factor for this event:     0.999996500
--
Extremes in separate events:

 - Event number: 1 from 2023-06-02T12:43:31.867.464.631 to 2023-06-02T12:43:31.877.868.667 (XO: 25.867469461 - 25.877873498)
   Min TM value:-39 at an offset of 5929.321 usec -> 2023-06-02T12:43:31.873.393.951 (XO: 25.873398782)
   Max TM value:28 at an offset of 9117.744 usec -> 2023-06-02T12:43:31.876.582.375 (XO: 25.876587206)
   Max dTM/dt [1/us]:3.74e+02 at an offset of 4570.428 usec -> 2023-06-02T12:43:31.872.035.059 (XO: 25.872039890)
   Min dTM/dt [1/us]:-3.87e+02 at an offset of 8912.169 usec -> 2023-06-02T12:43:31.876.376.799 (XO: 25.876381630)
   Med: -5.00000   Ave: -4.6101391   Std: 2.0288622

 - Event number: 2 from 2023-06-02T12:43:34.121.675.631 to 2023-06-02T12:43:34.177.163.825 (XO: 28.274269785 - 28.329757979)
   Min TM value:-213 at an offset of 9249.732 usec -> 2023-06-02T12:43:34.130.925.363 (XO: 28.283519517)
   Max TM value:180 at an offset of 9221.707 usec -> 2023-06-02T12:43:34.130.897.338 (XO: 28.283491492)
   Max dTM/dt [1/us]:1.78e+03 at an offset of 49267.335 usec -> 2023-06-02T12:43:34.170.942.965 (XO: 28.323537120)
   Min dTM/dt [1/us]:-1.72e+03 at an offset of 9190.845 usec -> 2023-06-02T12:43:34.130.866.475 (XO: 28.283460630)
   Med: -5.00000   Ave: -4.5409368   Std: 4.2243942

 - Event number: 3 from 2023-06-02T12:43:41.369.819.631 to 2023-06-02T12:43:41.501.604.092 (XO: 35.369822619 - 35.501607081)
   Min TM value:-904 at an offset of 56579.373 usec -> 2023-06-02T12:43:41.426.399.004 (XO: 35.426401992)
   Max TM value:1539 at an offset of 56576.723 usec -> 2023-06-02T12:43:41.426.396.354 (XO: 35.426399342)
   Max dTM/dt [1/us]:4.25e+03 at an offset of 54796.454 usec -> 2023-06-02T12:43:41.424.616.085 (XO: 35.424619074)
   Min dTM/dt [1/us]:-3.63e+03 at an offset of 3848.301 usec -> 2023-06-02T12:43:41.373.667.931 (XO: 35.373670920)
   Med: -4.00000   Ave: -4.4795483   Std: 10.836386
