Bladeren bron

testing service_spectrometer + add averaging_delay

unknown 2 weken geleden
bovenliggende
commit
804b27e08a
85 gewijzigde bestanden met toevoegingen van 9823 en 38 verwijderingen
  1. 3 0
      pico-log-20260505-134737.log
  2. 5 1
      pico-tcp-service/pico-tcp/src/basic_proto_dispatcher.cpp
  3. 1 1
      pico-tcp-service/pico-tcp/src/basic_proto_dispatcher.hpp
  4. 18 7
      pico-tcp-service/pico-tcp/src/pico_server_dispatcher.cpp
  5. 69 0
      spectrometer_service/mserv00/bin/pico
  6. BIN
      spectrometer_service/mserv00/bin/pico-tcp.exe
  7. BIN
      spectrometer_service/mserv00/bin/picoipp.dll
  8. BIN
      spectrometer_service/mserv00/bin/ps4000a.dll
  9. BIN
      spectrometer_service/mserv00/mserv00/__pycache__/__init__.cpython-313.pyc
  10. BIN
      spectrometer_service/mserv00/mserv00/__pycache__/settings.cpython-313.pyc
  11. BIN
      spectrometer_service/mserv00/mserv00/__pycache__/urls.cpython-313.pyc
  12. BIN
      spectrometer_service/mserv00/mserv00/__pycache__/wsgi.cpython-313.pyc
  13. 4 2
      spectrometer_service/mserv00/mserv00/settings.py
  14. 1 1
      spectrometer_service/mserv00/requirements.txt
  15. BIN
      spectrometer_service/mserv00/spectrometer/__pycache__/__init__.cpython-313.pyc
  16. BIN
      spectrometer_service/mserv00/spectrometer/__pycache__/admin.cpython-313.pyc
  17. BIN
      spectrometer_service/mserv00/spectrometer/__pycache__/apps.cpython-313.pyc
  18. BIN
      spectrometer_service/mserv00/spectrometer/__pycache__/engine.cpython-313.pyc
  19. BIN
      spectrometer_service/mserv00/spectrometer/__pycache__/interfaces.cpython-313.pyc
  20. BIN
      spectrometer_service/mserv00/spectrometer/__pycache__/models.cpython-313.pyc
  21. BIN
      spectrometer_service/mserv00/spectrometer/__pycache__/serializers.cpython-313.pyc
  22. BIN
      spectrometer_service/mserv00/spectrometer/__pycache__/urls.cpython-313.pyc
  23. BIN
      spectrometer_service/mserv00/spectrometer/__pycache__/views.cpython-313.pyc
  24. 1 0
      spectrometer_service/mserv00/spectrometer/engine.py
  25. 17 13
      spectrometer_service/mserv00/spectrometer/interfaces.py
  26. 18 0
      spectrometer_service/mserv00/spectrometer/migrations/0008_adc_params_averaging_delay.py
  27. BIN
      spectrometer_service/mserv00/spectrometer/migrations/__pycache__/0001_initial.cpython-313.pyc
  28. BIN
      spectrometer_service/mserv00/spectrometer/migrations/__pycache__/0002_measurement_data_channel_data.cpython-313.pyc
  29. BIN
      spectrometer_service/mserv00/spectrometer/migrations/__pycache__/0003_remove_channel_data_measurement_data.cpython-313.pyc
  30. BIN
      spectrometer_service/mserv00/spectrometer/migrations/__pycache__/0004_state_engine.cpython-313.pyc
  31. BIN
      spectrometer_service/mserv00/spectrometer/migrations/__pycache__/0005_remove_state_engine_measurement_info_engine.cpython-313.pyc
  32. BIN
      spectrometer_service/mserv00/spectrometer/migrations/__pycache__/0006_channel_data_measurement_data_and_more.cpython-313.pyc
  33. BIN
      spectrometer_service/mserv00/spectrometer/migrations/__pycache__/0007_adc_params_averaging_measurement_data_averaging_num.cpython-313.pyc
  34. BIN
      spectrometer_service/mserv00/spectrometer/migrations/__pycache__/0008_adc_params_averaging_delay.cpython-313.pyc
  35. BIN
      spectrometer_service/mserv00/spectrometer/migrations/__pycache__/__init__.cpython-313.pyc
  36. 1 0
      spectrometer_service/mserv00/spectrometer/models.py
  37. 1 1
      spectrometer_service/mserv00/spectrometer/serializers.py
  38. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-142822.log
  39. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-143242.log
  40. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-143346.log
  41. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-143642.log
  42. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-143949.log
  43. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-144231.log
  44. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-144409.log
  45. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-144444.log
  46. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-144904.log
  47. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-145341.log
  48. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-145847.log
  49. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-145910.log
  50. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-145926.log
  51. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-150330.log
  52. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-150355.log
  53. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-150655.log
  54. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-150902.log
  55. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-151028.log
  56. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-151042.log
  57. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-151100.log
  58. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-155845.log
  59. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-155924.log
  60. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-160349.log
  61. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-160439.log
  62. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-160627.log
  63. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-160740.log
  64. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-161009.log
  65. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-161414.log
  66. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-161814.log
  67. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-161923.log
  68. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-162045.log
  69. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-162255.log
  70. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-162454.log
  71. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-163043.log
  72. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-163334.log
  73. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-163401.log
  74. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-163556.log
  75. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-163634.log
  76. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-164328.log
  77. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-164737.log
  78. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-164851.log
  79. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-165205.log
  80. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-165347.log
  81. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-165410.log
  82. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-165553.log
  83. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-171506.log
  84. 206 0
      spectrometer_service/mserv00/synclogs/sync-log-20260505-171623.log
  85. 2 12
      spectrometer_service/mserv00/temp

+ 3 - 0
pico-log-20260505-134737.log

@@ -0,0 +1,3 @@
+[2026-05-05 13:47:37:706] / [INFO]	Open socket
+[2026-05-05 13:47:37:707] / [INFO]	Socket initialized!
+[2026-05-05 13:47:37:707] / [INFO]	Wait for connection...

+ 5 - 1
pico-tcp-service/pico-tcp/src/basic_proto_dispatcher.cpp

@@ -101,7 +101,9 @@ int basic_proto_dispatcher::recvValidatedHeader()
         return 0;
     }
 
-    logger << "Bytes recieved: " << bytes_recieved << endl;
+    #ifdef DEBUG
+        logger << "Bytes recieved: " << bytes_recieved << endl;
+    #endif
 
     upk_ptr->reserve_buffer(bytes_recieved);
     std::copy(rcbuf, rcbuf + bytes_recieved, upk_ptr->buffer());
@@ -155,6 +157,8 @@ int basic_proto_dispatcher::acceptRequest()
             break;
         case 0:
             logger << "Session stopped. Waiting for new connection." << endl;
+            command_callbacks[0x0E]();
+            command_callbacks[0x03]();
             return 0;
         case -1:
             logger << LogPref::Flag(ERROR) << "Error while validate data header." << endl;

+ 1 - 1
pico-tcp-service/pico-tcp/src/basic_proto_dispatcher.hpp

@@ -11,7 +11,7 @@
 #include <iostream>
 #include <functional>
 
