-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Thu Mar 23 08:47:24 2023 UTC
-- File 20210629_090423_1229.dat, 4084  packets found.
APID:
      1229 (EW) in 4084 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 4084 packets (all packets)
Total number of packets: 
      36720 in 4084 packets (all packets)
Packet No from 1 to 4084
!!!ERROR: Maximum packet number must be = 36720
   Sequence of packet numbers -- OK -- 
!!!ERROR: Last packet number must be = 36720
Hz and MHz counters from 6.766015 to 20.176821
-each separately from 6s to 20s and from 176821us to 766015us.
   Differences in neigboring packets: 
      0.000000 in 4082 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -13.410806 in 1 packets: 2856
MIU packet time from 2021-06-29T09:04:29.766.015.000 to 2021-06-29T09:04:43.176.821.000
   Differences in neigboring packets: 
      0.000000 in 4082 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -13.410806 in 1 packets: 2856
MIU orbit number: 
      60000 in 4084 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 4084 packets (all packets)
MIU orbit information / number of events: 
      0 in 4084 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 4084 packets (all packets)
Instrument anomalies: 
      0 (OK) in 4084 packets (all packets)
FPGA configuration version: 
      211 in 4084 packets (all packets)
10 MHz counter at the last 1Hz pulse from 7.8742542 to 21.8742037
   Differences in neigboring packets: 
      0.0000000 in 4082 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -13.9999495 in 1 packets: 2856
Temperature FPGA: 
      05 -> 48.5 degC in 2856 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      06 -> 47.2 degC in 1228 packets: 2857, 2858, 2859, 2860, 2861, 2862, 2863, 2864, 2865, 2866, 2867, 2868, 2869, 2870, 2871, 2872, 2873, 2874, ...
Temperature XO: 
      C0 -> 35.6 degC in 4084 packets (all packets)
Temperature ant 3: 
      01 -> 108.0 degC in 4084 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 4084 packets (all packets)
Number of external events: 
      3 in 2856 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 1228 packets: 2857, 2858, 2859, 2860, 2861, 2862, 2863, 2864, 2865, 2866, 2867, 2868, 2869, 2870, 2871, 2872, 2873, 2874, ...
Number of generated alerts: 
      3 in 2856 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 1228 packets: 2857, 2858, 2859, 2860, 2861, 2862, 2863, 2864, 2865, 2866, 2867, 2868, 2869, 2870, 2871, 2872, 2873, 2874, ...
Survey memory error: 
      0 in 4084 packets (all packets)
Event memory error: 
      0 in 4084 packets (all packets)
Configuration error: 
      0 in 4084 packets (all packets)
SDRAM CRC error: 
      0 in 4084 packets (all packets)
Radio gain: 
      0 in 4084 packets (all packets)
Radio bandwidth: 
      0 in 4084 packets (all packets)
Digital gain: 
      0 in 4084 packets (all packets)
Analog gain: 
      0 in 4084 packets (all packets)

EVENT DATA READER
-- File 20210629_090423_1229.dat, 20 EW pages found. Extra packets: 4.
   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
      3 in 2856 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 1224 packets: 2857, 2858, 2859, 2860, 2861, 2862, 2863, 2864, 2865, 2866, 2867, 2868, 2869, 2870, 2871, 2872, 2873, 2874, ...
   LS 32 bits of C10MHz from descriptor (period 430s)  from 8.5847816 to 22.1585166
      Difference between the neighboring packets: 
      0.0000170 in 4078 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      -13.5737350 in 1 packets: 2856
   Memory page number from 0 to 19
      Difference between the neighboring packets: 
      0 in 4060 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 19 packets: 204, 408, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856, 3060, 3264, 3468, 3672, ...
   Event page number from 1 to 47
      Difference between the neighboring packets: 
      0 in 4060 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 18 packets: 204, 408, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 3060, 3264, 3468, 3672, 3876
      -46 in 1 packets: 2856
   MIU event flag 
      1 in 4080 packets (all packets)
   Time triggered event flag 
      0 in 4080 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: 2021-06-29T09:04:29.710.526.626
   Min EW header abs. time found among all events            : 2021-06-29T09:04:29.766.015.000
   Max EW event (1st sample) abs. time found among all events: 2021-06-29T09:04:43.121.332.626
   Max EW header abs. time found among all events            : 2021-06-29T09:04:43.176.821.000
   TM values from -236 to 184 median:-5.00000
