Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • dev
  • main
  • 2.0
  • 2.1
4 results

Target

Select target project
No results found
Select Git revision
  • dev
  • main
  • 2.0
  • 2.1
4 results
Show changes

Commits on Source 3

2 files
+ 138
1
Compare changes
  • Side-by-side
  • Inline

Files

Original line number Diff line number Diff line
@@ -28,6 +28,8 @@ from tango import AttrWriteType, PipeWriteType
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"]
@@ -730,6 +732,7 @@ class DG_PY_FOFBLegacy(Device):
        #----- PROTECTED REGION END -----#	//	DG_PY_FOFBLegacy.StartStep07LoadZInvRespMatrix

    @command(
        display_level=DispLevel.EXPERT,
    )
    @DebugIt()
    def zeroRefLibera(self):
@@ -748,6 +751,95 @@ class DG_PY_FOFBLegacy(Device):

        # PROTECTED REGION END #    //  DG_PY_FOFBLegacy.zeroRefLibera

    @command(
        display_level=DispLevel.EXPERT,
    )
    @DebugIt()
    def StopComSteererLibera(self):
        # PROTECTED REGION ID(DG_PY_FOFBLegacy.StopComSteererLibera) ENABLED START #
        """
        Stop the all Libera serial outputs to steerers

        :return:None
        """
        db = tango.Database()
        ansbpms = list(db.get_device_exported("ANS-C*/DG/BPM.*").value_string)
        ansbpms.remove("ANS-C13/DG/BPM.2-DMZ")
        ansbpms.remove("ANS-C13/DG/BPM.9-DMZ")
        for n in ansbpms:
            try:
                bpm = tango.DeviceProxy(n)
                bpm.writefadata([512*4-4, 4, 1, 0])
                bpm.writefadata([768*4-4, 4, 1, 0])
                bpm.writefadata([0x2000, 4, 1, 9])
                bpm.writefadata([0x2000, 4, 1, 8])
            except Exception as e:
                self.error_stream(str(e))

        # PROTECTED REGION END #    //  DG_PY_FOFBLegacy.StopComSteererLibera

    @command(
        display_level=DispLevel.EXPERT,
    )
    @DebugIt()
    def StopComSteererCellNode(self):
        # PROTECTED REGION ID(DG_PY_FOFBLegacy.StopComSteererCellNode) ENABLED START #
        """
        Stop the frame sending from cellnodes to all steerers.

        :return:None
        """
        FofbTool.Utils.conf_all_comcorr(False)

        # 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
# ----------
Original line number Diff line number Diff line
@@ -116,7 +116,52 @@
      </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>
      <argout description="">
        <type xsi:type="pogoDsl:VoidType"/>
      </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="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="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>