-#define MAX_PACKET 8192
+#define MAX_PACKET 4096
 #define CMD_CLOSE 0x01
 
 inline std::ostream& hex_dump(std::ostream& o, std::string const& v) {

+ 18 - 7
pico-tcp-service/pico-tcp/src/pico_server_dispatcher.cpp

@@ -402,17 +402,21 @@ std::vector<std::vector<int16_t>> pico_server_dispatcher::split_packets(int i, i
 {
     std::vector<std::vector<int16_t>> packets = {};
 
-    std::vector<int16_t> data_vec = std::vector<int16_t>(data_buffer_vec[i][j], data_buffer_vec[i][j] + points_vector[i]);
+    int n = ((float) points_vector[i]) / MAX_PACKET + 1;
 
-    for(auto it = data_vec.begin(); it < data_vec.end(); it += MAX_PACKET)
+    for(int k = 0; k < points_vector[i]; k = k + MAX_PACKET / sizeof(int16_t))
     {
-        if(it + MAX_PACKET < data_vec.end())
+        std::vector<int16_t> vec = {};
+
+        if((k + MAX_PACKET / sizeof(int16_t)) > points_vector[i])
         {
-            packets.push_back(std::vector<int16_t>(it, it + MAX_PACKET));
+            vec.assign(data_buffer_vec[i][j] + size_t(k), data_buffer_vec[i][j] + (size_t)(points_vector[i]));
+            packets.push_back(vec);
         }
         else
         {
-            packets.push_back(std::vector<int16_t>(it, data_vec.end()));
+            vec.assign(data_buffer_vec[i][j] + (size_t)(k), data_buffer_vec[i][j] + (size_t)(k + MAX_PACKET / sizeof(int16_t)));
+            packets.push_back(vec);
         }
     }
 
@@ -428,7 +432,7 @@ int pico_server_dispatcher::pico_send_points()
         {
             logger << "Spliting packets..." << endl;
             std::vector<std::vector<int16_t>> packets = split_packets(i, j);
-            logger << "Packets splited." << endl;
+            logger << "Packets splited. No_Packets: " << packets.size() << endl;
 
             uint32_t num_packet = 1;
             uint32_t total_data = sizeof(int16_t) * points_vector[i];
@@ -438,6 +442,9 @@ int pico_server_dispatcher::pico_send_points()
 
             for(std::vector<int16_t> packet : packets)
             {
+                #ifdef DEBUG
+                    logger << "Packet: " << i << " " << j << ", size = " << packet.size() << endl;
+                #endif
                 pk_ptr->pack(magic_number);
                 pk_ptr->pack(0xCD);
                 pk_ptr->pack(i);
@@ -453,7 +460,9 @@ int pico_server_dispatcher::pico_send_points()
                     return -1;
                 }
 
-                logger << "Data sent!" << endl;
+                #ifdef DEBUG
+                    logger << "Data sent!" << endl;
+                #endif
 
                 ret = recvValidatedHeader();
                 if(ret != 1)
@@ -464,7 +473,9 @@ int pico_server_dispatcher::pico_send_points()
 
                 if(command_code == 0x3D)
                 {
+                #ifdef DEBUG
                     logger << LogPref::Flag(INFO) << "Packet confirmed" << endl;
+                #endif
                 }
                 else  {
                     sendErrorMsg(0x80000002, "Invalid confirm code!");

+ 69 - 0
spectrometer_service/mserv00/bin/pico

@@ -0,0 +1,69 @@
+[2026-05-05 16:04:39:362] / [INFO]	Client connected
+[2026-05-05 16:04:39:362] / [INFO]	Start handle request
+[2026-05-05 16:04:39:368] / [INFO]	Bytes recieved: 3
+[2026-05-05 16:04:39:368] / [INFO]	Validated data header recieved. Accepting command is allowed.
+[2026-05-05 16:04:39:369] / [INFO]	Request header handled
+[2026-05-05 16:04:40:845] / [INFO]	Pico device opened with handle: 16384
+[2026-05-05 16:04:40:846] / [INFO]	Command was accepted. Wait next command.
+[2026-05-05 16:04:40:846] / [INFO]	Request received
+[2026-05-05 16:04:40:846] / [INFO]	Start handle request
+[2026-05-05 16:04:40:857] / [INFO]	Bytes recieved: 8
+[2026-05-05 16:04:40:857] / [INFO]	Validated data header recieved. Accepting command is allowed.
+[2026-05-05 16:04:40:857] / [INFO]	Request header handled
+[2026-05-05 16:04:40:858] / [INFO]	Command was accepted. Wait next command.
+[2026-05-05 16:04:40:858] / [INFO]	Request received
+[2026-05-05 16:04:40:858] / [INFO]	Start handle request
+[2026-05-05 16:04:40:858] / [INFO]	Bytes recieved: 7
+[2026-05-05 16:04:40:858] / [INFO]	Validated data header recieved. Accepting command is allowed.
+[2026-05-05 16:04:40:858] / [INFO]	Request header handled
+[2026-05-05 16:04:40:859] / [INFO]	Command was accepted. Wait next command.
+[2026-05-05 16:04:40:859] / [INFO]	Request received
+[2026-05-05 16:04:40:859] / [INFO]	Start handle request
+[2026-05-05 16:04:40:859] / [INFO]	Bytes recieved: 8
+[2026-05-05 16:04:40:859] / [INFO]	Validated data header recieved. Accepting command is allowed.
+[2026-05-05 16:04:40:859] / [INFO]	Request header handled
+[2026-05-05 16:04:40:859] / [INFO]	Channels opened...
+[2026-05-05 16:04:40:860] / [INFO]	Trigger channel set...
+[2026-05-05 16:04:40:860] / [INFO]	Channels configured!
+[2026-05-05 16:04:40:860] / [INFO]	Command was accepted. Wait next command.
+[2026-05-05 16:04:40:860] / [INFO]	Request received
+[2026-05-05 16:04:40:860] / [INFO]	Start handle request
+[2026-05-05 16:04:40:860] / [INFO]	Bytes recieved: 10
+[2026-05-05 16:04:40:860] / [INFO]	Validated data header recieved. Accepting command is allowed.
+[2026-05-05 16:04:40:861] / [INFO]	Request header handled
+[2026-05-05 16:04:40:861] / [INFO]	Command was accepted. Wait next command.
+[2026-05-05 16:04:40:861] / [INFO]	Request received
+[2026-05-05 16:04:40:861] / [INFO]	Start handle request
+[2026-05-05 16:04:40:861] / [INFO]	Bytes recieved: 4
+[2026-05-05 16:04:40:861] / [INFO]	Validated data header recieved. Accepting command is allowed.
+[2026-05-05 16:04:40:862] / [INFO]	Request header handled
+[2026-05-05 16:04:40:862] / [INFO]	Command was accepted. Wait next command.
+[2026-05-05 16:04:40:862] / [INFO]	Request received
+[2026-05-05 16:04:40:862] / [INFO]	Start handle request
+[2026-05-05 16:04:40:863] / [INFO]	Bytes recieved: 3
+[2026-05-05 16:04:40:863] / [INFO]	Validated data header recieved. Accepting command is allowed.
+[2026-05-05 16:04:40:863] / [INFO]	Request header handled
+[2026-05-05 16:04:40:864] / [INFO]	Get timebase:
+[2026-05-05 16:04:40:864] / [INFO]	Timebase = 9
+[2026-05-05 16:04:40:864] / [INFO]	Set data buffer:
+[2026-05-05 16:04:40:864] / [INFO]	Run block!
+[2026-05-05 16:04:41:86] / [INFO]	Run block done!
+[2026-05-05 16:04:42:119] / [INFO]	Data collection is starting!
+[2026-05-05 16:04:42:119] / [INFO]	Set data buffer for channel 0
+[2026-05-05 16:04:42:119] / [INFO]	Set data buffer for channel 1
+[2026-05-05 16:04:42:120] / [INFO]	Set data buffer done
+[2026-05-05 16:04:42:120] / [INFO]	Data collection start
+[2026-05-05 16:04:42:122] / [INFO]	Data collection done
+[2026-05-05 16:04:42:122] / [INFO]	Confirm data to socket
+[2026-05-05 16:04:42:123] / [INFO]	Command was accepted. Wait next command.
+[2026-05-05 16:04:42:123] / [INFO]	Request received
+[2026-05-05 16:04:42:123] / [INFO]	Start handle request
+[2026-05-05 16:04:42:123] / [INFO]	Bytes recieved: 4
+[2026-05-05 16:04:42:123] / [INFO]	Validated data header recieved. Accepting command is allowed.
+[2026-05-05 16:04:42:123] / [INFO]	Request header handled
+[2026-05-05 16:04:42:124] / [INFO]	Sending points
+[2026-05-05 16:04:42:124] / [INFO]	Spliting packets...
+[2026-05-05 16:04:42:124] / [INFO]	Packets splited. No_Packets: 25
+[2026-05-05 16:04:42:124] / [INFO]	Ready to send data!
+[2026-05-05 16:04:42:125] / [INFO]	Data sent!
+[2026-05-05 16:04:42:137] / [INFO]	Bytes recieved: -1

BIN
spectrometer_service/mserv00/bin/pico-tcp.exe


BIN
spectrometer_service/mserv00/bin/picoipp.dll


BIN
spectrometer_service/mserv00/bin/ps4000a.dll


BIN
spectrometer_service/mserv00/mserv00/__pycache__/__init__.cpython-313.pyc


BIN
spectrometer_service/mserv00/mserv00/__pycache__/settings.cpython-313.pyc


BIN
spectrometer_service/mserv00/mserv00/__pycache__/urls.cpython-313.pyc


BIN
spectrometer_service/mserv00/mserv00/__pycache__/wsgi.cpython-313.pyc


+ 4 - 2
spectrometer_service/mserv00/mserv00/settings.py

@@ -108,9 +108,11 @@ AUTH_PASSWORD_VALIDATORS = [
 REST_FRAMEWORK = {
     'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
     'DEFAULT_FILTER_BACKENDS': ['django_filters.rest_framework.DjangoFilterBackend'],
-    'DEFAULT_AUTHENTICATION_CLASSES': [],
+    'DEFAULT_AUTHENTICATION_CLASSES': [
+        'rest_framework.authentication.BasicAuthentication',
+        'rest_framework.authentication.SessionAuthentication'],
     'DEFAULT_PERMISSION_CLASSES': [
-        'rest_framework.permissions.AllowAny',
+        'rest_framework.permissions.IsAuthenticated',
     ],
     'PAGE_SIZE': 10
 }

+ 1 - 1
spectrometer_service/mserv00/requirements.txt

@@ -1,4 +1,4 @@
-asgiref==3.8.1
+pasgiref==3.8.1
 b64==0.4
 beautifulsoup4==4.13.4
 bs4==0.0.2

BIN
spectrometer_service/mserv00/spectrometer/__pycache__/__init__.cpython-313.pyc


BIN
spectrometer_service/mserv00/spectrometer/__pycache__/admin.cpython-313.pyc


BIN
spectrometer_service/mserv00/spectrometer/__pycache__/apps.cpython-313.pyc


BIN
spectrometer_service/mserv00/spectrometer/__pycache__/engine.cpython-313.pyc


BIN
spectrometer_service/mserv00/spectrometer/__pycache__/interfaces.cpython-313.pyc


BIN
spectrometer_service/mserv00/spectrometer/__pycache__/models.cpython-313.pyc


BIN
spectrometer_service/mserv00/spectrometer/__pycache__/serializers.cpython-313.pyc


BIN
spectrometer_service/mserv00/spectrometer/__pycache__/urls.cpython-313.pyc


BIN
spectrometer_service/mserv00/spectrometer/__pycache__/views.cpython-313.pyc


+ 1 - 0
spectrometer_service/mserv00/spectrometer/engine.py

@@ -628,6 +628,7 @@ class DefaultEngine:
                     return ret
 
                 self.adcWrite(k)
+                tm.sleep(self.measure.info.iadc.averaging_delay)
         else:
             print('SENDING TRIGGER')
             # Set trigger wait, check for errors

+ 17 - 13
spectrometer_service/mserv00/spectrometer/interfaces.py

@@ -29,6 +29,8 @@ class adc_default:
         self.ndata = []
         self.channels_data = []
         self.measure_code = (0x00, 0)
+        self.connected = False
+        self.pk = msgpack.Packer()
 
         self.proto = {
             'open': 0x01,
@@ -45,6 +47,7 @@ class adc_default:
         self.client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
         self.client_socket.settimeout(10.0)
         resp = self.client_socket.connect(('127.0.0.1', self.port))
+        self.connected = True
         return resp
     
     def send_command(self, cmd_code, *args):
@@ -75,7 +78,7 @@ class adc_default:
                 objects = []
                 for obj in unpacker:
                     objects.append(obj)
-                print(f"Code: {objects[1]}")
+                #print(f"Code: {objects[1]}")
 
                 return objects[1], objects[2:]
         except Exception as e:
@@ -188,7 +191,7 @@ class adc_default:
             buf = bytearray()
             buf.extend(self.pk.pack(0xAA))
             buf.extend(self.pk.pack(0xBB))
-            self.sock.sendall(buf)
+            self.client_socket.sendall(buf)
 
             last_i = 0
             last_j = 0
@@ -196,17 +199,17 @@ class adc_default:
 
             while True:
                 resp_code, data = self.receive_response()
-                print("Chunk recieved!")
-                print(f'Resp: {resp_code} (need {0xCD} or {0xCE})')
+                #print("Chunk recieved!")
+                #print(f'Resp: {resp_code} (need {0xCD} or {0xCE})')
                 if resp_code == 0xCD:
                     i, j, packet, size, packet_data = data[0], data[1], data[2], data[3], data[4]
 
                     if last_j != j:
-                        print('Append channel')
+                        print(f'Append channel {j}')
                         self.channels_data.append(curr_data)
                         curr_data = []
                     if last_i != i:
-                        print('Append signal')
+                        print(f'Append signal {i}')
                         self.ndata.append(self.channels_data)
                         self.channels_data = []
                     
@@ -215,16 +218,16 @@ class adc_default:
 
                     curr_data.extend(packet_data)
                     key = (i, j)
-                    print("Received packet params.")
+                    #print("Received packet params.")
                     if key not in data_collected:
                         data_collected[key] = []
-                        print("Key created!")
+                        #print("Key created!")
                     data_collected[key].extend(packet_data)  # Assuming packet is list of int16
-                    print("Appended!")
+                    #print("Appended!")
                     buf = bytearray()
                     buf.extend(self.pk.pack(0xAA))
                     buf.extend(self.pk.pack(0x3D))
-                    self.sock.sendall(buf)
+                    self.client_socket.sendall(buf)
                 elif resp_code == 0xCE:
                     self.channels_data.append(curr_data)
                     self.ndata.append(self.channels_data)
@@ -234,14 +237,15 @@ class adc_default:
                     buf = bytearray()
                     buf.extend(self.pk.pack(0xAA))
                     buf.extend(self.pk.pack(0x3E))
-                    self.sock.sendall(buf)
+                    self.client_socket.sendall(buf)
                     print("Data received and acknowledged.")
-                    return
+                    return (0xBB, 0)
                 else:
                     print(f"Unexpected response: {resp_code}")
-                    return
+                    return (0xFF, -1)
         except Exception as e:
             print(f"Send points failed: {e}")
+            return (0xFF, -1)
     
     def stop(self):
         resp = self.send_command(0x03)

+ 18 - 0
spectrometer_service/mserv00/spectrometer/migrations/0008_adc_params_averaging_delay.py

@@ -0,0 +1,18 @@
+# Generated by Django 5.2.3 on 2026-05-05 13:58
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('spectrometer', '0007_adc_params_averaging_measurement_data_averaging_num'),
+    ]
+
+    operations = [
+        migrations.AddField(
+            model_name='adc_params',
+            name='averaging_delay',
+            field=models.FloatField(default=1.0),
+        ),
+    ]

BIN
spectrometer_service/mserv00/spectrometer/migrations/__pycache__/0001_initial.cpython-313.pyc


BIN
spectrometer_service/mserv00/spectrometer/migrations/__pycache__/0002_measurement_data_channel_data.cpython-313.pyc


BIN
spectrometer_service/mserv00/spectrometer/migrations/__pycache__/0003_remove_channel_data_measurement_data.cpython-313.pyc


BIN
spectrometer_service/mserv00/spectrometer/migrations/__pycache__/0004_state_engine.cpython-313.pyc


BIN
spectrometer_service/mserv00/spectrometer/migrations/__pycache__/0005_remove_state_engine_measurement_info_engine.cpython-313.pyc


BIN
spectrometer_service/mserv00/spectrometer/migrations/__pycache__/0006_channel_data_measurement_data_and_more.cpython-313.pyc


BIN
spectrometer_service/mserv00/spectrometer/migrations/__pycache__/0007_adc_params_averaging_measurement_data_averaging_num.cpython-313.pyc


BIN
spectrometer_service/mserv00/spectrometer/migrations/__pycache__/0008_adc_params_averaging_delay.cpython-313.pyc


BIN
spectrometer_service/mserv00/spectrometer/migrations/__pycache__/__init__.cpython-313.pyc


+ 1 - 0
spectrometer_service/mserv00/spectrometer/models.py

@@ -41,6 +41,7 @@ class adc_params(models.Model):
     trig_direction = models.IntegerField()
     auto_measure_time = models.PositiveIntegerField()
     averaging = models.PositiveIntegerField(default=1)
+    averaging_delay = models.FloatField(default=1.0)
     enabled = models.BooleanField(default=True)
 
     def __str__(self):

+ 1 - 1
spectrometer_service/mserv00/spectrometer/serializers.py

@@ -18,7 +18,7 @@ class adc_params_Serializer(WritableNestedModelSerializer, serializers.Hyperlink
     device = device_Serializer(read_only=True)
     class Meta:
         model = models.adc_params
-        fields = ['device_model', 'device', 'srate', 'points', 'n_channels', 'channel_ranges', 'n_triggers', 'averaging', 'trigger_channel', 'trig_direction', 'threshold', 'auto_measure_time', 'enabled']
+        fields = ['device_model', 'device', 'srate', 'points', 'n_channels', 'channel_ranges', 'n_triggers', 'averaging', 'averaging_delay', 'trigger_channel', 'trig_direction', 'threshold', 'auto_measure_time', 'enabled']
         extra_kwargs = {
             'device': {'read_only': True}
         }

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-142822.log

@@ -0,0 +1,206 @@
+[2026-05-05 14:28:22:620] / [INFO]	Start...
+[2026-05-05 14:28:22:620] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 14:28:22:620] / [INFO]	Try to load file...
+[2026-05-05 14:28:22:621] / [OK]	External XML structure is OK
+[2026-05-05 14:28:22:621] / [DEBUG]	ParamCount = 10
+[2026-05-05 14:28:22:621] / [OK]	Internal structure of XML is OK
+[2026-05-05 14:28:22:621] / [DONE]	File loaded successfully
+[2026-05-05 14:28:22:621] / [INFO]	Creating synchronization program...
+[2026-05-05 14:28:22:622] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 14:28:22:622] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:28:22:623] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 14:28:22:626] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 14:28:22:628] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 14:28:22:629] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 14:28:22:631] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:28:22:632] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 14:28:22:634] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 14:28:22:635] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:28:22:637] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:28:22:638] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 14:28:22:640] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:28:22:642] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 14:28:22:643] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 14:28:22:645] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:28:22:646] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 14:28:22:648] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 14:28:22:649] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:28:22:651] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:28:22:652] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 14:28:22:654] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:28:22:656] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 14:28:22:658] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 14:28:22:659] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:28:22:661] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 14:28:22:663] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 14:28:22:664] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:28:22:665] / [DONE]	Events added
+[2026-05-05 14:28:22:667] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:28:22:669] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:28:22:670] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 14:28:22:681] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 14:28:22:688] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 14:28:22:689] / [INFO]	file fd = 1
+[2026-05-05 14:28:22:700] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 14:28:22:701] / [INFO]	Creating Serial object
+[2026-05-05 14:28:22:703] / [INFO]	Connecting to Serial object
+[2026-05-05 14:28:22:705] / [INFO]	Checking connection
+[2026-05-05 14:28:22:706] / [DONE]	Successful connection to \\.\COM7[2026-05-05 14:28:22:824] / [INFO]	S serial.available = 16
+[2026-05-05 14:28:22:829] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 14:28:22:833] / [INFO]	Q serial.available = 25
+[2026-05-05 14:28:22:835] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 14:28:22:847] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 14:28:22:848] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-143242.log

@@ -0,0 +1,206 @@
+[2026-05-05 14:32:42:787] / [INFO]	Start...
+[2026-05-05 14:32:42:787] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 14:32:42:787] / [INFO]	Try to load file...
+[2026-05-05 14:32:42:787] / [OK]	External XML structure is OK
+[2026-05-05 14:32:42:787] / [DEBUG]	ParamCount = 10
+[2026-05-05 14:32:42:788] / [OK]	Internal structure of XML is OK
+[2026-05-05 14:32:42:788] / [DONE]	File loaded successfully
+[2026-05-05 14:32:42:788] / [INFO]	Creating synchronization program...
+[2026-05-05 14:32:42:788] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 14:32:42:788] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:32:42:790] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 14:32:42:792] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 14:32:42:794] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 14:32:42:795] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 14:32:42:797] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:32:42:800] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 14:32:42:801] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 14:32:42:803] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:32:42:805] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:32:42:807] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 14:32:42:808] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:32:42:810] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 14:32:42:811] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 14:32:42:813] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:32:42:815] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 14:32:42:817] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 14:32:42:819] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:32:42:821] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:32:42:822] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 14:32:42:824] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:32:42:827] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 14:32:42:828] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 14:32:42:830] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:32:42:832] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 14:32:42:834] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 14:32:42:835] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:32:42:836] / [DONE]	Events added
+[2026-05-05 14:32:42:838] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:32:42:840] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:32:42:842] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 14:32:42:854] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 14:32:42:860] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 14:32:42:861] / [INFO]	file fd = 1
+[2026-05-05 14:32:42:873] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 14:32:42:874] / [INFO]	Creating Serial object
+[2026-05-05 14:32:42:875] / [INFO]	Connecting to Serial object
+[2026-05-05 14:32:42:878] / [INFO]	Checking connection
+[2026-05-05 14:32:42:879] / [DONE]	Successful connection to \\.\COM7[2026-05-05 14:32:42:987] / [INFO]	S serial.available = 16
+[2026-05-05 14:32:42:991] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 14:32:42:994] / [INFO]	Q serial.available = 23
+[2026-05-05 14:32:42:996] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 14:32:43:6] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 14:32:43:7] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-143346.log

@@ -0,0 +1,206 @@
+[2026-05-05 14:33:46:272] / [INFO]	Start...
+[2026-05-05 14:33:46:272] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 14:33:46:272] / [INFO]	Try to load file...
+[2026-05-05 14:33:46:272] / [OK]	External XML structure is OK
+[2026-05-05 14:33:46:273] / [DEBUG]	ParamCount = 10
+[2026-05-05 14:33:46:273] / [OK]	Internal structure of XML is OK
+[2026-05-05 14:33:46:273] / [DONE]	File loaded successfully
+[2026-05-05 14:33:46:273] / [INFO]	Creating synchronization program...
+[2026-05-05 14:33:46:274] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 14:33:46:274] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:33:46:275] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 14:33:46:278] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 14:33:46:280] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 14:33:46:281] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 14:33:46:283] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:33:46:285] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 14:33:46:286] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 14:33:46:288] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:33:46:290] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:33:46:292] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 14:33:46:293] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:33:46:295] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 14:33:46:297] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 14:33:46:298] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:33:46:300] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 14:33:46:302] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 14:33:46:304] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:33:46:306] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:33:46:308] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 14:33:46:310] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:33:46:312] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 14:33:46:313] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 14:33:46:315] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:33:46:317] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 14:33:46:318] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 14:33:46:320] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:33:46:321] / [DONE]	Events added
+[2026-05-05 14:33:46:323] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:33:46:324] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:33:46:326] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 14:33:46:338] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 14:33:46:345] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 14:33:46:345] / [INFO]	file fd = 1
+[2026-05-05 14:33:46:357] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 14:33:46:358] / [INFO]	Creating Serial object
+[2026-05-05 14:33:46:360] / [INFO]	Connecting to Serial object
+[2026-05-05 14:33:46:362] / [INFO]	Checking connection
+[2026-05-05 14:33:46:363] / [DONE]	Successful connection to \\.\COM7[2026-05-05 14:33:46:474] / [INFO]	S serial.available = 16
+[2026-05-05 14:33:46:481] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 14:33:46:485] / [INFO]	Q serial.available = 23
+[2026-05-05 14:33:46:487] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 14:33:46:499] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 14:33:46:500] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-143642.log

