From a225ba689f29a6fea7775ceb1828b04f50d26974 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Romain=20BRON=C3=88S?= <romain.brones@synchrotron-soleil.fr>
Date: Tue, 20 Feb 2024 13:49:44 +0100
Subject: [PATCH] feat(Utils): Add parameter to configure comcorr to disabled

* This allow the quick stopping of all frames to steerers
---
 FofbTool/Utils.py | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/FofbTool/Utils.py b/FofbTool/Utils.py
index f93a146..dc7606d 100644
--- a/FofbTool/Utils.py
+++ b/FofbTool/Utils.py
@@ -145,11 +145,16 @@ def conf_all_combpm():
     return success
 
 
-def conf_all_comcorr():
+def conf_all_comcorr(enable=True):
     """
     Run default configuration of all comcorr blocks.
     Check beforehand that the FOFB is not running.
 
+    PARAMETERS
+    ----------
+    enable: Boolean
+        True to enable frame output to PSC (steerers).
+
     RETURN
     ------
     running: Boolean
@@ -162,7 +167,7 @@ def conf_all_comcorr():
 
     success=True
     for i,(n,p) in enumerate(tangopath_cellnodes.items()):
-        s=FofbTool.Configuration.cellnode_configure_comcorr(n)
+        s=FofbTool.Configuration.cellnode_configure_comcorr(n, enable=enable)
         success = success and s
 
     return success
-- 
GitLab