-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Wed Mar 15 18:37:02 2023 UTC
-- File 20220608_123158_1229.dat, 6518  packets found.
APID:
      1229 (EW) in 6518 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 6518 packets (all packets)
Total number of packets: 
      30396 in 6518 packets (all packets)
Packet No from 1 to 6518
!!!ERROR: Maximum packet number must be = 30396
   Sequence of packet numbers -- OK -- 
!!!ERROR: Last packet number must be = 30396
Hz and MHz counters from 12.499634 to 12.600206
-each separately from 12s to 12s and from 499634us to 600206us.
   Differences in neigboring packets: 
      0.000000 in 6516 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      0.100572 in 1 packets: 5916
MIU packet time from 2022-06-08T12:32:13.499.634.000 to 2022-06-08T12:32:13.600.206.000
   Differences in neigboring packets: 
      0.000000 in 6516 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      0.100572 in 1 packets: 5916
MIU orbit number: 
      60000 in 6518 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 6518 packets (all packets)
MIU orbit information / number of events: 
      0 in 6518 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 6518 packets (all packets)
Instrument anomalies: 
      0 (OK) in 6518 packets (all packets)
FPGA configuration version: 
      211 in 6518 packets (all packets)
10 MHz counter at the last 1Hz pulse from 13.6454806 to 13.6454806
   Differences in neigboring packets: 
      0.0000000 in 6517 packets (all packets)
Temperature FPGA: 
      01 -> 53.7 degC in 6518 packets (all packets)
Temperature XO: 
      C4 -> 42.0 degC in 6518 packets (all packets)
Temperature ant 3: 
      01 -> 108.0 degC in 6518 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 6518 packets (all packets)
Number of external events: 
      2 in 5916 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 602 packets: 5917, 5918, 5919, 5920, 5921, 5922, 5923, 5924, 5925, 5926, 5927, 5928, 5929, 5930, 5931, 5932, 5933, 5934, ...
Number of generated alerts: 
      2 in 5916 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 602 packets: 5917, 5918, 5919, 5920, 5921, 5922, 5923, 5924, 5925, 5926, 5927, 5928, 5929, 5930, 5931, 5932, 5933, 5934, ...
Survey memory error: 
      0 in 6518 packets (all packets)
Event memory error: 
      0 in 6518 packets (all packets)
Configuration error: 
      0 in 6518 packets (all packets)
SDRAM CRC error: 
      0 in 6518 packets (all packets)
Radio gain: 
      0 in 6518 packets (all packets)
Radio bandwidth: 
      0 in 6518 packets (all packets)
Digital gain: 
      0 in 6518 packets (all packets)
Analog gain: 
      0 in 6518 packets (all packets)

EVENT DATA READER
-- File 20220608_123158_1229.dat, 31 EW pages found. Extra packets: 194.
   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 2 to 3
      2 in 5916 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 408 packets: 5917, 5918, 5919, 5920, 5921, 5922, 5923, 5924, 5925, 5926, 5927, 5928, 5929, 5930, 5931, 5932, 5933, 5934, ...
   LS 32 bits of C10MHz from descriptor (period 430s)  from 14.0896279 to 14.1971189
      Difference between the neighboring packets: 
      0.0000170 in 6323 packets (all packets)
   Memory page number from 62 to 92
      Difference between the neighboring packets: 
      0 in 6293 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 30 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 29
      Difference between the neighboring packets: 
      0 in 6293 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 29 packets: 204, 408, 612, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856, 3060, 3264, 3468, 3672, ...
      -28 in 1 packets: 5916
   MIU event flag 
      1 in 6324 packets (all packets)
   Time triggered event flag 
      0 in 6324 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-08T12:32:13.444.145.825
   Min EW header abs. time found among all events            : 2022-06-08T12:32:13.499.634.000
   Max EW event (1st sample) abs. time found among all events: 2022-06-08T12:32:13.544.717.825
   Max EW header abs. time found among all events            : 2022-06-08T12:32:13.600.206.000
   TM values from -304 to 247 median:-4.00000