@@ -0,0 +1,206 @@
+[2026-05-05 14:36:42:390] / [INFO]	Start...
+[2026-05-05 14:36:42:391] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 14:36:42:391] / [INFO]	Try to load file...
+[2026-05-05 14:36:42:391] / [OK]	External XML structure is OK
+[2026-05-05 14:36:42:391] / [DEBUG]	ParamCount = 10
+[2026-05-05 14:36:42:392] / [OK]	Internal structure of XML is OK
+[2026-05-05 14:36:42:392] / [DONE]	File loaded successfully
+[2026-05-05 14:36:42:392] / [INFO]	Creating synchronization program...
+[2026-05-05 14:36:42:392] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 14:36:42:392] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:36:42:394] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 14:36:42:396] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 14:36:42:398] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 14:36:42:399] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 14:36:42:401] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:36:42:403] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 14:36:42:404] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 14:36:42:406] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:36:42:408] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:36:42:409] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 14:36:42:410] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:36:42:412] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 14:36:42:414] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 14:36:42:416] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:36:42:418] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 14:36:42:419] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 14:36:42:421] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:36:42:423] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:36:42:424] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 14:36:42:426] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:36:42:429] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 14:36:42:430] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 14:36:42:432] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:36:42:434] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 14:36:42:436] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 14:36:42:437] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:36:42:438] / [DONE]	Events added
+[2026-05-05 14:36:42:440] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:36:42:441] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:36:42:444] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 14:36:42:455] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 14:36:42:463] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 14:36:42:464] / [INFO]	file fd = 1
+[2026-05-05 14:36:42:475] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 14:36:42:477] / [INFO]	Creating Serial object
+[2026-05-05 14:36:42:478] / [INFO]	Connecting to Serial object
+[2026-05-05 14:36:42:480] / [INFO]	Checking connection
+[2026-05-05 14:36:42:482] / [DONE]	Successful connection to \\.\COM7[2026-05-05 14:36:42:591] / [INFO]	S serial.available = 16
+[2026-05-05 14:36:42:597] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 14:36:42:602] / [INFO]	Q serial.available = 23
+[2026-05-05 14:36:42:604] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 14:36:42:616] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 14:36:42:617] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-143949.log

@@ -0,0 +1,206 @@
+[2026-05-05 14:39:49:851] / [INFO]	Start...
+[2026-05-05 14:39:49:851] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 14:39:49:852] / [INFO]	Try to load file...
+[2026-05-05 14:39:49:856] / [OK]	External XML structure is OK
+[2026-05-05 14:39:49:856] / [DEBUG]	ParamCount = 10
+[2026-05-05 14:39:49:856] / [OK]	Internal structure of XML is OK
+[2026-05-05 14:39:49:857] / [DONE]	File loaded successfully
+[2026-05-05 14:39:49:857] / [INFO]	Creating synchronization program...
+[2026-05-05 14:39:49:857] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 14:39:49:857] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:39:49:859] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 14:39:49:863] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 14:39:49:867] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 14:39:49:870] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 14:39:49:872] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:39:49:875] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 14:39:49:877] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 14:39:49:879] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:39:49:881] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:39:49:882] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 14:39:49:884] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:39:49:886] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 14:39:49:888] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 14:39:49:889] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:39:49:891] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 14:39:49:893] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 14:39:49:894] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:39:49:896] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:39:49:898] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 14:39:49:899] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:39:49:902] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 14:39:49:903] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 14:39:49:905] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:39:49:907] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 14:39:49:908] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 14:39:49:910] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:39:49:911] / [DONE]	Events added
+[2026-05-05 14:39:49:912] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:39:49:914] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:39:49:916] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 14:39:49:927] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 14:39:49:934] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 14:39:49:935] / [INFO]	file fd = 1
+[2026-05-05 14:39:49:947] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 14:39:49:948] / [INFO]	Creating Serial object
+[2026-05-05 14:39:49:950] / [INFO]	Connecting to Serial object
+[2026-05-05 14:39:49:952] / [INFO]	Checking connection
+[2026-05-05 14:39:49:954] / [DONE]	Successful connection to \\.\COM7[2026-05-05 14:39:50:69] / [INFO]	S serial.available = 16
+[2026-05-05 14:39:50:73] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 14:39:50:76] / [INFO]	Q serial.available = 23
+[2026-05-05 14:39:50:78] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 14:39:50:90] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 14:39:50:91] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-144231.log

@@ -0,0 +1,206 @@
+[2026-05-05 14:42:31:961] / [INFO]	Start...
+[2026-05-05 14:42:31:961] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 14:42:31:963] / [INFO]	Try to load file...
+[2026-05-05 14:42:31:964] / [OK]	External XML structure is OK
+[2026-05-05 14:42:31:964] / [DEBUG]	ParamCount = 10
+[2026-05-05 14:42:31:966] / [OK]	Internal structure of XML is OK
+[2026-05-05 14:42:31:966] / [DONE]	File loaded successfully
+[2026-05-05 14:42:31:967] / [INFO]	Creating synchronization program...
+[2026-05-05 14:42:31:968] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 14:42:31:969] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:42:31:970] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 14:42:31:973] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 14:42:31:977] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 14:42:31:979] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 14:42:31:987] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:42:32:5] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 14:42:32:18] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 14:42:32:29] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:42:32:40] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:42:32:43] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 14:42:32:45] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:42:32:47] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 14:42:32:48] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 14:42:32:50] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:42:32:52] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 14:42:32:53] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 14:42:32:55] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:42:32:57] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:42:32:60] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 14:42:32:62] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:42:32:64] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 14:42:32:65] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 14:42:32:67] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:42:32:69] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 14:42:32:70] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 14:42:32:72] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:42:32:73] / [DONE]	Events added
+[2026-05-05 14:42:32:79] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:42:32:81] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:42:32:83] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 14:42:32:96] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 14:42:32:103] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 14:42:32:104] / [INFO]	file fd = 1
+[2026-05-05 14:42:32:117] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 14:42:32:119] / [INFO]	Creating Serial object
+[2026-05-05 14:42:32:120] / [INFO]	Connecting to Serial object
+[2026-05-05 14:42:32:122] / [INFO]	Checking connection
+[2026-05-05 14:42:32:124] / [DONE]	Successful connection to \\.\COM7[2026-05-05 14:42:32:234] / [INFO]	S serial.available = 16
+[2026-05-05 14:42:32:244] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 14:42:32:246] / [INFO]	Q serial.available = 23
+[2026-05-05 14:42:32:248] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 14:42:32:262] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 14:42:32:263] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-144409.log

@@ -0,0 +1,206 @@
+[2026-05-05 14:44:09:392] / [INFO]	Start...
+[2026-05-05 14:44:09:394] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 14:44:09:395] / [INFO]	Try to load file...
+[2026-05-05 14:44:09:395] / [OK]	External XML structure is OK
+[2026-05-05 14:44:09:396] / [DEBUG]	ParamCount = 10
+[2026-05-05 14:44:09:397] / [OK]	Internal structure of XML is OK
+[2026-05-05 14:44:09:397] / [DONE]	File loaded successfully
+[2026-05-05 14:44:09:398] / [INFO]	Creating synchronization program...
+[2026-05-05 14:44:09:399] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 14:44:09:400] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:44:09:404] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 14:44:09:407] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 14:44:09:409] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 14:44:09:410] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 14:44:09:414] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:44:09:427] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 14:44:09:444] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 14:44:09:454] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:44:09:479] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:44:09:483] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 14:44:09:494] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:44:09:501] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 14:44:09:502] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 14:44:09:504] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:44:09:506] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 14:44:09:507] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 14:44:09:509] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:44:09:511] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:44:09:514] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 14:44:09:515] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:44:09:518] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 14:44:09:519] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 14:44:09:521] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:44:09:523] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 14:44:09:524] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 14:44:09:526] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:44:09:527] / [DONE]	Events added
+[2026-05-05 14:44:09:530] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:44:09:532] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:44:09:533] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 14:44:09:545] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 14:44:09:553] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 14:44:09:554] / [INFO]	file fd = 1
+[2026-05-05 14:44:09:567] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 14:44:09:568] / [INFO]	Creating Serial object
+[2026-05-05 14:44:09:570] / [INFO]	Connecting to Serial object
+[2026-05-05 14:44:09:572] / [INFO]	Checking connection
+[2026-05-05 14:44:09:574] / [DONE]	Successful connection to \\.\COM7[2026-05-05 14:44:09:695] / [INFO]	S serial.available = 16
+[2026-05-05 14:44:09:709] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 14:44:09:712] / [INFO]	Q serial.available = 23
+[2026-05-05 14:44:09:714] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 14:44:09:726] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 14:44:09:727] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-144444.log

@@ -0,0 +1,206 @@
+[2026-05-05 14:44:44:798] / [INFO]	Start...
+[2026-05-05 14:44:44:798] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 14:44:44:799] / [INFO]	Try to load file...
+[2026-05-05 14:44:44:799] / [OK]	External XML structure is OK
+[2026-05-05 14:44:44:802] / [DEBUG]	ParamCount = 10
+[2026-05-05 14:44:44:803] / [OK]	Internal structure of XML is OK
+[2026-05-05 14:44:44:803] / [DONE]	File loaded successfully
+[2026-05-05 14:44:44:804] / [INFO]	Creating synchronization program...
+[2026-05-05 14:44:44:804] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 14:44:44:805] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:44:44:811] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 14:44:44:817] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 14:44:44:820] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 14:44:44:821] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 14:44:44:836] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:44:44:850] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 14:44:44:871] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 14:44:44:890] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:44:44:893] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:44:44:894] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 14:44:44:896] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:44:44:900] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 14:44:44:902] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 14:44:44:903] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:44:44:906] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 14:44:44:907] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 14:44:44:909] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:44:44:911] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:44:44:912] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 14:44:44:914] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:44:44:916] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 14:44:44:917] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 14:44:44:919] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:44:44:921] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 14:44:44:922] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 14:44:44:924] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:44:44:925] / [DONE]	Events added
+[2026-05-05 14:44:44:927] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:44:44:928] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:44:44:930] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 14:44:44:941] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 14:44:44:948] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 14:44:44:949] / [INFO]	file fd = 1
+[2026-05-05 14:44:44:960] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 14:44:44:962] / [INFO]	Creating Serial object
+[2026-05-05 14:44:44:966] / [INFO]	Connecting to Serial object
+[2026-05-05 14:44:44:969] / [INFO]	Checking connection
+[2026-05-05 14:44:44:970] / [DONE]	Successful connection to \\.\COM7[2026-05-05 14:44:45:86] / [INFO]	S serial.available = 16
+[2026-05-05 14:44:45:95] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 14:44:45:101] / [INFO]	Q serial.available = 23
+[2026-05-05 14:44:45:103] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 14:44:45:116] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 14:44:45:117] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-144904.log

@@ -0,0 +1,206 @@
+[2026-05-05 14:49:04:156] / [INFO]	Start...
+[2026-05-05 14:49:04:157] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 14:49:04:157] / [INFO]	Try to load file...
+[2026-05-05 14:49:04:157] / [OK]	External XML structure is OK
+[2026-05-05 14:49:04:157] / [DEBUG]	ParamCount = 10
+[2026-05-05 14:49:04:157] / [OK]	Internal structure of XML is OK
+[2026-05-05 14:49:04:158] / [DONE]	File loaded successfully
+[2026-05-05 14:49:04:158] / [INFO]	Creating synchronization program...
+[2026-05-05 14:49:04:158] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 14:49:04:158] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:49:04:159] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 14:49:04:162] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 14:49:04:165] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 14:49:04:166] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 14:49:04:168] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:49:04:170] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 14:49:04:172] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 14:49:04:173] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:49:04:176] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:49:04:177] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 14:49:04:179] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:49:04:181] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 14:49:04:182] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 14:49:04:184] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:49:04:186] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 14:49:04:187] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 14:49:04:189] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:49:04:192] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:49:04:193] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 14:49:04:195] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:49:04:197] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 14:49:04:199] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 14:49:04:200] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:49:04:203] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 14:49:04:204] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 14:49:04:206] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:49:04:207] / [DONE]	Events added
+[2026-05-05 14:49:04:209] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:49:04:211] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:49:04:212] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 14:49:04:224] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 14:49:04:231] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 14:49:04:232] / [INFO]	file fd = 1
+[2026-05-05 14:49:04:244] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 14:49:04:246] / [INFO]	Creating Serial object
+[2026-05-05 14:49:04:247] / [INFO]	Connecting to Serial object
+[2026-05-05 14:49:04:249] / [INFO]	Checking connection
+[2026-05-05 14:49:04:251] / [DONE]	Successful connection to \\.\COM7[2026-05-05 14:49:04:374] / [INFO]	S serial.available = 16
+[2026-05-05 14:49:04:379] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 14:49:04:383] / [INFO]	Q serial.available = 25
+[2026-05-05 14:49:04:385] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 14:49:04:396] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 14:49:04:397] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-145341.log

@@ -0,0 +1,206 @@
+[2026-05-05 14:53:41:807] / [INFO]	Start...
+[2026-05-05 14:53:41:807] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 14:53:41:808] / [INFO]	Try to load file...
+[2026-05-05 14:53:41:808] / [OK]	External XML structure is OK
+[2026-05-05 14:53:41:808] / [DEBUG]	ParamCount = 10
+[2026-05-05 14:53:41:808] / [OK]	Internal structure of XML is OK
+[2026-05-05 14:53:41:808] / [DONE]	File loaded successfully
+[2026-05-05 14:53:41:808] / [INFO]	Creating synchronization program...
+[2026-05-05 14:53:41:809] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 14:53:41:809] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:53:41:810] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 14:53:41:812] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 14:53:41:814] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 14:53:41:815] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 14:53:41:816] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:53:41:818] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 14:53:41:819] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 14:53:41:821] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:53:41:823] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:53:41:824] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 14:53:41:827] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:53:41:829] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 14:53:41:830] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 14:53:41:832] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:53:41:834] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 14:53:41:835] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 14:53:41:837] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:53:41:840] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:53:41:841] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 14:53:41:843] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:53:41:845] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 14:53:41:846] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 14:53:41:848] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:53:41:850] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 14:53:41:852] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 14:53:41:853] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:53:41:855] / [DONE]	Events added
+[2026-05-05 14:53:41:856] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:53:41:858] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:53:41:859] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 14:53:41:872] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 14:53:41:879] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 14:53:41:879] / [INFO]	file fd = 1
+[2026-05-05 14:53:41:891] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 14:53:41:892] / [INFO]	Creating Serial object
+[2026-05-05 14:53:41:894] / [INFO]	Connecting to Serial object
+[2026-05-05 14:53:41:896] / [INFO]	Checking connection
+[2026-05-05 14:53:41:898] / [DONE]	Successful connection to \\.\COM7[2026-05-05 14:53:42:7] / [INFO]	S serial.available = 16
+[2026-05-05 14:53:42:11] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 14:53:42:14] / [INFO]	Q serial.available = 23
+[2026-05-05 14:53:42:16] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 14:53:42:29] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 14:53:42:30] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-145847.log

@@ -0,0 +1,206 @@
+[2026-05-05 14:58:47:883] / [INFO]	Start...
+[2026-05-05 14:58:47:883] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 14:58:47:883] / [INFO]	Try to load file...
+[2026-05-05 14:58:47:884] / [OK]	External XML structure is OK
+[2026-05-05 14:58:47:884] / [DEBUG]	ParamCount = 10
+[2026-05-05 14:58:47:884] / [OK]	Internal structure of XML is OK
+[2026-05-05 14:58:47:884] / [DONE]	File loaded successfully
+[2026-05-05 14:58:47:884] / [INFO]	Creating synchronization program...
+[2026-05-05 14:58:47:885] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 14:58:47:885] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:58:47:887] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 14:58:47:889] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 14:58:47:890] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 14:58:47:892] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 14:58:47:893] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:58:47:895] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 14:58:47:897] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 14:58:47:899] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:58:47:901] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:58:47:902] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 14:58:47:904] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:58:47:906] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 14:58:47:907] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 14:58:47:909] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:58:47:911] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 14:58:47:912] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 14:58:47:915] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:58:47:917] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:58:47:918] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 14:58:47:920] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:58:47:923] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 14:58:47:924] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 14:58:47:926] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:58:47:928] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 14:58:47:930] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 14:58:47:932] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:58:47:933] / [DONE]	Events added
+[2026-05-05 14:58:47:935] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:58:47:936] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:58:47:938] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 14:58:47:950] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 14:58:47:957] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 14:58:47:958] / [INFO]	file fd = 1
+[2026-05-05 14:58:47:970] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 14:58:47:971] / [INFO]	Creating Serial object
+[2026-05-05 14:58:47:973] / [INFO]	Connecting to Serial object
+[2026-05-05 14:58:47:975] / [INFO]	Checking connection
+[2026-05-05 14:58:47:976] / [DONE]	Successful connection to \\.\COM7[2026-05-05 14:58:48:97] / [INFO]	S serial.available = 16
+[2026-05-05 14:58:48:103] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 14:58:48:107] / [INFO]	Q serial.available = 23
+[2026-05-05 14:58:48:109] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 14:58:48:122] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 14:58:48:122] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-145910.log

