Skip to content
Snippets Groups Projects
Commit 0e7c9d85 authored by BRONES Romain's avatar BRONES Romain
Browse files

feat: Add commands start stop conf of FofbTool

* This uses FofbTool Module to deal with fofbnodes
* Also move some commands to expert mode
parent dd869dc7
Branches
Tags
No related merge requests found
......@@ -29,6 +29,7 @@ import datetime
import time
import numpy as np
import FofbTool.Utils
import FofbTool.Configuration
#----- PROTECTED REGION END -----# // DG_PY_FOFBLegacy.additionnal_import
__all__ = ["DG_PY_FOFBLegacy", "main"]
......@@ -731,6 +732,7 @@ class DG_PY_FOFBLegacy(Device):
#----- PROTECTED REGION END -----# // DG_PY_FOFBLegacy.StartStep07LoadZInvRespMatrix
@command(
display_level=DispLevel.EXPERT,
)
@DebugIt()
def zeroRefLibera(self):
......@@ -750,6 +752,7 @@ class DG_PY_FOFBLegacy(Device):
# PROTECTED REGION END # // DG_PY_FOFBLegacy.zeroRefLibera
@command(
display_level=DispLevel.EXPERT,
)
@DebugIt()
def StopComSteererLibera(self):
......@@ -776,6 +779,7 @@ class DG_PY_FOFBLegacy(Device):
# PROTECTED REGION END # // DG_PY_FOFBLegacy.StopComSteererLibera
@command(
display_level=DispLevel.EXPERT,
)
@DebugIt()
def StopComSteererCellNode(self):
......@@ -789,6 +793,53 @@ class DG_PY_FOFBLegacy(Device):
# PROTECTED REGION END # // DG_PY_FOFBLegacy.StopComSteererCellNode
@command(
display_level=DispLevel.EXPERT,
)
@DebugIt()
def StopComFofbNodes(self):
# PROTECTED REGION ID(DG_PY_FOFBLegacy.StopComFofbNodes) ENABLED START #
"""
This stops the communication on FofbNodes: in between them, from BPM and to PSC.
:return:None
"""
FofbTool.Utils.stop_all_combpm()
FofbTool.Utils.stop_all_ccn()
# PROTECTED REGION END # // DG_PY_FOFBLegacy.StopComFofbNodes
@command(
display_level=DispLevel.EXPERT,
)
@DebugIt()
def ConfFofbNodes(self):
# PROTECTED REGION ID(DG_PY_FOFBLegacy.ConfFofbNodes) ENABLED START #
"""
This applies default configuration on FofbNodes
:return:None
"""
FofbTool.Utils.conf_all_combpm()
FofbTool.Utils.conf_all_comcorr()
FofbTool.Utils.conf_all_ccn()
FofbTool.Configuration.centralnode_configure_corr()
# PROTECTED REGION END # // DG_PY_FOFBLegacy.ConfFofbNodes
@command(
display_level=DispLevel.EXPERT,
)
@DebugIt()
def StartComFofbNodes(self):
# PROTECTED REGION ID(DG_PY_FOFBLegacy.StartComFofbNodes) ENABLED START #
"""
This starts the communication of FofbNodes.
:return:None
"""
FofbTool.Utils.start_all_combpm()
FofbTool.Utils.start_all_ccn()
# PROTECTED REGION END # // DG_PY_FOFBLegacy.StartComFofbNodes
# ----------
# Run server
# ----------
......
......@@ -116,7 +116,7 @@
</argout>
<status abstract="false" inherited="false" concrete="true" concreteHere="true"/>
</commands>
<commands name="zeroRefLibera" description="" execMethod="zero_ref_libera" displayLevel="OPERATOR" polledPeriod="0" isDynamic="false">
<commands name="zeroRefLibera" description="" execMethod="zero_ref_libera" displayLevel="EXPERT" polledPeriod="0" isDynamic="false">
<argin description="">
<type xsi:type="pogoDsl:VoidType"/>
</argin>
......@@ -125,7 +125,7 @@
</argout>
<status abstract="false" inherited="false" concrete="true" concreteHere="true"/>
</commands>
<commands name="StopComSteererLibera" description="Stop the all Libera serial outputs to steerers" execMethod="stop_com_steerer_libera" displayLevel="OPERATOR" polledPeriod="0" isDynamic="false">
<commands name="StopComSteererLibera" description="Stop the all Libera serial outputs to steerers" execMethod="stop_com_steerer_libera" displayLevel="EXPERT" polledPeriod="0" isDynamic="false">
<argin description="">
<type xsi:type="pogoDsl:VoidType"/>
</argin>
......@@ -134,7 +134,34 @@
</argout>
<status abstract="false" inherited="false" concrete="true" concreteHere="true"/>
</commands>
<commands name="StopComSteererCellNode" description="Stop the frame sending from cellnodes to all steerers." execMethod="stop_com_steerer_cell_node" displayLevel="OPERATOR" polledPeriod="0" isDynamic="false">
<commands name="StopComSteererCellNode" description="Stop the frame sending from cellnodes to all steerers." execMethod="stop_com_steerer_cell_node" displayLevel="EXPERT" polledPeriod="0" isDynamic="false">
<argin description="">
<type xsi:type="pogoDsl:VoidType"/>
</argin>
<argout description="">
<type xsi:type="pogoDsl:VoidType"/>
</argout>
<status abstract="false" inherited="false" concrete="true" concreteHere="true"/>
</commands>
<commands name="StopComFofbNodes" description="This stops the communication on FofbNodes: in between them, from BPM and to PSC." execMethod="stop_com_fofb_nodes" displayLevel="EXPERT" polledPeriod="0" isDynamic="false">
<argin description="">
<type xsi:type="pogoDsl:VoidType"/>
</argin>
<argout description="">
<type xsi:type="pogoDsl:VoidType"/>
</argout>
<status abstract="false" inherited="false" concrete="true" concreteHere="true"/>
</commands>
<commands name="ConfFofbNodes" description="This applies default configuration on FofbNodes" execMethod="conf_fofb_nodes" displayLevel="EXPERT" polledPeriod="0" isDynamic="false">
<argin description="">
<type xsi:type="pogoDsl:VoidType"/>
</argin>
<argout description="">
<type xsi:type="pogoDsl:VoidType"/>
</argout>
<status abstract="false" inherited="false" concrete="true" concreteHere="true"/>
</commands>
<commands name="StartComFofbNodes" description="This starts the communication of FofbNodes." execMethod="start_com_fofb_nodes" displayLevel="EXPERT" polledPeriod="0" isDynamic="false">
<argin description="">
<type xsi:type="pogoDsl:VoidType"/>
</argin>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment