From 08f6b4024c5c42aa0a921db26e7b4d6733e485e7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Romain=20Bron=C3=A8s?= <romain.brones@synchrotron-soleil.fr>
Date: Fri, 24 May 2024 10:09:10 +0200
Subject: [PATCH] fix: Use Fofb-Manager function for BPM init

---
 FofbTool/Operation.py | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/FofbTool/Operation.py b/FofbTool/Operation.py
index 883daeb..8513c7c 100644
--- a/FofbTool/Operation.py
+++ b/FofbTool/Operation.py
@@ -350,8 +350,13 @@ def sync_all_bpm():
     # ---------------------------------------------------------------------------------------------------------------
     # Init BPMs, stop first and put for each the ID number
 
-    electron_stop_com(bpmlist)
-    electron_init_fa(bpmidlist)
+    #electron_stop_com(bpmlist)
+
+    # Let's use the FOFB-Manager dedicated function while it's here
+    #electron_init_fa(bpmidlist)
+    p.StartStep01ConfigLiberaCom()
+    # It's a non blocking call
+    time.sleep(2)
 
     # ---------------------------------------------------------------------------------------------------------------
     # Write event number
-- 
GitLab