@@ -0,0 +1,206 @@
+[2026-05-05 14:59:10:626] / [INFO]	Start...
+[2026-05-05 14:59:10:626] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 14:59:10:626] / [INFO]	Try to load file...
+[2026-05-05 14:59:10:626] / [OK]	External XML structure is OK
+[2026-05-05 14:59:10:626] / [DEBUG]	ParamCount = 10
+[2026-05-05 14:59:10:627] / [OK]	Internal structure of XML is OK
+[2026-05-05 14:59:10:627] / [DONE]	File loaded successfully
+[2026-05-05 14:59:10:627] / [INFO]	Creating synchronization program...
+[2026-05-05 14:59:10:627] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 14:59:10:627] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:59:10:628] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 14:59:10:630] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 14:59:10:632] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 14:59:10:633] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 14:59:10:634] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:59:10:636] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 14:59:10:637] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 14:59:10:639] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:59:10:641] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:59:10:642] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 14:59:10:644] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:59:10:646] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 14:59:10:647] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 14:59:10:649] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:59:10:652] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 14:59:10:653] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 14:59:10:655] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:59:10:657] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:59:10:659] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 14:59:10:660] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:59:10:663] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 14:59:10:664] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 14:59:10:666] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:59:10:668] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 14:59:10:670] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 14:59:10:672] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:59:10:673] / [DONE]	Events added
+[2026-05-05 14:59:10:675] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:59:10:677] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:59:10:678] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 14:59:10:690] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 14:59:10:697] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 14:59:10:698] / [INFO]	file fd = 1
+[2026-05-05 14:59:10:709] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 14:59:10:711] / [INFO]	Creating Serial object
+[2026-05-05 14:59:10:712] / [INFO]	Connecting to Serial object
+[2026-05-05 14:59:10:714] / [INFO]	Checking connection
+[2026-05-05 14:59:10:716] / [DONE]	Successful connection to \\.\COM7[2026-05-05 14:59:10:830] / [INFO]	S serial.available = 16
+[2026-05-05 14:59:10:832] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 14:59:10:834] / [INFO]	Q serial.available = 23
+[2026-05-05 14:59:10:835] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 14:59:10:845] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 14:59:10:846] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-145926.log

@@ -0,0 +1,206 @@
+[2026-05-05 14:59:26:358] / [INFO]	Start...
+[2026-05-05 14:59:26:358] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 14:59:26:358] / [INFO]	Try to load file...
+[2026-05-05 14:59:26:358] / [OK]	External XML structure is OK
+[2026-05-05 14:59:26:358] / [DEBUG]	ParamCount = 10
+[2026-05-05 14:59:26:359] / [OK]	Internal structure of XML is OK
+[2026-05-05 14:59:26:359] / [DONE]	File loaded successfully
+[2026-05-05 14:59:26:359] / [INFO]	Creating synchronization program...
+[2026-05-05 14:59:26:359] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 14:59:26:359] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:59:26:360] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 14:59:26:363] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 14:59:26:365] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 14:59:26:366] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 14:59:26:368] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:59:26:371] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 14:59:26:372] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 14:59:26:374] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:59:26:376] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:59:26:377] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 14:59:26:378] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:59:26:380] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 14:59:26:382] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 14:59:26:384] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:59:26:386] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 14:59:26:388] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 14:59:26:389] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:59:26:392] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 14:59:26:393] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 14:59:26:395] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:59:26:397] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 14:59:26:399] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 14:59:26:401] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:59:26:403] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 14:59:26:404] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 14:59:26:406] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:59:26:407] / [DONE]	Events added
+[2026-05-05 14:59:26:409] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:59:26:411] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 14:59:26:412] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 14:59:26:424] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 14:59:26:431] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 14:59:26:432] / [INFO]	file fd = 1
+[2026-05-05 14:59:26:443] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 14:59:26:444] / [INFO]	Creating Serial object
+[2026-05-05 14:59:26:446] / [INFO]	Connecting to Serial object
+[2026-05-05 14:59:26:448] / [INFO]	Checking connection
+[2026-05-05 14:59:26:450] / [DONE]	Successful connection to \\.\COM7[2026-05-05 14:59:26:566] / [INFO]	S serial.available = 16
+[2026-05-05 14:59:26:570] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 14:59:26:574] / [INFO]	Q serial.available = 23
+[2026-05-05 14:59:26:576] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 14:59:26:589] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 14:59:26:590] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-150330.log

@@ -0,0 +1,206 @@
+[2026-05-05 15:03:30:60] / [INFO]	Start...
+[2026-05-05 15:03:30:60] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 15:03:30:60] / [INFO]	Try to load file...
+[2026-05-05 15:03:30:61] / [OK]	External XML structure is OK
+[2026-05-05 15:03:30:61] / [DEBUG]	ParamCount = 10
+[2026-05-05 15:03:30:61] / [OK]	Internal structure of XML is OK
+[2026-05-05 15:03:30:61] / [DONE]	File loaded successfully
+[2026-05-05 15:03:30:61] / [INFO]	Creating synchronization program...
+[2026-05-05 15:03:30:61] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 15:03:30:62] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 15:03:30:63] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 15:03:30:65] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 15:03:30:67] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 15:03:30:69] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 15:03:30:70] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:03:30:72] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 15:03:30:74] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 15:03:30:76] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:03:30:78] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 15:03:30:79] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 15:03:30:81] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:03:30:83] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 15:03:30:85] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 15:03:30:86] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:03:30:88] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 15:03:30:90] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 15:03:30:92] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:03:30:94] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 15:03:30:96] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 15:03:30:97] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:03:30:99] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 15:03:30:101] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 15:03:30:102] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:03:30:105] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 15:03:30:106] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 15:03:30:108] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:03:30:109] / [DONE]	Events added
+[2026-05-05 15:03:30:111] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:03:30:113] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:03:30:114] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 15:03:30:127] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 15:03:30:135] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 15:03:30:136] / [INFO]	file fd = 1
+[2026-05-05 15:03:30:151] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 15:03:30:153] / [INFO]	Creating Serial object
+[2026-05-05 15:03:30:155] / [INFO]	Connecting to Serial object
+[2026-05-05 15:03:30:158] / [INFO]	Checking connection
+[2026-05-05 15:03:30:160] / [DONE]	Successful connection to \\.\COM7[2026-05-05 15:03:30:276] / [INFO]	S serial.available = 16
+[2026-05-05 15:03:30:281] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 15:03:30:284] / [INFO]	Q serial.available = 23
+[2026-05-05 15:03:30:287] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 15:03:30:298] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 15:03:30:299] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-150355.log

@@ -0,0 +1,206 @@
+[2026-05-05 15:03:55:968] / [INFO]	Start...
+[2026-05-05 15:03:55:968] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 15:03:55:968] / [INFO]	Try to load file...
+[2026-05-05 15:03:55:968] / [OK]	External XML structure is OK
+[2026-05-05 15:03:55:968] / [DEBUG]	ParamCount = 10
+[2026-05-05 15:03:55:969] / [OK]	Internal structure of XML is OK
+[2026-05-05 15:03:55:969] / [DONE]	File loaded successfully
+[2026-05-05 15:03:55:969] / [INFO]	Creating synchronization program...
+[2026-05-05 15:03:55:969] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 15:03:55:969] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 15:03:55:970] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 15:03:55:973] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 15:03:55:974] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 15:03:55:975] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 15:03:55:977] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:03:55:979] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 15:03:55:981] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 15:03:55:982] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:03:55:985] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 15:03:55:986] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 15:03:55:988] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:03:55:990] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 15:03:55:991] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 15:03:55:993] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:03:55:995] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 15:03:55:997] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 15:03:55:998] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:03:56:1] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 15:03:56:2] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 15:03:56:3] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:03:56:6] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 15:03:56:7] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 15:03:56:8] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:03:56:11] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 15:03:56:13] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 15:03:56:14] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:03:56:15] / [DONE]	Events added
+[2026-05-05 15:03:56:19] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:03:56:20] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:03:56:22] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 15:03:56:33] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 15:03:56:41] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 15:03:56:42] / [INFO]	file fd = 1
+[2026-05-05 15:03:56:55] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 15:03:56:57] / [INFO]	Creating Serial object
+[2026-05-05 15:03:56:59] / [INFO]	Connecting to Serial object
+[2026-05-05 15:03:56:62] / [INFO]	Checking connection
+[2026-05-05 15:03:56:64] / [DONE]	Successful connection to \\.\COM7[2026-05-05 15:03:56:178] / [INFO]	S serial.available = 16
+[2026-05-05 15:03:56:182] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 15:03:56:185] / [INFO]	Q serial.available = 23
+[2026-05-05 15:03:56:187] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 15:03:56:200] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 15:03:56:200] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-150655.log

@@ -0,0 +1,206 @@
+[2026-05-05 15:06:55:986] / [INFO]	Start...
+[2026-05-05 15:06:55:987] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 15:06:55:987] / [INFO]	Try to load file...
+[2026-05-05 15:06:55:987] / [OK]	External XML structure is OK
+[2026-05-05 15:06:55:987] / [DEBUG]	ParamCount = 10
+[2026-05-05 15:06:55:987] / [OK]	Internal structure of XML is OK
+[2026-05-05 15:06:55:987] / [DONE]	File loaded successfully
+[2026-05-05 15:06:55:987] / [INFO]	Creating synchronization program...
+[2026-05-05 15:06:55:988] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 15:06:55:988] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 15:06:55:989] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 15:06:55:992] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 15:06:55:994] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 15:06:55:996] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 15:06:55:997] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:06:56:0] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 15:06:56:1] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 15:06:56:3] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:06:56:5] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 15:06:56:6] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 15:06:56:7] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:06:56:10] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 15:06:56:11] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 15:06:56:12] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:06:56:15] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 15:06:56:16] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 15:06:56:18] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:06:56:20] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 15:06:56:22] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 15:06:56:24] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:06:56:26] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 15:06:56:27] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 15:06:56:29] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:06:56:31] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 15:06:56:33] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 15:06:56:35] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:06:56:36] / [DONE]	Events added
+[2026-05-05 15:06:56:38] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:06:56:39] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:06:56:41] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 15:06:56:53] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 15:06:56:60] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 15:06:56:61] / [INFO]	file fd = 1
+[2026-05-05 15:06:56:74] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 15:06:56:75] / [INFO]	Creating Serial object
+[2026-05-05 15:06:56:76] / [INFO]	Connecting to Serial object
+[2026-05-05 15:06:56:79] / [INFO]	Checking connection
+[2026-05-05 15:06:56:80] / [DONE]	Successful connection to \\.\COM7[2026-05-05 15:06:56:201] / [INFO]	S serial.available = 16
+[2026-05-05 15:06:56:207] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 15:06:56:211] / [INFO]	Q serial.available = 23
+[2026-05-05 15:06:56:214] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 15:06:56:225] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 15:06:56:226] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-150902.log

@@ -0,0 +1,206 @@
+[2026-05-05 15:09:02:820] / [INFO]	Start...
+[2026-05-05 15:09:02:820] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 15:09:02:821] / [INFO]	Try to load file...
+[2026-05-05 15:09:02:821] / [OK]	External XML structure is OK
+[2026-05-05 15:09:02:821] / [DEBUG]	ParamCount = 10
+[2026-05-05 15:09:02:821] / [OK]	Internal structure of XML is OK
+[2026-05-05 15:09:02:821] / [DONE]	File loaded successfully
+[2026-05-05 15:09:02:822] / [INFO]	Creating synchronization program...
+[2026-05-05 15:09:02:822] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 15:09:02:822] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 15:09:02:823] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 15:09:02:825] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 15:09:02:827] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 15:09:02:828] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 15:09:02:830] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:09:02:832] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 15:09:02:833] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 15:09:02:835] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:09:02:837] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 15:09:02:838] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 15:09:02:840] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:09:02:843] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 15:09:02:844] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 15:09:02:846] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:09:02:848] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 15:09:02:849] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 15:09:02:851] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:09:02:854] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 15:09:02:855] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 15:09:02:857] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:09:02:859] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 15:09:02:860] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 15:09:02:862] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:09:02:865] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 15:09:02:866] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 15:09:02:868] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:09:02:869] / [DONE]	Events added
+[2026-05-05 15:09:02:870] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:09:02:872] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:09:02:874] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 15:09:02:885] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 15:09:02:893] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 15:09:02:894] / [INFO]	file fd = 1
+[2026-05-05 15:09:02:906] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 15:09:02:907] / [INFO]	Creating Serial object
+[2026-05-05 15:09:02:909] / [INFO]	Connecting to Serial object
+[2026-05-05 15:09:02:911] / [INFO]	Checking connection
+[2026-05-05 15:09:02:912] / [DONE]	Successful connection to \\.\COM7[2026-05-05 15:09:03:34] / [INFO]	S serial.available = 16
+[2026-05-05 15:09:03:38] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 15:09:03:40] / [INFO]	Q serial.available = 23
+[2026-05-05 15:09:03:42] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 15:09:03:56] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 15:09:03:57] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-151028.log

@@ -0,0 +1,206 @@
+[2026-05-05 15:10:28:344] / [INFO]	Start...
+[2026-05-05 15:10:28:344] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 15:10:28:344] / [INFO]	Try to load file...
+[2026-05-05 15:10:28:345] / [OK]	External XML structure is OK
+[2026-05-05 15:10:28:345] / [DEBUG]	ParamCount = 10
+[2026-05-05 15:10:28:345] / [OK]	Internal structure of XML is OK
+[2026-05-05 15:10:28:345] / [DONE]	File loaded successfully
+[2026-05-05 15:10:28:345] / [INFO]	Creating synchronization program...
+[2026-05-05 15:10:28:346] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 15:10:28:346] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 15:10:28:347] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 15:10:28:349] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 15:10:28:352] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 15:10:28:353] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 15:10:28:354] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:10:28:360] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 15:10:28:361] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 15:10:28:364] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:10:28:366] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 15:10:28:368] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 15:10:28:370] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:10:28:372] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 15:10:28:373] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 15:10:28:377] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:10:28:380] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 15:10:28:381] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 15:10:28:383] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:10:28:386] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 15:10:28:387] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 15:10:28:389] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:10:28:391] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 15:10:28:393] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 15:10:28:395] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:10:28:397] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 15:10:28:399] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 15:10:28:401] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:10:28:402] / [DONE]	Events added
+[2026-05-05 15:10:28:404] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:10:28:405] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:10:28:407] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 15:10:28:420] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 15:10:28:431] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 15:10:28:431] / [INFO]	file fd = 1
+[2026-05-05 15:10:28:449] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 15:10:28:450] / [INFO]	Creating Serial object
+[2026-05-05 15:10:28:452] / [INFO]	Connecting to Serial object
+[2026-05-05 15:10:28:454] / [INFO]	Checking connection
+[2026-05-05 15:10:28:455] / [DONE]	Successful connection to \\.\COM7[2026-05-05 15:10:28:562] / [INFO]	S serial.available = 16
+[2026-05-05 15:10:28:565] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 15:10:28:573] / [INFO]	Q serial.available = 0
+[2026-05-05 15:10:28:576] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 15:10:28:591] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 15:10:28:594] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-151042.log

