-- ERROR --
-----------------> BLESK ver.2021-02-27 run on Mon Jan  8 15:26:34 2024 UTC
-- File 20230721_062708_1229.dat, 7388  packets found.
APID:
      1229 (EW) in 7388 packets (all packets)
Mode:
      1 (EBEW-SRSL) in 7388 packets (all packets)
Total number of packets: 
      36720 in 7388 packets (all packets)
Packet No from 1 to 7388
!!!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.928498 to 32.213774
-each separately from 6s to 32s and from 213774us to 928498us.
   Differences in neigboring packets: 
      0.000000 in 7385 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      25.285276 in 1 packets: 612
      -9.571714 in 1 packets: 3468
MIU packet time from 2023-07-21T06:27:17.928.498.000 to 2023-07-21T06:27:43.213.774.000
   Differences in neigboring packets: 
      0.000000 in 7385 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      25.285276 in 1 packets: 612
      -9.571714 in 1 packets: 3468
MIU orbit number: 
      60000 in 7388 packets (all packets)
MIU orbit information / directon: 
      0 (DOWN) in 7388 packets (all packets)
MIU orbit information / number of events: 
      0 in 7388 packets (all packets)
Waveform overflows in 306us: 
      0 (none) in 7388 packets (all packets)
Instrument anomalies: 
      0 (OK) in 7388 packets (all packets)
FPGA configuration version: 
      211 in 7388 packets (all packets)
10 MHz counter at the last 1Hz pulse from 7.4665019 to 33.4664149
   Differences in neigboring packets: 
      0.0000000 in 7385 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      25.9999130 in 1 packets: 612
      -9.9999665 in 1 packets: 3468
Temperature FPGA: 
      FE -> 57.6 degC in 3468 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      FF -> 56.3 degC in 3920 packets: 3469, 3470, 3471, 3472, 3473, 3474, 3475, 3476, 3477, 3478, 3479, 3480, 3481, 3482, 3483, 3484, 3485, 3486, ...
Temperature XO: 
      C6 -> 45.2 degC in 3468 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      C5 -> 43.6 degC in 3920 packets: 3469, 3470, 3471, 3472, 3473, 3474, 3475, 3476, 3477, 3478, 3479, 3480, 3481, 3482, 3483, 3484, 3485, 3486, ...
Temperature ant 3: 
      01 -> 108.0 degC in 7388 packets (all packets)
Temperature ant 4: 
      01 -> 108.0 degC in 7388 packets (all packets)
Number of external events: 
      1 in 612 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 2856 packets: 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, ...
      2 in 3920 packets: 3469, 3470, 3471, 3472, 3473, 3474, 3475, 3476, 3477, 3478, 3479, 3480, 3481, 3482, 3483, 3484, 3485, 3486, ...
Number of generated alerts: 
      1 in 612 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 2856 packets: 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, ...
      2 in 3920 packets: 3469, 3470, 3471, 3472, 3473, 3474, 3475, 3476, 3477, 3478, 3479, 3480, 3481, 3482, 3483, 3484, 3485, 3486, ...
Survey memory error: 
      0 in 7388 packets (all packets)
Event memory error: 
      0 in 7388 packets (all packets)
Configuration error: 
      0 in 7388 packets (all packets)
SDRAM CRC error: 
      0 in 7388 packets (all packets)
Radio gain: 
      0 in 7388 packets (all packets)
Radio bandwidth: 
      0 in 7388 packets (all packets)
Digital gain: 
      0 in 7388 packets (all packets)
Analog gain: 
      0 in 7388 packets (all packets)

EVENT DATA READER
-- File 20230721_062708_1229.dat, 36 EW pages found. Extra packets: 44.
   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 612 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      3 in 2856 packets: 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, ...
      2 in 3876 packets: 3469, 3470, 3471, 3472, 3473, 3474, 3475, 3476, 3477, 3478, 3479, 3480, 3481, 3482, 3483, 3484, 3485, 3486, ...
   LS 32 bits of C10MHz from descriptor (period 430s)  from 8.5371901 to 33.6732371
      Difference between the neighboring packets: 
      0.0000170 in 7341 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      25.0771250 in 1 packets: 612
      -9.6202150 in 1 packets: 3468
   Memory page number from 0 to 42
      Difference between the neighboring packets: 
      0 in 7308 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 34 packets: 204, 408, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856, 3060, 3264, 3468, 3672, 3876, ...
      8 in 1 packets: 612
   Event page number from 1 to 60
      Difference between the neighboring packets: 
      0 in 7308 packets: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...
      1 in 33 packets: 204, 408, 816, 1020, 1224, 1428, 1632, 1836, 2040, 2244, 2448, 2652, 2856, 3060, 3264, 3672, 3876, 4080, ...
      -59 in 1 packets: 612
      -13 in 1 packets: 3468
   MIU event flag 
      1 in 7344 packets (all packets)
   Time triggered event flag 
      0 in 7344 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-07-21T06:27:17.873.009.642
   Min EW header abs. time found among all events            : 2023-07-21T06:27:17.928.498.000
   Max EW event (1st sample) abs. time found among all events: 2023-07-21T06:27:43.158.285.642
   Max EW header abs. time found among all events            : 2023-07-21T06:27:43.213.774.000
   TM values from -352 to 269 median:-4.00000