--
Data structure of separate events (selected and re-ordered from the packet sequence):

 Event no. 1 total number of packets: 1224
    Page no. 1:  204 packets  -- OK;  memory page(s):
      14 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      15 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      16 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      17 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      18 in 204 packets (all packets)  --OK-- 
    Page no. 6:  204 packets  -- OK;  memory page(s):
      19 in 204 packets (all packets)  --OK-- 
   Event no. 1 pages: 6  ordered packets: 1224
   TM values from -236 to 184 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=6 C1MHz=0.766015
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 1223 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: 8.5847816
   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): 2021-06-29T09:04:29.766.015.000
   Event 1st sample abs. time : 2021-06-29T09:04:29.710.526.626)
   --- Rel. time correction for 1 points based on 14 XO calibration points at 1Hz counter from 0 to 13
   --- First point: 1Hz counter = 6, 32bit 10MHz counter = 8.584781600 corrected by 40bit 10MHz counter of 7.874254200 obtained at 1Hz counter of 6. Result: 6.710529958
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):               6.710529783
   Event data descriptor XO time (reconstructed seconds from XP start)    :               6.710529958
   Sampling frequency correction factor for this event:     0.999996400

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

 Event no. 3 total number of packets: 2856
    Page no. 34:  204 packets  -- OK;  memory page(s):
      0 in 204 packets (all packets)  --OK-- 
    Page no. 35:  204 packets  -- OK;  memory page(s):
      1 in 204 packets (all packets)  --OK-- 
    Page no. 36:  204 packets  -- OK;  memory page(s):
      2 in 204 packets (all packets)  --OK-- 
    Page no. 37:  204 packets  -- OK;  memory page(s):
      3 in 204 packets (all packets)  --OK-- 
    Page no. 38:  204 packets  -- OK;  memory page(s):
      4 in 204 packets (all packets)  --OK-- 
    Page no. 39:  204 packets  -- OK;  memory page(s):
      5 in 204 packets (all packets)  --OK-- 
    Page no. 40:  204 packets  -- OK;  memory page(s):
      6 in 204 packets (all packets)  --OK-- 
    Page no. 41:  204 packets  -- OK;  memory page(s):
      7 in 204 packets (all packets)  --OK-- 
    Page no. 42:  204 packets  -- OK;  memory page(s):
      8 in 204 packets (all packets)  --OK-- 
    Page no. 43:  204 packets  -- OK;  memory page(s):
      9 in 204 packets (all packets)  --OK-- 
    Page no. 44:  204 packets  -- OK;  memory page(s):
      10 in 204 packets (all packets)  --OK-- 
    Page no. 45:  204 packets  -- OK;  memory page(s):
      11 in 204 packets (all packets)  --OK-- 
    Page no. 46:  204 packets  -- OK;  memory page(s):
      12 in 204 packets (all packets)  --OK-- 
    Page no. 47:  204 packets  -- OK;  memory page(s):
      13 in 204 packets (all packets)  --OK-- 
   Event no. 3 pages: 14  ordered packets: 2856
   TM values from -194 to 183 median: -5.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=20 C1MHz=0.176821
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 2855 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: 22.1099816
   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): 2021-06-29T09:04:43.176.821.000
   Event 1st sample abs. time : 2021-06-29T09:04:43.121.332.626)
   --- Rel. time correction for 1 points based on 14 XO calibration points at 1Hz counter from 0 to 13
   --- First point: 1Hz counter = 20, 32bit 10MHz counter = 22.109981600 corrected by 40bit 10MHz counter of 14.874228900 obtained at 1Hz counter of 13. Result: 20.235778749
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              20.235778574
   Event data descriptor XO time (reconstructed seconds from XP start)    :              20.235778749
   Sampling frequency correction factor for this event:     0.999996400
--
Extremes in separate events:

 - Event number: 1 from 2021-06-29T09:04:29.710.526.626 to 2021-06-29T09:04:29.731.334.700 (XO: 6.710529783 - 6.731337858)
   Min TM value:-236 at an offset of 15223.555 usec -> 2021-06-29T09:04:29.725.750.180 (XO: 6.725753338)
   Max TM value:184 at an offset of 15236.542 usec -> 2021-06-29T09:04:29.725.763.168 (XO: 6.725766325)
   Max dTM/dt [1/us]:1.62e+03 at an offset of 15239.417 usec -> 2021-06-29T09:04:29.725.766.043 (XO: 6.725769200)
   Min dTM/dt [1/us]:-1.79e+03 at an offset of 5178.669 usec -> 2021-06-29T09:04:29.715.705.294 (XO: 6.715708452)
   Med: -4.00000   Ave: -4.4705396   Std: 8.8666325

 - Event number: 2 --EMPTY-- 

 - Event number: 3 from 2021-06-29T09:04:43.121.332.626 to 2021-06-29T09:04:43.169.884.800 (XO: 20.235778574 - 20.284330749)
   Min TM value:-194 at an offset of 9961.223 usec -> 2021-06-29T09:04:43.131.293.849 (XO: 20.245739797)
   Max TM value:183 at an offset of 9964.061 usec -> 2021-06-29T09:04:43.131.296.686 (XO: 20.245742635)
   Max dTM/dt [1/us]:1.72e+03 at an offset of 9963.936 usec -> 2021-06-29T09:04:43.131.296.561 (XO: 20.245742510)
   Min dTM/dt [1/us]:-1.53e+03 at an offset of 29906.395 usec -> 2021-06-29T09:04:43.151.239.021 (XO: 20.265684969)
   Med: -5.00000   Ave: -4.5509832   Std: 6.9614066