@@ -0,0 +1,206 @@
+[2026-05-05 15:10:42:136] / [INFO]	Start...
+[2026-05-05 15:10:42:142] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 15:10:42:143] / [INFO]	Try to load file...
+[2026-05-05 15:10:42:151] / [OK]	External XML structure is OK
+[2026-05-05 15:10:42:152] / [DEBUG]	ParamCount = 10
+[2026-05-05 15:10:42:154] / [OK]	Internal structure of XML is OK
+[2026-05-05 15:10:42:155] / [DONE]	File loaded successfully
+[2026-05-05 15:10:42:158] / [INFO]	Creating synchronization program...
+[2026-05-05 15:10:42:159] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 15:10:42:160] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 15:10:42:167] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 15:10:42:180] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 15:10:42:183] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 15:10:42:184] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 15:10:42:185] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:10:42:188] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 15:10:42:189] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 15:10:42:191] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:10:42:193] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 15:10:42:195] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 15:10:42:196] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:10:42:198] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 15:10:42:199] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 15:10:42:201] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:10:42:203] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 15:10:42:204] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 15:10:42:206] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:10:42:208] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 15:10:42:209] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 15:10:42:211] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:10:42:213] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 15:10:42:214] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 15:10:42:216] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:10:42:218] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 15:10:42:219] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 15:10:42:220] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:10:42:221] / [DONE]	Events added
+[2026-05-05 15:10:42:223] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:10:42:224] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:10:42:228] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 15:10:42:241] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 15:10:42:250] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 15:10:42:250] / [INFO]	file fd = 1
+[2026-05-05 15:10:42:264] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 15:10:42:266] / [INFO]	Creating Serial object
+[2026-05-05 15:10:42:267] / [INFO]	Connecting to Serial object
+[2026-05-05 15:10:42:269] / [INFO]	Checking connection
+[2026-05-05 15:10:42:271] / [DONE]	Successful connection to \\.\COM7[2026-05-05 15:10:42:384] / [INFO]	S serial.available = 16
+[2026-05-05 15:10:42:394] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 15:10:42:396] / [INFO]	Q serial.available = 23
+[2026-05-05 15:10:42:398] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 15:10:42:413] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 15:10:42:414] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-151100.log

@@ -0,0 +1,206 @@
+[2026-05-05 15:11:00:170] / [INFO]	Start...
+[2026-05-05 15:11:00:171] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 15:11:00:171] / [INFO]	Try to load file...
+[2026-05-05 15:11:00:171] / [OK]	External XML structure is OK
+[2026-05-05 15:11:00:171] / [DEBUG]	ParamCount = 10
+[2026-05-05 15:11:00:171] / [OK]	Internal structure of XML is OK
+[2026-05-05 15:11:00:171] / [DONE]	File loaded successfully
+[2026-05-05 15:11:00:172] / [INFO]	Creating synchronization program...
+[2026-05-05 15:11:00:172] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 15:11:00:172] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 15:11:00:173] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 15:11:00:178] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 15:11:00:180] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 15:11:00:182] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 15:11:00:184] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:11:00:186] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 15:11:00:188] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 15:11:00:189] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:11:00:192] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 15:11:00:195] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 15:11:00:197] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:11:00:199] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 15:11:00:201] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 15:11:00:203] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:11:00:205] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 15:11:00:206] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 15:11:00:208] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:11:00:212] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 15:11:00:214] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 15:11:00:215] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:11:00:217] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 15:11:00:219] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 15:11:00:220] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:11:00:222] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 15:11:00:223] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 15:11:00:225] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:11:00:228] / [DONE]	Events added
+[2026-05-05 15:11:00:230] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:11:00:231] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:11:00:233] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 15:11:00:250] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 15:11:00:265] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 15:11:00:266] / [INFO]	file fd = 1
+[2026-05-05 15:11:00:281] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 15:11:00:282] / [INFO]	Creating Serial object
+[2026-05-05 15:11:00:284] / [INFO]	Connecting to Serial object
+[2026-05-05 15:11:00:286] / [INFO]	Checking connection
+[2026-05-05 15:11:00:287] / [DONE]	Successful connection to \\.\COM7[2026-05-05 15:11:00:401] / [INFO]	S serial.available = 16
+[2026-05-05 15:11:00:403] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 15:11:00:411] / [INFO]	Q serial.available = 23
+[2026-05-05 15:11:00:413] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 15:11:00:428] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 15:11:00:429] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-155845.log

@@ -0,0 +1,206 @@
+[2026-05-05 15:58:45:881] / [INFO]	Start...
+[2026-05-05 15:58:45:881] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 15:58:45:881] / [INFO]	Try to load file...
+[2026-05-05 15:58:45:882] / [OK]	External XML structure is OK
+[2026-05-05 15:58:45:882] / [DEBUG]	ParamCount = 10
+[2026-05-05 15:58:45:882] / [OK]	Internal structure of XML is OK
+[2026-05-05 15:58:45:883] / [DONE]	File loaded successfully
+[2026-05-05 15:58:45:883] / [INFO]	Creating synchronization program...
+[2026-05-05 15:58:45:883] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 15:58:45:883] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 15:58:45:884] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 15:58:45:887] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 15:58:45:889] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 15:58:45:890] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 15:58:45:892] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:58:45:895] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 15:58:45:896] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 15:58:45:898] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:58:45:900] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 15:58:45:901] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 15:58:45:903] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:58:45:905] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 15:58:45:906] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 15:58:45:907] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:58:45:909] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 15:58:45:911] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 15:58:45:912] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:58:45:915] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 15:58:45:916] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 15:58:45:918] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:58:45:920] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 15:58:45:921] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 15:58:45:923] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:58:45:925] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 15:58:45:927] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 15:58:45:928] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:58:45:929] / [DONE]	Events added
+[2026-05-05 15:58:45:931] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:58:45:933] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:58:45:934] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 15:58:45:946] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 15:58:45:953] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 15:58:45:954] / [INFO]	file fd = 1
+[2026-05-05 15:58:45:966] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 15:58:45:967] / [INFO]	Creating Serial object
+[2026-05-05 15:58:45:969] / [INFO]	Connecting to Serial object
+[2026-05-05 15:58:45:971] / [INFO]	Checking connection
+[2026-05-05 15:58:45:972] / [DONE]	Successful connection to \\.\COM7[2026-05-05 15:58:46:93] / [INFO]	S serial.available = 16
+[2026-05-05 15:58:46:98] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 15:58:46:102] / [INFO]	Q serial.available = 23
+[2026-05-05 15:58:46:105] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 15:58:46:118] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 15:58:46:119] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-155924.log

@@ -0,0 +1,206 @@
+[2026-05-05 15:59:24:530] / [INFO]	Start...
+[2026-05-05 15:59:24:530] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 15:59:24:530] / [INFO]	Try to load file...
+[2026-05-05 15:59:24:530] / [OK]	External XML structure is OK
+[2026-05-05 15:59:24:530] / [DEBUG]	ParamCount = 10
+[2026-05-05 15:59:24:530] / [OK]	Internal structure of XML is OK
+[2026-05-05 15:59:24:531] / [DONE]	File loaded successfully
+[2026-05-05 15:59:24:531] / [INFO]	Creating synchronization program...
+[2026-05-05 15:59:24:531] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 15:59:24:531] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 15:59:24:533] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 15:59:24:535] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 15:59:24:537] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 15:59:24:539] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 15:59:24:541] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:59:24:544] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 15:59:24:545] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 15:59:24:547] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:59:24:549] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 15:59:24:550] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 15:59:24:552] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:59:24:555] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 15:59:24:556] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 15:59:24:558] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:59:24:561] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 15:59:24:562] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 15:59:24:564] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:59:24:566] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 15:59:24:568] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 15:59:24:570] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:59:24:572] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 15:59:24:573] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 15:59:24:575] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:59:24:578] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 15:59:24:579] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 15:59:24:581] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:59:24:582] / [DONE]	Events added
+[2026-05-05 15:59:24:584] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:59:24:585] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 15:59:24:587] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 15:59:24:599] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 15:59:24:606] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 15:59:24:607] / [INFO]	file fd = 1
+[2026-05-05 15:59:24:620] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 15:59:24:622] / [INFO]	Creating Serial object
+[2026-05-05 15:59:24:623] / [INFO]	Connecting to Serial object
+[2026-05-05 15:59:24:626] / [INFO]	Checking connection
+[2026-05-05 15:59:24:627] / [DONE]	Successful connection to \\.\COM7[2026-05-05 15:59:24:749] / [INFO]	S serial.available = 16
+[2026-05-05 15:59:24:754] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 15:59:24:757] / [INFO]	Q serial.available = 23
+[2026-05-05 15:59:24:760] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 15:59:24:773] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 15:59:24:774] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-160349.log

@@ -0,0 +1,206 @@
+[2026-05-05 16:03:49:617] / [INFO]	Start...
+[2026-05-05 16:03:49:617] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 16:03:49:617] / [INFO]	Try to load file...
+[2026-05-05 16:03:49:617] / [OK]	External XML structure is OK
+[2026-05-05 16:03:49:617] / [DEBUG]	ParamCount = 10
+[2026-05-05 16:03:49:618] / [OK]	Internal structure of XML is OK
+[2026-05-05 16:03:49:618] / [DONE]	File loaded successfully
+[2026-05-05 16:03:49:618] / [INFO]	Creating synchronization program...
+[2026-05-05 16:03:49:618] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 16:03:49:618] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:03:49:620] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 16:03:49:622] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 16:03:49:625] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:03:49:626] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 16:03:49:628] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:03:49:630] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:03:49:631] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 16:03:49:633] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:03:49:635] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:03:49:637] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 16:03:49:638] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:03:49:641] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:03:49:642] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 16:03:49:644] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:03:49:646] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:03:49:647] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 16:03:49:649] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:03:49:651] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:03:49:652] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 16:03:49:654] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:03:49:656] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:03:49:658] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 16:03:49:659] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:03:49:661] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:03:49:663] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 16:03:49:665] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:03:49:666] / [DONE]	Events added
+[2026-05-05 16:03:49:667] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:03:49:669] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:03:49:671] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 16:03:49:682] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 16:03:49:689] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 16:03:49:690] / [INFO]	file fd = 1
+[2026-05-05 16:03:49:701] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 16:03:49:703] / [INFO]	Creating Serial object
+[2026-05-05 16:03:49:705] / [INFO]	Connecting to Serial object
+[2026-05-05 16:03:49:707] / [INFO]	Checking connection
+[2026-05-05 16:03:49:708] / [DONE]	Successful connection to \\.\COM7[2026-05-05 16:03:49:822] / [INFO]	S serial.available = 16
+[2026-05-05 16:03:49:828] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 16:03:49:832] / [INFO]	Q serial.available = 23
+[2026-05-05 16:03:49:834] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 16:03:49:847] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 16:03:49:848] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-160439.log

@@ -0,0 +1,206 @@
+[2026-05-05 16:04:39:106] / [INFO]	Start...
+[2026-05-05 16:04:39:106] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 16:04:39:106] / [INFO]	Try to load file...
+[2026-05-05 16:04:39:107] / [OK]	External XML structure is OK
+[2026-05-05 16:04:39:107] / [DEBUG]	ParamCount = 10
+[2026-05-05 16:04:39:107] / [OK]	Internal structure of XML is OK
+[2026-05-05 16:04:39:107] / [DONE]	File loaded successfully
+[2026-05-05 16:04:39:107] / [INFO]	Creating synchronization program...
+[2026-05-05 16:04:39:107] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 16:04:39:107] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:04:39:109] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 16:04:39:111] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 16:04:39:113] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:04:39:115] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 16:04:39:117] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:04:39:119] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:04:39:120] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 16:04:39:122] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:04:39:125] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:04:39:127] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 16:04:39:128] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:04:39:130] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:04:39:132] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 16:04:39:133] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:04:39:135] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:04:39:137] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 16:04:39:139] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:04:39:141] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:04:39:143] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 16:04:39:144] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:04:39:147] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:04:39:148] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 16:04:39:150] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:04:39:152] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:04:39:154] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 16:04:39:156] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:04:39:157] / [DONE]	Events added
+[2026-05-05 16:04:39:158] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:04:39:160] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:04:39:162] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 16:04:39:173] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 16:04:39:180] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 16:04:39:181] / [INFO]	file fd = 1
+[2026-05-05 16:04:39:192] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 16:04:39:194] / [INFO]	Creating Serial object
+[2026-05-05 16:04:39:195] / [INFO]	Connecting to Serial object
+[2026-05-05 16:04:39:198] / [INFO]	Checking connection
+[2026-05-05 16:04:39:199] / [DONE]	Successful connection to \\.\COM7[2026-05-05 16:04:39:307] / [INFO]	S serial.available = 16
+[2026-05-05 16:04:39:309] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 16:04:39:311] / [INFO]	Q serial.available = 23
+[2026-05-05 16:04:39:314] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 16:04:39:327] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 16:04:39:328] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-160627.log

@@ -0,0 +1,206 @@
+[2026-05-05 16:06:27:541] / [INFO]	Start...
+[2026-05-05 16:06:27:542] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 16:06:27:542] / [INFO]	Try to load file...
+[2026-05-05 16:06:27:542] / [OK]	External XML structure is OK
+[2026-05-05 16:06:27:542] / [DEBUG]	ParamCount = 10
+[2026-05-05 16:06:27:543] / [OK]	Internal structure of XML is OK
+[2026-05-05 16:06:27:543] / [DONE]	File loaded successfully
+[2026-05-05 16:06:27:543] / [INFO]	Creating synchronization program...
+[2026-05-05 16:06:27:543] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 16:06:27:544] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:06:27:545] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 16:06:27:547] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 16:06:27:550] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:06:27:551] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 16:06:27:553] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:06:27:555] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:06:27:556] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 16:06:27:558] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:06:27:561] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:06:27:562] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 16:06:27:564] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:06:27:566] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:06:27:567] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 16:06:27:569] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:06:27:571] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:06:27:572] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 16:06:27:574] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:06:27:576] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:06:27:578] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 16:06:27:580] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:06:27:582] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:06:27:583] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 16:06:27:585] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:06:27:588] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:06:27:589] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 16:06:27:591] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:06:27:592] / [DONE]	Events added
+[2026-05-05 16:06:27:594] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:06:27:596] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:06:27:597] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 16:06:27:609] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 16:06:27:616] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 16:06:27:618] / [INFO]	file fd = 1
+[2026-05-05 16:06:27:630] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 16:06:27:631] / [INFO]	Creating Serial object
+[2026-05-05 16:06:27:633] / [INFO]	Connecting to Serial object
+[2026-05-05 16:06:27:635] / [INFO]	Checking connection
+[2026-05-05 16:06:27:636] / [DONE]	Successful connection to \\.\COM7[2026-05-05 16:06:27:739] / [INFO]	S serial.available = 16
+[2026-05-05 16:06:27:741] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 16:06:27:743] / [INFO]	Q serial.available = 0
+[2026-05-05 16:06:27:744] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 16:06:27:756] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 16:06:27:757] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-160740.log

@@ -0,0 +1,206 @@
+[2026-05-05 16:07:40:706] / [INFO]	Start...
+[2026-05-05 16:07:40:706] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 16:07:40:706] / [INFO]	Try to load file...
+[2026-05-05 16:07:40:706] / [OK]	External XML structure is OK
+[2026-05-05 16:07:40:706] / [DEBUG]	ParamCount = 10
+[2026-05-05 16:07:40:706] / [OK]	Internal structure of XML is OK
+[2026-05-05 16:07:40:707] / [DONE]	File loaded successfully
+[2026-05-05 16:07:40:707] / [INFO]	Creating synchronization program...
+[2026-05-05 16:07:40:707] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 16:07:40:707] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:07:40:708] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 16:07:40:711] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 16:07:40:714] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:07:40:715] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 16:07:40:717] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:07:40:719] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:07:40:721] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 16:07:40:722] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:07:40:725] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:07:40:726] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 16:07:40:728] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:07:40:730] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:07:40:732] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 16:07:40:733] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:07:40:736] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:07:40:737] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 16:07:40:739] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:07:40:741] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:07:40:742] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 16:07:40:744] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:07:40:746] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:07:40:747] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 16:07:40:749] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:07:40:751] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:07:40:753] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 16:07:40:754] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:07:40:755] / [DONE]	Events added
+[2026-05-05 16:07:40:757] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:07:40:759] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:07:40:760] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 16:07:40:772] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 16:07:40:779] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 16:07:40:780] / [INFO]	file fd = 1
+[2026-05-05 16:07:40:791] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 16:07:40:793] / [INFO]	Creating Serial object
+[2026-05-05 16:07:40:794] / [INFO]	Connecting to Serial object
+[2026-05-05 16:07:40:797] / [INFO]	Checking connection
+[2026-05-05 16:07:40:798] / [DONE]	Successful connection to \\.\COM7[2026-05-05 16:07:40:909] / [INFO]	S serial.available = 16
+[2026-05-05 16:07:40:914] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 16:07:40:917] / [INFO]	Q serial.available = 23
+[2026-05-05 16:07:40:919] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 16:07:40:931] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 16:07:40:932] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-161009.log