--
Data structure of separate events (selected and re-ordered from the packet sequence):

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

 Event no. 2 total number of packets: 5916
    Page no. 1:  204 packets  -- OK;  memory page(s):
      62 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      63 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      64 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      65 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      66 in 204 packets (all packets)  --OK-- 
    Page no. 6:  204 packets  -- OK;  memory page(s):
      67 in 204 packets (all packets)  --OK-- 
    Page no. 7:  204 packets  -- OK;  memory page(s):
      68 in 204 packets (all packets)  --OK-- 
    Page no. 8:  204 packets  -- OK;  memory page(s):
      69 in 204 packets (all packets)  --OK-- 
    Page no. 9:  204 packets  -- OK;  memory page(s):
      70 in 204 packets (all packets)  --OK-- 
    Page no. 10:  204 packets  -- OK;  memory page(s):
      71 in 204 packets (all packets)  --OK-- 
    Page no. 11:  204 packets  -- OK;  memory page(s):
      72 in 204 packets (all packets)  --OK-- 
    Page no. 12:  204 packets  -- OK;  memory page(s):
      73 in 204 packets (all packets)  --OK-- 
    Page no. 13:  204 packets  -- OK;  memory page(s):
      74 in 204 packets (all packets)  --OK-- 
    Page no. 14:  204 packets  -- OK;  memory page(s):
      75 in 204 packets (all packets)  --OK-- 
    Page no. 15:  204 packets  -- OK;  memory page(s):
      76 in 204 packets (all packets)  --OK-- 
    Page no. 16:  204 packets  -- OK;  memory page(s):
      77 in 204 packets (all packets)  --OK-- 
    Page no. 17:  204 packets  -- OK;  memory page(s):
      78 in 204 packets (all packets)  --OK-- 
    Page no. 18:  204 packets  -- OK;  memory page(s):
      79 in 204 packets (all packets)  --OK-- 
    Page no. 19:  204 packets  -- OK;  memory page(s):
      80 in 204 packets (all packets)  --OK-- 
    Page no. 20:  204 packets  -- OK;  memory page(s):
      81 in 204 packets (all packets)  --OK-- 
    Page no. 21:  204 packets  -- OK;  memory page(s):
      82 in 204 packets (all packets)  --OK-- 
    Page no. 22:  204 packets  -- OK;  memory page(s):
      83 in 204 packets (all packets)  --OK-- 
    Page no. 23:  204 packets  -- OK;  memory page(s):
      84 in 204 packets (all packets)  --OK-- 
    Page no. 24:  204 packets  -- OK;  memory page(s):
      85 in 204 packets (all packets)  --OK-- 
    Page no. 25:  204 packets  -- OK;  memory page(s):
      86 in 204 packets (all packets)  --OK-- 
    Page no. 26:  204 packets  -- OK;  memory page(s):
      87 in 204 packets (all packets)  --OK-- 
    Page no. 27:  204 packets  -- OK;  memory page(s):
      88 in 204 packets (all packets)  --OK-- 
    Page no. 28:  204 packets  -- OK;  memory page(s):
      89 in 204 packets (all packets)  --OK-- 
    Page no. 29:  204 packets  -- OK;  memory page(s):
      90 in 204 packets (all packets)  --OK-- 
   Event no. 2 pages: 29  ordered packets: 5916
   TM values from -304 to 247 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=12 C1MHz=0.499634
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 5915 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: 14.0896279
   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-08T12:32:13.499.634.000
   Event 1st sample abs. time : 2022-06-08T12:32:13.444.145.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. 3 total number of packets: 408
    Page no. 1:  204 packets  -- OK;  memory page(s):
      91 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      92 in 204 packets (all packets)  --OK-- 
   Event no. 3 pages: 2  ordered packets: 408
   TM values from -214 to 198 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=12 C1MHz=0.600206
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 407 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: 14.1901999
   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-08T12:32:13.600.206.000
   Event 1st sample abs. time : 2022-06-08T12:32:13.544.717.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 --EMPTY-- 

 - Event number: 2 from 2022-06-08T12:32:13.444.145.825 to 2022-06-08T12:32:13.544.717.825 (XO: -333.000000175 - -332.899428175)
   Min TM value:-304 at an offset of 53871.862 usec -> 2022-06-08T12:32:13.498.017.687 (XO: -332.946128313)
   Max TM value:247 at an offset of 23923.175 usec -> 2022-06-08T12:32:13.468.069.000 (XO: -332.976077000)
   Max dTM/dt [1/us]:2.39e+03 at an offset of 13870.300 usec -> 2022-06-08T12:32:13.458.016.125 (XO: -332.986129875)
   Min dTM/dt [1/us]:-2.75e+03 at an offset of 23923.288 usec -> 2022-06-08T12:32:13.468.069.112 (XO: -332.976076888)
   Med: -4.00000   Ave: -4.4041229   Std: 8.4924502

 - Event number: 3 from 2022-06-08T12:32:13.544.717.825 to 2022-06-08T12:32:13.551.653.825 (XO: -333.000000175 - -332.993064175)
   Min TM value:-214 at an offset of 3271.200 usec -> 2022-06-08T12:32:13.547.989.025 (XO: -332.996728975)
   Max TM value:198 at an offset of 3316.213 usec -> 2022-06-08T12:32:13.548.034.037 (XO: -332.996683963)
   Max dTM/dt [1/us]:2.44e+03 at an offset of 3316.087 usec -> 2022-06-08T12:32:13.548.033.912 (XO: -332.996684088)
   Min dTM/dt [1/us]:-2.02e+03 at an offset of 3271.050 usec -> 2022-06-08T12:32:13.547.988.875 (XO: -332.996729125)
   Med: -4.00000   Ave: -4.4101193   Std: 9.6237827