--
Data structure of separate events (selected and re-ordered from the packet sequence):

 Event no. 1 total number of packets: 612
    Page no. 58:  204 packets  -- OK;  memory page(s):
      0 in 204 packets (all packets)  --OK-- 
    Page no. 59:  204 packets  -- OK;  memory page(s):
      1 in 204 packets (all packets)  --OK-- 
    Page no. 60:  204 packets  -- OK;  memory page(s):
      2 in 204 packets (all packets)  --OK-- 
   Event no. 1 pages: 3  ordered packets: 612
   TM values from -248 to 196 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=6 C1MHz=0.928498
   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: 8.5371901
   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-07-21T06:27:17.928.498.000
   Event 1st sample abs. time : 2023-07-21T06:27:17.873.009.642)
   --- Rel. time correction for 1 points based on 29 XO calibration points at 1Hz counter from 0 to 28
   --- First point: 1Hz counter = 6, 32bit 10MHz counter = 8.537190100 corrected by 40bit 10MHz counter of 7.466501900 obtained at 1Hz counter of 6. Result: 7.070691733
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):               7.070691558
   Event data descriptor XO time (reconstructed seconds from XP start)    :               7.070691733
   Sampling frequency correction factor for this event:     0.999996700

 Event no. 2 total number of packets: 3876
    Page no. 1:  204 packets  -- OK;  memory page(s):
      24 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      25 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      26 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      27 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      28 in 204 packets (all packets)  --OK-- 
    Page no. 6:  204 packets  -- OK;  memory page(s):
      29 in 204 packets (all packets)  --OK-- 
    Page no. 7:  204 packets  -- OK;  memory page(s):
      30 in 204 packets (all packets)  --OK-- 
    Page no. 8:  204 packets  -- OK;  memory page(s):
      31 in 204 packets (all packets)  --OK-- 
    Page no. 9:  204 packets  -- OK;  memory page(s):
      32 in 204 packets (all packets)  --OK-- 
    Page no. 10:  204 packets  -- OK;  memory page(s):
      33 in 204 packets (all packets)  --OK-- 
    Page no. 11:  204 packets  -- OK;  memory page(s):
      34 in 204 packets (all packets)  --OK-- 
    Page no. 12:  204 packets  -- OK;  memory page(s):
      35 in 204 packets (all packets)  --OK-- 
    Page no. 13:  204 packets  -- OK;  memory page(s):
      36 in 204 packets (all packets)  --OK-- 
    Page no. 14:  204 packets  -- OK;  memory page(s):
      37 in 204 packets (all packets)  --OK-- 
    Page no. 15:  204 packets  -- OK;  memory page(s):
      38 in 204 packets (all packets)  --OK-- 
    Page no. 16:  204 packets  -- OK;  memory page(s):
      39 in 204 packets (all packets)  --OK-- 
    Page no. 17:  204 packets  -- OK;  memory page(s):
      40 in 204 packets (all packets)  --OK-- 
    Page no. 18:  204 packets  -- OK;  memory page(s):
      41 in 204 packets (all packets)  --OK-- 
    Page no. 19:  204 packets  -- OK;  memory page(s):
      42 in 204 packets (all packets)  --OK-- 
   Event no. 2 pages: 19  ordered packets: 3876
   TM values from -352 to 269 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=22 C1MHz=0.642060
   Differences of   LS 32 bits of C10MHz from descriptor (period 430s)  in neigboring packets of this event: 
      0.0000170 in 3875 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: 24.0530221
   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-07-21T06:27:33.642.060.000
   Event 1st sample abs. time : 2023-07-21T06:27:33.586.571.637)
   --- Rel. time correction for 1 points based on 29 XO calibration points at 1Hz counter from 0 to 28
   --- First point: 1Hz counter = 22, 32bit 10MHz counter = 24.053022100 corrected by 40bit 10MHz counter of 23.466448400 obtained at 1Hz counter of 22. Result: 22.586575694
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              22.586575519
   Event data descriptor XO time (reconstructed seconds from XP start)    :              22.586575694
   Sampling frequency correction factor for this event:     0.999996600

 Event no. 3 total number of packets: 2856
    Page no. 1:  204 packets  -- OK;  memory page(s):
      10 in 204 packets (all packets)  --OK-- 
    Page no. 2:  204 packets  -- OK;  memory page(s):
      11 in 204 packets (all packets)  --OK-- 
    Page no. 3:  204 packets  -- OK;  memory page(s):
      12 in 204 packets (all packets)  --OK-- 
    Page no. 4:  204 packets  -- OK;  memory page(s):
      13 in 204 packets (all packets)  --OK-- 
    Page no. 5:  204 packets  -- OK;  memory page(s):
      14 in 204 packets (all packets)  --OK-- 
    Page no. 6:  204 packets  -- OK;  memory page(s):
      15 in 204 packets (all packets)  --OK-- 
    Page no. 7:  204 packets  -- OK;  memory page(s):
      16 in 204 packets (all packets)  --OK-- 
    Page no. 8:  204 packets  -- OK;  memory page(s):
      17 in 204 packets (all packets)  --OK-- 
    Page no. 9:  204 packets  -- OK;  memory page(s):
      18 in 204 packets (all packets)  --OK-- 
    Page no. 10:  204 packets  -- OK;  memory page(s):
      19 in 204 packets (all packets)  --OK-- 
    Page no. 11:  204 packets  -- OK;  memory page(s):
      20 in 204 packets (all packets)  --OK-- 
    Page no. 12:  204 packets  -- OK;  memory page(s):
      21 in 204 packets (all packets)  --OK-- 
    Page no. 13:  204 packets  -- OK;  memory page(s):
      22 in 204 packets (all packets)  --OK-- 
    Page no. 14:  204 packets  -- OK;  memory page(s):
      23 in 204 packets (all packets)  --OK-- 
   Event no. 3 pages: 14  ordered packets: 2856
   TM values from -279 to 264 median: -4.00000
   1Hz and 1MHz counters -- OK -- (constant for all packets of this event):
          C1Hz=32 C1MHz=0.213774
   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: 33.6247021
   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-07-21T06:27:43.213.774.000
   Event 1st sample abs. time : 2023-07-21T06:27:43.158.285.642)
   --- Rel. time correction for 1 points based on 29 XO calibration points at 1Hz counter from 0 to 28
   --- First point: 1Hz counter = 32, 32bit 10MHz counter = 33.624702100 corrected by 40bit 10MHz counter of 29.466428300 obtained at 1Hz counter of 28. Result: 32.158287522
   XO time of the 1st EW sample = data descriptor XO time - 175 ns delay
   Event 1st sample XO time (reconstructed seconds from XP start):              32.158287347
   Event data descriptor XO time (reconstructed seconds from XP start)    :              32.158287522
   Sampling frequency correction factor for this event:     0.999996700