@@ -0,0 +1,206 @@
+[2026-05-05 16:10:09:320] / [INFO]	Start...
+[2026-05-05 16:10:09:320] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 16:10:09:320] / [INFO]	Try to load file...
+[2026-05-05 16:10:09:320] / [OK]	External XML structure is OK
+[2026-05-05 16:10:09:321] / [DEBUG]	ParamCount = 10
+[2026-05-05 16:10:09:321] / [OK]	Internal structure of XML is OK
+[2026-05-05 16:10:09:321] / [DONE]	File loaded successfully
+[2026-05-05 16:10:09:321] / [INFO]	Creating synchronization program...
+[2026-05-05 16:10:09:321] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 16:10:09:321] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:10:09:323] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 16:10:09:325] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 16:10:09:328] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:10:09:329] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 16:10:09:331] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:10:09:333] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:10:09:334] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 16:10:09:336] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:10:09:339] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:10:09:340] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 16:10:09:342] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:10:09:344] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:10:09:346] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 16:10:09:347] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:10:09:350] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:10:09:351] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 16:10:09:353] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:10:09:355] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:10:09:356] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 16:10:09:358] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:10:09:361] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:10:09:362] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 16:10:09:364] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:10:09:366] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:10:09:368] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 16:10:09:369] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:10:09:371] / [DONE]	Events added
+[2026-05-05 16:10:09:373] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:10:09:374] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:10:09:376] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 16:10:09:388] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 16:10:09:395] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 16:10:09:395] / [INFO]	file fd = 1
+[2026-05-05 16:10:09:407] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 16:10:09:408] / [INFO]	Creating Serial object
+[2026-05-05 16:10:09:410] / [INFO]	Connecting to Serial object
+[2026-05-05 16:10:09:412] / [INFO]	Checking connection
+[2026-05-05 16:10:09:414] / [DONE]	Successful connection to \\.\COM7[2026-05-05 16:10:09:535] / [INFO]	S serial.available = 16
+[2026-05-05 16:10:09:539] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 16:10:09:543] / [INFO]	Q serial.available = 23
+[2026-05-05 16:10:09:545] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 16:10:09:558] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 16:10:09:559] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-161414.log

@@ -0,0 +1,206 @@
+[2026-05-05 16:14:14:929] / [INFO]	Start...
+[2026-05-05 16:14:14:929] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 16:14:14:930] / [INFO]	Try to load file...
+[2026-05-05 16:14:14:930] / [OK]	External XML structure is OK
+[2026-05-05 16:14:14:930] / [DEBUG]	ParamCount = 10
+[2026-05-05 16:14:14:930] / [OK]	Internal structure of XML is OK
+[2026-05-05 16:14:14:930] / [DONE]	File loaded successfully
+[2026-05-05 16:14:14:930] / [INFO]	Creating synchronization program...
+[2026-05-05 16:14:14:931] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 16:14:14:931] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:14:14:932] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 16:14:14:935] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 16:14:14:937] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:14:14:938] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 16:14:14:940] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:14:14:942] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:14:14:944] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 16:14:14:946] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:14:14:948] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:14:14:949] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 16:14:14:951] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:14:14:953] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:14:14:954] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 16:14:14:956] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:14:14:958] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:14:14:960] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 16:14:14:962] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:14:14:964] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:14:14:965] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 16:14:14:967] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:14:14:970] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:14:14:971] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 16:14:14:973] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:14:14:975] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:14:14:977] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 16:14:14:978] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:14:14:980] / [DONE]	Events added
+[2026-05-05 16:14:14:982] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:14:14:984] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:14:14:986] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 16:14:15:2] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 16:14:15:11] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 16:14:15:12] / [INFO]	file fd = 1
+[2026-05-05 16:14:15:24] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 16:14:15:26] / [INFO]	Creating Serial object
+[2026-05-05 16:14:15:27] / [INFO]	Connecting to Serial object
+[2026-05-05 16:14:15:30] / [INFO]	Checking connection
+[2026-05-05 16:14:15:31] / [DONE]	Successful connection to \\.\COM7[2026-05-05 16:14:15:145] / [INFO]	S serial.available = 16
+[2026-05-05 16:14:15:148] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 16:14:15:152] / [INFO]	Q serial.available = 0
+[2026-05-05 16:14:15:153] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 16:14:15:164] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 16:14:15:165] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-161814.log

@@ -0,0 +1,206 @@
+[2026-05-05 16:18:14:573] / [INFO]	Start...
+[2026-05-05 16:18:14:573] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 16:18:14:573] / [INFO]	Try to load file...
+[2026-05-05 16:18:14:573] / [OK]	External XML structure is OK
+[2026-05-05 16:18:14:574] / [DEBUG]	ParamCount = 10
+[2026-05-05 16:18:14:574] / [OK]	Internal structure of XML is OK
+[2026-05-05 16:18:14:574] / [DONE]	File loaded successfully
+[2026-05-05 16:18:14:574] / [INFO]	Creating synchronization program...
+[2026-05-05 16:18:14:574] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 16:18:14:574] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:18:14:575] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 16:18:14:578] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 16:18:14:580] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:18:14:582] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 16:18:14:584] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:18:14:586] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:18:14:588] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 16:18:14:589] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:18:14:591] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:18:14:593] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 16:18:14:594] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:18:14:596] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:18:14:598] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 16:18:14:599] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:18:14:602] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:18:14:603] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 16:18:14:605] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:18:14:607] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:18:14:608] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 16:18:14:610] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:18:14:613] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:18:14:614] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 16:18:14:616] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:18:14:618] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:18:14:619] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 16:18:14:621] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:18:14:622] / [DONE]	Events added
+[2026-05-05 16:18:14:624] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:18:14:626] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:18:14:628] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 16:18:14:639] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 16:18:14:646] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 16:18:14:647] / [INFO]	file fd = 1
+[2026-05-05 16:18:14:659] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 16:18:14:660] / [INFO]	Creating Serial object
+[2026-05-05 16:18:14:661] / [INFO]	Connecting to Serial object
+[2026-05-05 16:18:14:664] / [INFO]	Checking connection
+[2026-05-05 16:18:14:665] / [DONE]	Successful connection to \\.\COM7[2026-05-05 16:18:14:776] / [INFO]	S serial.available = 16
+[2026-05-05 16:18:14:780] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 16:18:14:783] / [INFO]	Q serial.available = 0
+[2026-05-05 16:18:14:785] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 16:18:14:798] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 16:18:14:798] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-161923.log

@@ -0,0 +1,206 @@
+[2026-05-05 16:19:23:471] / [INFO]	Start...
+[2026-05-05 16:19:23:471] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 16:19:23:471] / [INFO]	Try to load file...
+[2026-05-05 16:19:23:472] / [OK]	External XML structure is OK
+[2026-05-05 16:19:23:472] / [DEBUG]	ParamCount = 10
+[2026-05-05 16:19:23:472] / [OK]	Internal structure of XML is OK
+[2026-05-05 16:19:23:472] / [DONE]	File loaded successfully
+[2026-05-05 16:19:23:472] / [INFO]	Creating synchronization program...
+[2026-05-05 16:19:23:472] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 16:19:23:473] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:19:23:474] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 16:19:23:477] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 16:19:23:479] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:19:23:480] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 16:19:23:482] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:19:23:484] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:19:23:485] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 16:19:23:487] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:19:23:489] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:19:23:491] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 16:19:23:493] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:19:23:495] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:19:23:496] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 16:19:23:498] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:19:23:500] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:19:23:501] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 16:19:23:502] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:19:23:504] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:19:23:506] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 16:19:23:507] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:19:23:510] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:19:23:511] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 16:19:23:513] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:19:23:515] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:19:23:516] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 16:19:23:518] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:19:23:519] / [DONE]	Events added
+[2026-05-05 16:19:23:521] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:19:23:523] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:19:23:525] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 16:19:23:536] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 16:19:23:543] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 16:19:23:543] / [INFO]	file fd = 1
+[2026-05-05 16:19:23:554] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 16:19:23:556] / [INFO]	Creating Serial object
+[2026-05-05 16:19:23:558] / [INFO]	Connecting to Serial object
+[2026-05-05 16:19:23:560] / [INFO]	Checking connection
+[2026-05-05 16:19:23:561] / [DONE]	Successful connection to \\.\COM7[2026-05-05 16:19:23:675] / [INFO]	S serial.available = 16
+[2026-05-05 16:19:23:680] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 16:19:23:684] / [INFO]	Q serial.available = 0
+[2026-05-05 16:19:23:686] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 16:19:23:698] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 16:19:23:698] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-162045.log

@@ -0,0 +1,206 @@
+[2026-05-05 16:20:45:827] / [INFO]	Start...
+[2026-05-05 16:20:45:827] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 16:20:45:827] / [INFO]	Try to load file...
+[2026-05-05 16:20:45:827] / [OK]	External XML structure is OK
+[2026-05-05 16:20:45:828] / [DEBUG]	ParamCount = 10
+[2026-05-05 16:20:45:828] / [OK]	Internal structure of XML is OK
+[2026-05-05 16:20:45:828] / [DONE]	File loaded successfully
+[2026-05-05 16:20:45:828] / [INFO]	Creating synchronization program...
+[2026-05-05 16:20:45:828] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 16:20:45:828] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:20:45:830] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 16:20:45:832] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 16:20:45:834] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:20:45:836] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 16:20:45:837] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:20:45:839] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:20:45:840] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 16:20:45:842] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:20:45:844] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:20:45:846] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 16:20:45:847] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:20:45:850] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:20:45:851] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 16:20:45:852] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:20:45:854] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:20:45:856] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 16:20:45:857] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:20:45:859] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:20:45:861] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 16:20:45:862] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:20:45:865] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:20:45:866] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 16:20:45:868] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:20:45:870] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:20:45:871] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 16:20:45:873] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:20:45:874] / [DONE]	Events added
+[2026-05-05 16:20:45:876] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:20:45:877] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:20:45:879] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 16:20:45:890] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 16:20:45:897] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 16:20:45:898] / [INFO]	file fd = 1
+[2026-05-05 16:20:45:910] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 16:20:45:911] / [INFO]	Creating Serial object
+[2026-05-05 16:20:45:912] / [INFO]	Connecting to Serial object
+[2026-05-05 16:20:45:914] / [INFO]	Checking connection
+[2026-05-05 16:20:45:916] / [DONE]	Successful connection to \\.\COM7[2026-05-05 16:20:46:26] / [INFO]	S serial.available = 16
+[2026-05-05 16:20:46:31] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 16:20:46:35] / [INFO]	Q serial.available = 23
+[2026-05-05 16:20:46:37] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 16:20:46:50] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 16:20:46:50] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-162255.log

@@ -0,0 +1,206 @@
+[2026-05-05 16:22:55:977] / [INFO]	Start...
+[2026-05-05 16:22:55:977] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 16:22:55:977] / [INFO]	Try to load file...
+[2026-05-05 16:22:55:977] / [OK]	External XML structure is OK
+[2026-05-05 16:22:55:977] / [DEBUG]	ParamCount = 10
+[2026-05-05 16:22:55:978] / [OK]	Internal structure of XML is OK
+[2026-05-05 16:22:55:978] / [DONE]	File loaded successfully
+[2026-05-05 16:22:55:978] / [INFO]	Creating synchronization program...
+[2026-05-05 16:22:55:978] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 16:22:55:978] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:22:55:979] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 16:22:55:982] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 16:22:55:984] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:22:55:985] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 16:22:55:987] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:22:55:989] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:22:55:991] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 16:22:55:992] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:22:55:994] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:22:55:995] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 16:22:55:997] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:22:56:0] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:22:56:2] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 16:22:56:3] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:22:56:6] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:22:56:7] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 16:22:56:9] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:22:56:11] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:22:56:12] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 16:22:56:14] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:22:56:17] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:22:56:18] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 16:22:56:19] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:22:56:22] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:22:56:23] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 16:22:56:25] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:22:56:26] / [DONE]	Events added
+[2026-05-05 16:22:56:28] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:22:56:29] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:22:56:31] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 16:22:56:42] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 16:22:56:49] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 16:22:56:50] / [INFO]	file fd = 1
+[2026-05-05 16:22:56:61] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 16:22:56:63] / [INFO]	Creating Serial object
+[2026-05-05 16:22:56:64] / [INFO]	Connecting to Serial object
+[2026-05-05 16:22:56:66] / [INFO]	Checking connection
+[2026-05-05 16:22:56:68] / [DONE]	Successful connection to \\.\COM7[2026-05-05 16:22:56:185] / [INFO]	S serial.available = 16
+[2026-05-05 16:22:56:190] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 16:22:56:194] / [INFO]	Q serial.available = 23
+[2026-05-05 16:22:56:196] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 16:22:56:208] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 16:22:56:209] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-162454.log

@@ -0,0 +1,206 @@
+[2026-05-05 16:24:54:831] / [INFO]	Start...
+[2026-05-05 16:24:54:832] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 16:24:54:832] / [INFO]	Try to load file...
+[2026-05-05 16:24:54:832] / [OK]	External XML structure is OK
+[2026-05-05 16:24:54:832] / [DEBUG]	ParamCount = 10
+[2026-05-05 16:24:54:832] / [OK]	Internal structure of XML is OK
+[2026-05-05 16:24:54:832] / [DONE]	File loaded successfully
+[2026-05-05 16:24:54:833] / [INFO]	Creating synchronization program...
+[2026-05-05 16:24:54:833] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 16:24:54:833] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:24:54:834] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 16:24:54:837] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 16:24:54:839] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:24:54:840] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 16:24:54:842] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:24:54:844] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:24:54:845] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 16:24:54:847] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:24:54:849] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:24:54:850] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 16:24:54:852] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:24:54:854] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:24:54:856] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 16:24:54:858] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:24:54:860] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:24:54:861] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 16:24:54:862] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:24:54:864] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:24:54:866] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 16:24:54:867] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:24:54:870] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:24:54:872] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 16:24:54:873] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:24:54:876] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:24:54:877] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 16:24:54:879] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:24:54:880] / [DONE]	Events added
+[2026-05-05 16:24:54:882] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:24:54:883] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:24:54:885] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 16:24:54:897] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 16:24:54:905] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 16:24:54:905] / [INFO]	file fd = 1
+[2026-05-05 16:24:54:917] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 16:24:54:918] / [INFO]	Creating Serial object
+[2026-05-05 16:24:54:920] / [INFO]	Connecting to Serial object
+[2026-05-05 16:24:54:922] / [INFO]	Checking connection
+[2026-05-05 16:24:54:923] / [DONE]	Successful connection to \\.\COM7[2026-05-05 16:24:55:37] / [INFO]	S serial.available = 16
+[2026-05-05 16:24:55:42] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 16:24:55:46] / [INFO]	Q serial.available = 23
+[2026-05-05 16:24:55:49] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 16:24:55:61] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 16:24:55:61] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-163043.log

@@ -0,0 +1,206 @@
+[2026-05-05 16:30:43:323] / [INFO]	Start...
+[2026-05-05 16:30:43:324] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 16:30:43:324] / [INFO]	Try to load file...
+[2026-05-05 16:30:43:324] / [OK]	External XML structure is OK
+[2026-05-05 16:30:43:324] / [DEBUG]	ParamCount = 10
+[2026-05-05 16:30:43:324] / [OK]	Internal structure of XML is OK
+[2026-05-05 16:30:43:324] / [DONE]	File loaded successfully
+[2026-05-05 16:30:43:324] / [INFO]	Creating synchronization program...
+[2026-05-05 16:30:43:325] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 16:30:43:325] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:30:43:326] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 16:30:43:328] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 16:30:43:331] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:30:43:332] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 16:30:43:334] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:30:43:336] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:30:43:338] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 16:30:43:339] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:30:43:342] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:30:43:343] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 16:30:43:344] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:30:43:347] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:30:43:348] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 16:30:43:350] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:30:43:352] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:30:43:353] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 16:30:43:355] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:30:43:357] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:30:43:358] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 16:30:43:360] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:30:43:362] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:30:43:363] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 16:30:43:365] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:30:43:367] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:30:43:369] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 16:30:43:371] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:30:43:372] / [DONE]	Events added
+[2026-05-05 16:30:43:373] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:30:43:375] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:30:43:377] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 16:30:43:389] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 16:30:43:396] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 16:30:43:396] / [INFO]	file fd = 1
+[2026-05-05 16:30:43:408] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 16:30:43:409] / [INFO]	Creating Serial object
+[2026-05-05 16:30:43:411] / [INFO]	Connecting to Serial object
+[2026-05-05 16:30:43:414] / [INFO]	Checking connection
+[2026-05-05 16:30:43:415] / [DONE]	Successful connection to \\.\COM7[2026-05-05 16:30:43:535] / [INFO]	S serial.available = 16
+[2026-05-05 16:30:43:539] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 16:30:43:543] / [INFO]	Q serial.available = 23
+[2026-05-05 16:30:43:545] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 16:30:43:557] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 16:30:43:558] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-163334.log

@@ -0,0 +1,206 @@
+[2026-05-05 16:33:34:816] / [INFO]	Start...
+[2026-05-05 16:33:34:816] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 16:33:34:817] / [INFO]	Try to load file...
+[2026-05-05 16:33:34:817] / [OK]	External XML structure is OK
+[2026-05-05 16:33:34:817] / [DEBUG]	ParamCount = 10
+[2026-05-05 16:33:34:817] / [OK]	Internal structure of XML is OK
+[2026-05-05 16:33:34:817] / [DONE]	File loaded successfully
+[2026-05-05 16:33:34:817] / [INFO]	Creating synchronization program...
+[2026-05-05 16:33:34:818] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 16:33:34:818] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:33:34:819] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 16:33:34:821] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 16:33:34:824] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:33:34:825] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 16:33:34:827] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:33:34:829] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:33:34:830] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 16:33:34:832] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:33:34:834] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:33:34:835] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 16:33:34:837] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:33:34:839] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:33:34:841] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 16:33:34:842] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:33:34:844] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:33:34:845] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 16:33:34:847] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:33:34:849] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:33:34:850] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 16:33:34:852] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:33:34:854] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:33:34:855] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 16:33:34:857] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:33:34:859] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:33:34:861] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 16:33:34:862] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:33:34:863] / [DONE]	Events added
+[2026-05-05 16:33:34:865] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:33:34:867] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:33:34:868] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 16:33:34:879] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 16:33:34:886] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 16:33:34:887] / [INFO]	file fd = 1
+[2026-05-05 16:33:34:898] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 16:33:34:900] / [INFO]	Creating Serial object
+[2026-05-05 16:33:34:901] / [INFO]	Connecting to Serial object
+[2026-05-05 16:33:34:904] / [INFO]	Checking connection
+[2026-05-05 16:33:34:905] / [DONE]	Successful connection to \\.\COM7[2026-05-05 16:33:35:15] / [INFO]	S serial.available = 16
+[2026-05-05 16:33:35:19] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 16:33:35:24] / [INFO]	Q serial.available = 23
+[2026-05-05 16:33:35:26] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 16:33:35:39] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 16:33:35:39] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-163401.log

@@ -0,0 +1,206 @@
+[2026-05-05 16:34:01:405] / [INFO]	Start...
+[2026-05-05 16:34:01:405] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 16:34:01:405] / [INFO]	Try to load file...
+[2026-05-05 16:34:01:406] / [OK]	External XML structure is OK
+[2026-05-05 16:34:01:406] / [DEBUG]	ParamCount = 10
+[2026-05-05 16:34:01:406] / [OK]	Internal structure of XML is OK
+[2026-05-05 16:34:01:406] / [DONE]	File loaded successfully
+[2026-05-05 16:34:01:406] / [INFO]	Creating synchronization program...
+[2026-05-05 16:34:01:406] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 16:34:01:407] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:34:01:408] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 16:34:01:410] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 16:34:01:413] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:34:01:414] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 16:34:01:416] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:34:01:419] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:34:01:420] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 16:34:01:422] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:34:01:424] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:34:01:426] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 16:34:01:427] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:34:01:429] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:34:01:431] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 16:34:01:432] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:34:01:434] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:34:01:436] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 16:34:01:437] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:34:01:439] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:34:01:441] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 16:34:01:443] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:34:01:445] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:34:01:446] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 16:34:01:447] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:34:01:450] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:34:01:451] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 16:34:01:452] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:34:01:453] / [DONE]	Events added
+[2026-05-05 16:34:01:455] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:34:01:457] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:34:01:459] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 16:34:01:470] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 16:34:01:477] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 16:34:01:478] / [INFO]	file fd = 1
+[2026-05-05 16:34:01:488] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 16:34:01:490] / [INFO]	Creating Serial object
+[2026-05-05 16:34:01:491] / [INFO]	Connecting to Serial object
+[2026-05-05 16:34:01:494] / [INFO]	Checking connection
+[2026-05-05 16:34:01:495] / [DONE]	Successful connection to \\.\COM7[2026-05-05 16:34:01:610] / [INFO]	S serial.available = 16
+[2026-05-05 16:34:01:614] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 16:34:01:618] / [INFO]	Q serial.available = 23
+[2026-05-05 16:34:01:620] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 16:34:01:633] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 16:34:01:633] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-163556.log

@@ -0,0 +1,206 @@
+[2026-05-05 16:35:56:240] / [INFO]	Start...
+[2026-05-05 16:35:56:240] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 16:35:56:241] / [INFO]	Try to load file...
+[2026-05-05 16:35:56:241] / [OK]	External XML structure is OK
+[2026-05-05 16:35:56:241] / [DEBUG]	ParamCount = 10
+[2026-05-05 16:35:56:241] / [OK]	Internal structure of XML is OK
+[2026-05-05 16:35:56:241] / [DONE]	File loaded successfully
+[2026-05-05 16:35:56:241] / [INFO]	Creating synchronization program...
+[2026-05-05 16:35:56:241] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 16:35:56:242] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:35:56:243] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 16:35:56:245] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 16:35:56:248] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:35:56:249] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 16:35:56:250] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:35:56:252] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:35:56:253] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 16:35:56:255] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:35:56:257] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:35:56:258] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 16:35:56:260] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:35:56:262] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:35:56:264] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 16:35:56:265] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:35:56:268] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:35:56:269] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 16:35:56:270] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:35:56:273] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:35:56:274] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 16:35:56:276] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:35:56:278] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:35:56:280] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 16:35:56:281] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:35:56:284] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:35:56:285] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 16:35:56:287] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:35:56:288] / [DONE]	Events added
+[2026-05-05 16:35:56:290] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:35:56:291] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:35:56:293] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 16:35:56:305] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 16:35:56:312] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 16:35:56:313] / [INFO]	file fd = 1
+[2026-05-05 16:35:56:324] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 16:35:56:326] / [INFO]	Creating Serial object
+[2026-05-05 16:35:56:327] / [INFO]	Connecting to Serial object
+[2026-05-05 16:35:56:330] / [INFO]	Checking connection
+[2026-05-05 16:35:56:331] / [DONE]	Successful connection to \\.\COM7[2026-05-05 16:35:56:446] / [INFO]	S serial.available = 16
+[2026-05-05 16:35:56:451] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 16:35:56:455] / [INFO]	Q serial.available = 23
+[2026-05-05 16:35:56:457] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 16:35:56:470] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 16:35:56:471] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-163634.log

@@ -0,0 +1,206 @@
+[2026-05-05 16:36:34:938] / [INFO]	Start...
+[2026-05-05 16:36:34:938] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 16:36:34:938] / [INFO]	Try to load file...
+[2026-05-05 16:36:34:938] / [OK]	External XML structure is OK
+[2026-05-05 16:36:34:938] / [DEBUG]	ParamCount = 10
+[2026-05-05 16:36:34:938] / [OK]	Internal structure of XML is OK
+[2026-05-05 16:36:34:938] / [DONE]	File loaded successfully
+[2026-05-05 16:36:34:939] / [INFO]	Creating synchronization program...
+[2026-05-05 16:36:34:939] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 16:36:34:939] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:36:34:940] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 16:36:34:942] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 16:36:34:944] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:36:34:945] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 16:36:34:947] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:36:34:949] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:36:34:950] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 16:36:34:952] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:36:34:953] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:36:34:955] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 16:36:34:956] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:36:34:958] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:36:34:959] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 16:36:34:961] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:36:34:963] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:36:34:965] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 16:36:34:967] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:36:34:969] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:36:34:970] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 16:36:34:972] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:36:34:974] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:36:34:975] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 16:36:34:977] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:36:34:980] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:36:34:981] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 16:36:34:983] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:36:34:984] / [DONE]	Events added
+[2026-05-05 16:36:34:986] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:36:34:988] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:36:34:989] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 16:36:35:1] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 16:36:35:8] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 16:36:35:9] / [INFO]	file fd = 1
+[2026-05-05 16:36:35:21] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 16:36:35:22] / [INFO]	Creating Serial object
+[2026-05-05 16:36:35:24] / [INFO]	Connecting to Serial object
+[2026-05-05 16:36:35:26] / [INFO]	Checking connection
+[2026-05-05 16:36:35:27] / [DONE]	Successful connection to \\.\COM7[2026-05-05 16:36:35:149] / [INFO]	S serial.available = 16
+[2026-05-05 16:36:35:154] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 16:36:35:157] / [INFO]	Q serial.available = 23
+[2026-05-05 16:36:35:159] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 16:36:35:172] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 16:36:35:173] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-164328.log

@@ -0,0 +1,206 @@
+[2026-05-05 16:43:28:793] / [INFO]	Start...
+[2026-05-05 16:43:28:793] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 16:43:28:793] / [INFO]	Try to load file...
+[2026-05-05 16:43:28:794] / [OK]	External XML structure is OK
+[2026-05-05 16:43:28:794] / [DEBUG]	ParamCount = 10
+[2026-05-05 16:43:28:794] / [OK]	Internal structure of XML is OK
+[2026-05-05 16:43:28:794] / [DONE]	File loaded successfully
+[2026-05-05 16:43:28:794] / [INFO]	Creating synchronization program...
+[2026-05-05 16:43:28:794] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 16:43:28:795] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:43:28:796] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 16:43:28:798] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 16:43:28:801] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:43:28:802] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 16:43:28:804] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:43:28:806] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:43:28:807] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 16:43:28:809] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:43:28:811] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:43:28:813] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 16:43:28:814] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:43:28:817] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:43:28:818] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 16:43:28:819] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:43:28:821] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:43:28:823] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 16:43:28:824] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:43:28:826] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:43:28:827] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 16:43:28:829] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:43:28:831] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:43:28:833] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 16:43:28:835] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:43:28:837] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:43:28:838] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 16:43:28:840] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:43:28:841] / [DONE]	Events added
+[2026-05-05 16:43:28:842] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:43:28:844] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:43:28:846] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 16:43:28:857] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 16:43:28:864] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 16:43:28:865] / [INFO]	file fd = 1
+[2026-05-05 16:43:28:877] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 16:43:28:878] / [INFO]	Creating Serial object
+[2026-05-05 16:43:28:879] / [INFO]	Connecting to Serial object
+[2026-05-05 16:43:28:882] / [INFO]	Checking connection
+[2026-05-05 16:43:28:883] / [DONE]	Successful connection to \\.\COM7[2026-05-05 16:43:28:994] / [INFO]	S serial.available = 16
+[2026-05-05 16:43:28:998] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 16:43:29:0] / [INFO]	Q serial.available = 0
+[2026-05-05 16:43:29:2] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 16:43:29:15] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 16:43:29:16] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-164737.log

@@ -0,0 +1,206 @@
+[2026-05-05 16:47:37:213] / [INFO]	Start...
+[2026-05-05 16:47:37:213] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 16:47:37:213] / [INFO]	Try to load file...
+[2026-05-05 16:47:37:214] / [OK]	External XML structure is OK
+[2026-05-05 16:47:37:214] / [DEBUG]	ParamCount = 10
+[2026-05-05 16:47:37:214] / [OK]	Internal structure of XML is OK
+[2026-05-05 16:47:37:214] / [DONE]	File loaded successfully
+[2026-05-05 16:47:37:214] / [INFO]	Creating synchronization program...
+[2026-05-05 16:47:37:214] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 16:47:37:215] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:47:37:216] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 16:47:37:217] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 16:47:37:220] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:47:37:221] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 16:47:37:223] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:47:37:225] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:47:37:227] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 16:47:37:228] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:47:37:231] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:47:37:232] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 16:47:37:233] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:47:37:235] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:47:37:237] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 16:47:37:238] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:47:37:241] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:47:37:242] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 16:47:37:244] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:47:37:246] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:47:37:248] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 16:47:37:250] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:47:37:253] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:47:37:254] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 16:47:37:256] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:47:37:258] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:47:37:260] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 16:47:37:262] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:47:37:263] / [DONE]	Events added
+[2026-05-05 16:47:37:265] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:47:37:267] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:47:37:269] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 16:47:37:281] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 16:47:37:288] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 16:47:37:289] / [INFO]	file fd = 1
+[2026-05-05 16:47:37:302] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 16:47:37:303] / [INFO]	Creating Serial object
+[2026-05-05 16:47:37:304] / [INFO]	Connecting to Serial object
+[2026-05-05 16:47:37:307] / [INFO]	Checking connection
+[2026-05-05 16:47:37:309] / [DONE]	Successful connection to \\.\COM7[2026-05-05 16:47:37:419] / [INFO]	S serial.available = 16
+[2026-05-05 16:47:37:422] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 16:47:37:425] / [INFO]	Q serial.available = 0
+[2026-05-05 16:47:37:427] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 16:47:37:440] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 16:47:37:441] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-164851.log

@@ -0,0 +1,206 @@
+[2026-05-05 16:48:51:672] / [INFO]	Start...
+[2026-05-05 16:48:51:673] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 16:48:51:673] / [INFO]	Try to load file...
+[2026-05-05 16:48:51:673] / [OK]	External XML structure is OK
+[2026-05-05 16:48:51:673] / [DEBUG]	ParamCount = 10
+[2026-05-05 16:48:51:673] / [OK]	Internal structure of XML is OK
+[2026-05-05 16:48:51:674] / [DONE]	File loaded successfully
+[2026-05-05 16:48:51:674] / [INFO]	Creating synchronization program...
+[2026-05-05 16:48:51:674] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 16:48:51:674] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:48:51:675] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 16:48:51:678] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 16:48:51:680] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:48:51:681] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 16:48:51:683] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:48:51:685] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:48:51:687] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 16:48:51:688] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:48:51:690] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:48:51:692] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 16:48:51:694] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:48:51:696] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:48:51:697] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 16:48:51:699] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:48:51:701] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:48:51:703] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 16:48:51:704] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:48:51:707] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:48:51:708] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 16:48:51:710] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:48:51:712] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:48:51:713] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 16:48:51:715] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:48:51:717] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:48:51:719] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 16:48:51:720] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:48:51:721] / [DONE]	Events added
+[2026-05-05 16:48:51:723] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:48:51:725] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:48:51:726] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 16:48:51:738] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 16:48:51:744] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 16:48:51:745] / [INFO]	file fd = 1
+[2026-05-05 16:48:51:757] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 16:48:51:758] / [INFO]	Creating Serial object
+[2026-05-05 16:48:51:760] / [INFO]	Connecting to Serial object
+[2026-05-05 16:48:51:762] / [INFO]	Checking connection
+[2026-05-05 16:48:51:764] / [DONE]	Successful connection to \\.\COM7[2026-05-05 16:48:51:873] / [INFO]	S serial.available = 16
+[2026-05-05 16:48:51:877] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 16:48:51:879] / [INFO]	Q serial.available = 25
+[2026-05-05 16:48:51:881] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 16:48:51:892] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 16:48:51:893] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-165205.log