--
Extremes in separate events:

 - Event number: 1 from 2023-07-21T06:27:17.873.009.642 to 2023-07-21T06:27:17.883.413.676 (XO: 7.070691558 - 7.081095593)
   Min TM value:-248 at an offset of 7428.850 usec -> 2023-07-21T06:27:17.880.438.491 (XO: 7.078120408)
   Max TM value:196 at an offset of 7386.424 usec -> 2023-07-21T06:27:17.880.396.066 (XO: 7.078077983)
   Max dTM/dt [1/us]:1.80e+03 at an offset of 7386.287 usec -> 2023-07-21T06:27:17.880.395.928 (XO: 7.078077845)
   Min dTM/dt [1/us]:-1.90e+03 at an offset of 7278.699 usec -> 2023-07-21T06:27:17.880.288.341 (XO: 7.077970257)
   Med: -4.00000   Ave: -4.3329284   Std: 13.457023

 - Event number: 2 from 2023-07-21T06:27:33.586.571.637 to 2023-07-21T06:27:33.652.463.861 (XO: 22.586575519 - 22.652467743)
   Min TM value:-352 at an offset of 54023.409 usec -> 2023-07-21T06:27:33.640.595.045 (XO: 22.640598928)
   Max TM value:269 at an offset of 54023.159 usec -> 2023-07-21T06:27:33.640.594.795 (XO: 22.640598678)
   Max dTM/dt [1/us]:2.81e+03 at an offset of 54025.646 usec -> 2023-07-21T06:27:33.640.597.283 (XO: 22.640601166)
   Min dTM/dt [1/us]:-3.41e+03 at an offset of 54023.271 usec -> 2023-07-21T06:27:33.640.594.908 (XO: 22.640598791)
   Med: -4.00000   Ave: -4.4102926   Std: 17.809911

 - Event number: 3 from 2023-07-21T06:27:43.158.285.642 to 2023-07-21T06:27:43.206.837.802 (XO: 32.158287347 - 32.206839508)
   Min TM value:-279 at an offset of 13707.845 usec -> 2023-07-21T06:27:43.171.993.487 (XO: 32.171995193)
   Max TM value:264 at an offset of 13707.595 usec -> 2023-07-21T06:27:43.171.993.237 (XO: 32.171994943)
   Max dTM/dt [1/us]:2.43e+03 at an offset of 3678.750 usec -> 2023-07-21T06:27:43.161.964.391 (XO: 32.161966097)
   Min dTM/dt [1/us]:-2.46e+03 at an offset of 13707.720 usec -> 2023-07-21T06:27:43.171.993.362 (XO: 32.171995068)
   Med: -4.00000   Ave: -4.3780019   Std: 23.701174