@@ -0,0 +1,206 @@
+[2026-05-05 16:52:05:570] / [INFO]	Start...
+[2026-05-05 16:52:05:570] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 16:52:05:570] / [INFO]	Try to load file...
+[2026-05-05 16:52:05:571] / [OK]	External XML structure is OK
+[2026-05-05 16:52:05:571] / [DEBUG]	ParamCount = 10
+[2026-05-05 16:52:05:571] / [OK]	Internal structure of XML is OK
+[2026-05-05 16:52:05:571] / [DONE]	File loaded successfully
+[2026-05-05 16:52:05:571] / [INFO]	Creating synchronization program...
+[2026-05-05 16:52:05:571] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 16:52:05:572] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:52:05:573] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 16:52:05:575] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 16:52:05:577] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:52:05:579] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 16:52:05:580] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:52:05:583] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:52:05:584] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 16:52:05:586] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:52:05:588] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:52:05:589] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 16:52:05:591] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:52:05:593] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:52:05:595] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 16:52:05:596] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:52:05:599] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:52:05:600] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 16:52:05:602] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:52:05:604] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:52:05:605] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 16:52:05:607] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:52:05:609] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:52:05:610] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 16:52:05:612] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:52:05:614] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:52:05:615] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 16:52:05:617] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:52:05:618] / [DONE]	Events added
+[2026-05-05 16:52:05:620] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:52:05:622] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:52:05:623] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 16:52:05:635] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 16:52:05:642] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 16:52:05:642] / [INFO]	file fd = 1
+[2026-05-05 16:52:05:654] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 16:52:05:655] / [INFO]	Creating Serial object
+[2026-05-05 16:52:05:656] / [INFO]	Connecting to Serial object
+[2026-05-05 16:52:05:658] / [INFO]	Checking connection
+[2026-05-05 16:52:05:660] / [DONE]	Successful connection to \\.\COM7[2026-05-05 16:52:05:774] / [INFO]	S serial.available = 16
+[2026-05-05 16:52:05:779] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 16:52:05:783] / [INFO]	Q serial.available = 23
+[2026-05-05 16:52:05:786] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 16:52:05:798] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 16:52:05:798] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-165347.log

@@ -0,0 +1,206 @@
+[2026-05-05 16:53:47:477] / [INFO]	Start...
+[2026-05-05 16:53:47:477] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 16:53:47:477] / [INFO]	Try to load file...
+[2026-05-05 16:53:47:477] / [OK]	External XML structure is OK
+[2026-05-05 16:53:47:477] / [DEBUG]	ParamCount = 10
+[2026-05-05 16:53:47:478] / [OK]	Internal structure of XML is OK
+[2026-05-05 16:53:47:478] / [DONE]	File loaded successfully
+[2026-05-05 16:53:47:478] / [INFO]	Creating synchronization program...
+[2026-05-05 16:53:47:478] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 16:53:47:478] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:53:47:479] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 16:53:47:482] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 16:53:47:485] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:53:47:486] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 16:53:47:488] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:53:47:490] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:53:47:492] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 16:53:47:494] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:53:47:496] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:53:47:497] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 16:53:47:499] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:53:47:501] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:53:47:503] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 16:53:47:504] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:53:47:507] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:53:47:508] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 16:53:47:510] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:53:47:512] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:53:47:514] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 16:53:47:515] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:53:47:518] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:53:47:519] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 16:53:47:521] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:53:47:524] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:53:47:525] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 16:53:47:527] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:53:47:528] / [DONE]	Events added
+[2026-05-05 16:53:47:530] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:53:47:532] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:53:47:533] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 16:53:47:545] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 16:53:47:552] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 16:53:47:553] / [INFO]	file fd = 1
+[2026-05-05 16:53:47:564] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 16:53:47:566] / [INFO]	Creating Serial object
+[2026-05-05 16:53:47:567] / [INFO]	Connecting to Serial object
+[2026-05-05 16:53:47:569] / [INFO]	Checking connection
+[2026-05-05 16:53:47:571] / [DONE]	Successful connection to \\.\COM7[2026-05-05 16:53:47:688] / [INFO]	S serial.available = 16
+[2026-05-05 16:53:47:692] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 16:53:47:696] / [INFO]	Q serial.available = 23
+[2026-05-05 16:53:47:699] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 16:53:47:712] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 16:53:47:712] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-165410.log

@@ -0,0 +1,206 @@
+[2026-05-05 16:54:10:576] / [INFO]	Start...
+[2026-05-05 16:54:10:576] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 16:54:10:576] / [INFO]	Try to load file...
+[2026-05-05 16:54:10:576] / [OK]	External XML structure is OK
+[2026-05-05 16:54:10:576] / [DEBUG]	ParamCount = 10
+[2026-05-05 16:54:10:577] / [OK]	Internal structure of XML is OK
+[2026-05-05 16:54:10:577] / [DONE]	File loaded successfully
+[2026-05-05 16:54:10:577] / [INFO]	Creating synchronization program...
+[2026-05-05 16:54:10:577] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 16:54:10:577] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:54:10:579] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 16:54:10:581] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 16:54:10:583] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:54:10:585] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 16:54:10:587] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:54:10:589] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:54:10:590] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 16:54:10:592] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:54:10:594] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:54:10:596] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 16:54:10:597] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:54:10:599] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:54:10:601] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 16:54:10:602] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:54:10:604] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:54:10:606] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 16:54:10:608] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:54:10:610] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:54:10:611] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 16:54:10:613] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:54:10:615] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:54:10:616] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 16:54:10:618] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:54:10:620] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:54:10:622] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 16:54:10:624] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:54:10:625] / [DONE]	Events added
+[2026-05-05 16:54:10:627] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:54:10:628] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:54:10:630] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 16:54:10:642] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 16:54:10:649] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 16:54:10:650] / [INFO]	file fd = 1
+[2026-05-05 16:54:10:662] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 16:54:10:663] / [INFO]	Creating Serial object
+[2026-05-05 16:54:10:664] / [INFO]	Connecting to Serial object
+[2026-05-05 16:54:10:667] / [INFO]	Checking connection
+[2026-05-05 16:54:10:668] / [DONE]	Successful connection to \\.\COM7[2026-05-05 16:54:10:779] / [INFO]	S serial.available = 16
+[2026-05-05 16:54:10:782] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 16:54:10:786] / [INFO]	Q serial.available = 23
+[2026-05-05 16:54:10:788] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 16:54:10:800] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 16:54:10:801] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-165553.log

@@ -0,0 +1,206 @@
+[2026-05-05 16:55:53:335] / [INFO]	Start...
+[2026-05-05 16:55:53:335] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 16:55:53:335] / [INFO]	Try to load file...
+[2026-05-05 16:55:53:336] / [OK]	External XML structure is OK
+[2026-05-05 16:55:53:336] / [DEBUG]	ParamCount = 10
+[2026-05-05 16:55:53:336] / [OK]	Internal structure of XML is OK
+[2026-05-05 16:55:53:336] / [DONE]	File loaded successfully
+[2026-05-05 16:55:53:336] / [INFO]	Creating synchronization program...
+[2026-05-05 16:55:53:337] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 16:55:53:337] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:55:53:338] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 16:55:53:341] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 16:55:53:343] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:55:53:345] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 16:55:53:346] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:55:53:349] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 16:55:53:350] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 16:55:53:352] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:55:53:354] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:55:53:355] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 16:55:53:357] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:55:53:359] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:55:53:360] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 16:55:53:362] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:55:53:364] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:55:53:366] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 16:55:53:368] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:55:53:370] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 16:55:53:371] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 16:55:53:373] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:55:53:375] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 16:55:53:377] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 16:55:53:379] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:55:53:381] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 16:55:53:382] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 16:55:53:384] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:55:53:385] / [DONE]	Events added
+[2026-05-05 16:55:53:387] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:55:53:388] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 16:55:53:389] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 16:55:53:403] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 16:55:53:412] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 16:55:53:413] / [INFO]	file fd = 1
+[2026-05-05 16:55:53:425] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 16:55:53:427] / [INFO]	Creating Serial object
+[2026-05-05 16:55:53:428] / [INFO]	Connecting to Serial object
+[2026-05-05 16:55:53:431] / [INFO]	Checking connection
+[2026-05-05 16:55:53:432] / [DONE]	Successful connection to \\.\COM7[2026-05-05 16:55:53:557] / [INFO]	S serial.available = 16
+[2026-05-05 16:55:53:560] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 16:55:53:563] / [INFO]	Q serial.available = 0
+[2026-05-05 16:55:53:565] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 16:55:53:577] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 16:55:53:578] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-171506.log

@@ -0,0 +1,206 @@
+[2026-05-05 17:15:06:634] / [INFO]	Start...
+[2026-05-05 17:15:06:634] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 17:15:06:635] / [INFO]	Try to load file...
+[2026-05-05 17:15:06:635] / [OK]	External XML structure is OK
+[2026-05-05 17:15:06:635] / [DEBUG]	ParamCount = 10
+[2026-05-05 17:15:06:635] / [OK]	Internal structure of XML is OK
+[2026-05-05 17:15:06:635] / [DONE]	File loaded successfully
+[2026-05-05 17:15:06:635] / [INFO]	Creating synchronization program...
+[2026-05-05 17:15:06:636] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 17:15:06:636] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 17:15:06:637] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 17:15:06:640] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 17:15:06:642] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 17:15:06:643] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 17:15:06:645] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 17:15:06:648] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 17:15:06:649] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 17:15:06:651] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 17:15:06:653] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 17:15:06:654] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 17:15:06:656] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 17:15:06:658] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 17:15:06:659] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 17:15:06:661] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 17:15:06:664] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 17:15:06:665] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 17:15:06:667] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 17:15:06:669] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 17:15:06:671] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 17:15:06:672] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 17:15:06:675] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 17:15:06:676] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 17:15:06:678] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 17:15:06:680] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 17:15:06:681] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 17:15:06:683] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 17:15:06:684] / [DONE]	Events added
+[2026-05-05 17:15:06:686] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 17:15:06:688] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 17:15:06:689] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 17:15:06:701] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 17:15:06:707] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 17:15:06:708] / [INFO]	file fd = 1
+[2026-05-05 17:15:06:720] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 17:15:06:721] / [INFO]	Creating Serial object
+[2026-05-05 17:15:06:722] / [INFO]	Connecting to Serial object
+[2026-05-05 17:15:06:725] / [INFO]	Checking connection
+[2026-05-05 17:15:06:726] / [DONE]	Successful connection to \\.\COM7[2026-05-05 17:15:06:846] / [INFO]	S serial.available = 16
+[2026-05-05 17:15:06:854] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 17:15:06:857] / [INFO]	Q serial.available = 25
+[2026-05-05 17:15:06:859] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 17:15:06:871] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 17:15:06:872] / [OK]	DONE!

+ 206 - 0
spectrometer_service/mserv00/synclogs/sync-log-20260505-171623.log

@@ -0,0 +1,206 @@
+[2026-05-05 17:16:23:546] / [INFO]	Start...
+[2026-05-05 17:16:23:546] / [INFO]	File: C:/LF_MRI/test_21_02_25/sync_v2.xml
+[2026-05-05 17:16:23:546] / [INFO]	Try to load file...
+[2026-05-05 17:16:23:546] / [OK]	External XML structure is OK
+[2026-05-05 17:16:23:546] / [DEBUG]	ParamCount = 10
+[2026-05-05 17:16:23:547] / [OK]	Internal structure of XML is OK
+[2026-05-05 17:16:23:547] / [DONE]	File loaded successfully
+[2026-05-05 17:16:23:547] / [INFO]	Creating synchronization program...
+[2026-05-05 17:16:23:547] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 1
+7080010
+[2026-05-05 17:16:23:547] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 17:16:23:549] / [DEBUG]	Analise Node 1/10...
+[2026-05-05 17:16:23:551] / [ERROR]	duepp: Got due_add_event with 0 ticks. Must be at least: 10
+[2026-05-05 17:16:23:553] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 17:16:23:554] / [DEBUG]	Analise Node 2/10...
+[2026-05-05 17:16:23:556] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 17:16:23:559] / [DEBUG]	
+RF 1
+7080002
+SW 1
+7080012
+ADC 0
+7080012
+GRU 0
+2000012
+[2026-05-05 17:16:23:560] / [DEBUG]	Analise Node 3/10...
+[2026-05-05 17:16:23:562] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 17:16:23:564] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 17:16:23:566] / [DEBUG]	Analise Node 4/10...
+[2026-05-05 17:16:23:568] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 17:16:23:570] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 17:16:23:571] / [DEBUG]	Analise Node 5/10...
+[2026-05-05 17:16:23:573] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 17:16:23:575] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 17:16:23:577] / [DEBUG]	Analise Node 6/10...
+[2026-05-05 17:16:23:578] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 17:16:23:581] / [DEBUG]	
+RF 0
+7080000
+SW 1
+7080010
+ADC 0
+7080010
+GRU 0
+2000010
+[2026-05-05 17:16:23:582] / [DEBUG]	Analise Node 7/10...
+[2026-05-05 17:16:23:584] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 17:16:23:586] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 0
+7080000
+GRU 0
+2000000
+[2026-05-05 17:16:23:588] / [DEBUG]	Analise Node 8/10...
+[2026-05-05 17:16:23:590] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 17:16:23:592] / [DEBUG]	
+RF 0
+7080000
+SW 0
+7080000
+ADC 1
+7080100
+GRU 0
+2000100
+[2026-05-05 17:16:23:593] / [DEBUG]	Analise Node 9/10...
+[2026-05-05 17:16:23:595] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 17:16:23:596] / [DONE]	Events added
+[2026-05-05 17:16:23:598] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 17:16:23:600] / [DEBUG]	duepp: Everything is allright
+[2026-05-05 17:16:23:602] / [DEBUG]	duepp: Get program dump:
+
+Program Dump
+0 BRANCH header, 2 events
+1 outputs: 0x7080000 time: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 EXI
+[2026-05-05 17:16:23:614] / [INFO]	Program in HEX:
+00020002
+07080000
+00000014
+07080010
+00000028
+00060000
+00020008
+02000012
+00000028
+02000012
+0000DAC0
+02000010
+0000099C
+02000000
+00000028
+02000100
+004C4F28
+02000010
+02AEA518
+02000000
+00000028
+02000100
+004C4F28
+00030000
+[2026-05-05 17:16:23:621] / [INFO]	Trying due_download_prog_save_to_file_command() 
+[2026-05-05 17:16:23:622] / [INFO]	file fd = 1
+[2026-05-05 17:16:23:634] / [ERROR]	duepp: due_download_command: got invalid file descriptor (<=0) 
+e: 0x14
+3 outputs: 0x7080010 time: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E
+[2026-05-05 17:16:23:635] / [INFO]	Creating Serial object
+[2026-05-05 17:16:23:636] / [INFO]	Connecting to Serial object
+[2026-05-05 17:16:23:639] / [INFO]	Checking connection
+[2026-05-05 17:16:23:640] / [DONE]	Successful connection to \\.\COM7[2026-05-05 17:16:23:749] / [INFO]	S serial.available = 16
+[2026-05-05 17:16:23:754] / [INFO]	S serial.readString = Status stopped

+
+[2026-05-05 17:16:23:758] / [INFO]	Q serial.available = 23
+[2026-05-05 17:16:23:760] / [INFO]	Q serial.readString = Due pulse programmer v1

+
+[2026-05-05 17:16:23:772] / [ERROR]	---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!
+: 0x28
+0 BRANCH
+5 EXT_TRIG
+6 BRANCH header, 8 events
+7 outputs: 0x2000012 time: 0x28
+9 outputs: 0x2000012 time: 0xdac0
+11 outputs: 0x2000010 time: 0x99c
+13 outputs: 0x2000000 time: 0x28
+15 outputs: 0x2000100 time: 0x4c4f28
+17 outputs: 0x2000010 time: 0x2aea518
+19 outputs: 0x2000000 time: 0x28
+21 outputs: 0x2000100 time: 0x4c4f28
+6 BRANCH
+23 E[2026-05-05 17:16:23:773] / [OK]	DONE!

+ 2 - 12
spectrometer_service/mserv00/temp

@@ -1,12 +1,2 @@
----- due_upload_trajectory ------
-duepp: Sending prog size: 16 D serial.available = 12
-D serial.readString = 16 size ok

-
-duepp: Sending program: 
-program->dpos: 16
----- send ------
-D serial.available = 0
-D serial.readString = 
-D serial.available = 22
-D serial.readString = 254 86 data received

-
+---- due_upload_trajectory ------
+duepp: pulse program has an error flag set, will not download!