Skip to content
Snippets Groups Projects
Commit f153dcef authored by Thomas Juerges's avatar Thomas Juerges
Browse files

Change most MPs to arrays

parent 2543afbe
No related branches found
No related tags found
No related merge requests found
......@@ -42,8 +42,6 @@ class RCUSCC(Device):
- Type:'DevULong'
OPC_Time_Out
- Type:'DevDouble'
RCU
- Type:'DevULong'
"""
# PROTECTED REGION ID(RCUSCC.class_variable) ENABLED START #
client = 0
......@@ -70,106 +68,70 @@ class RCUSCC(Device):
mandatory=True
)
RCU = device_property(
dtype='DevULong',
mandatory=True
)
# ----------
# Attributes
# ----------
Attenuator1_R = attribute(
dtype='DevLong64',
)
Attenuator1_RW = attribute(
dtype='DevLong64',
access=AttrWriteType.READ_WRITE,
)
Attenuator2_R = attribute(
dtype='DevLong64',
)
Attenuator2_RW = attribute(
dtype='DevLong64',
access=AttrWriteType.READ_WRITE,
)
Attenuator3_R = attribute(
dtype='DevLong64',
)
Attenuator3_RW = attribute(
dtype='DevLong64',
access=AttrWriteType.READ_WRITE,
Attenuator_R = attribute(
dtype=('DevLong64',),
max_dim_x=32, max_dim_y=3,
)
Band1_R = attribute(
dtype='DevLong64',
)
Band1_RW = attribute(
dtype='DevLong64',
Attenuator_RW = attribute(
dtype=('DevLong64',),
max_dim_x=32, max_dim_y=3,
access=AttrWriteType.READ_WRITE,
)
Band2_R = attribute(
dtype='DevLong64',
Band_R = attribute(
dtype=('DevLong64',),
max_dim_x=32, max_dim_y=3,
)
Band2_RW = attribute(
dtype='DevLong64',
Band_RW = attribute(
dtype=('DevLong64',),
max_dim_x=32, max_dim_y=3,
access=AttrWriteType.READ_WRITE,
)
Band3_R = attribute(
dtype='DevLong64',
)
Band3_RW = attribute(
dtype='DevLong64',
access=AttrWriteType.READ_WRITE,
CLK_PLL_locked_R = attribute(
dtype=('DevLong64',),
max_dim_x=32,
)
# Dither1_Frequency_R = attribute(
# dtype='DevDouble',
# )
#
# Dither1_Frequency_RW = attribute(
# dtype='DevDouble',
# access=AttrWriteType.READ_WRITE,
# )
# Dither_Frequency_R = attribute(
# dtype=('DevDouble',),
# max_dim_x=32, max_dim_y=2,
# )
#
# Dither2_Frequency_R = attribute(
# dtype='DevDouble',
# )
#
# Dither2_Frequency_RW = attribute(
# dtype='DevDouble',
# access=AttrWriteType.READ_WRITE,
# )
LED0_R = attribute(
dtype='DevLong64',
# Dither_Frequency_RW = attribute(
# dtype=('DevDouble',),
# max_dim_x=32, max_dim_y=2,
# access=AttrWriteType.READ_WRITE,
# )
LED_R = attribute(
dtype=('DevLong64',),
max_dim_x=32, max_dim_y=3,
)
LED0_RW = attribute(
dtype='DevLong64',
LED_RW = attribute(
dtype=('DevLong64',),
max_dim_x=32, max_dim_y=3,
access=AttrWriteType.READ_WRITE,
)
Pwr_dig_R = attribute(
dtype='DevLong64',
dtype=('DevLong64',),
max_dim_x=32,
)
Temperature_R = attribute(
dtype='DevDouble',
dtype=('DevDouble',),
max_dim_x=32,
)
# ---------------
# General methods
# ---------------
......@@ -185,64 +147,37 @@ class RCUSCC(Device):
# Set default values in the RW/R attributes and add them to
# the mapping.
self._Attenuator1_R = 0
self.attribute_mapping["Attenuator1_R"] = {}
self._Attenuator1_RW = 0
self.attribute_mapping["Attenuator1_RW"] = {}
self._Attenuator2_R = 0
self.attribute_mapping["Attenuator2_R"] = {}
self._Attenuator2_RW = 0
self.attribute_mapping["Attenuator2_RW"] = {}
self._Attenuator3_R = 0
self.attribute_mapping["Attenuator3_R"] = {}
self._Attenuator3_RW = 0
self.attribute_mapping["Attenuator3_RW"] = {}
self._Band1_R = 0
self.attribute_mapping["Band1_R"] = {}
self._Band1_RW = 0
self.attribute_mapping["Band1_RW"] = {}
self._Band2_R = 0
self.attribute_mapping["Band2_R"] = {}
self._Attenuator_R = ((0,),)
self.attribute_mapping["Attenuator_R"] = {}
self._Band2_RW = 0
self.attribute_mapping["Band2_RW"] = {}
self._Attenuator_RW = ((0,),)
self.attribute_mapping["Attenuator_RW"] = {}
self._Band3_R = 0
self.attribute_mapping["Band3_R"] = {}
self._CLK_PLL_locked_R = ((0,),)
self.attribute_mapping["CLK_PLL_locked_R"] = {}
self._Band3_RW = 0
self.attribute_mapping["Band3_RW"] = {}
self._Band_R = ((0,),)
self.attribute_mapping["Band_R"] = {}
self._Dither1_Frequency_R = 0
self.attribute_mapping["Dither1_Frequency_R"] = {}
self._Band_RW = ((0,),)
self.attribute_mapping["Band_RW"] = {}
self._Dither1_Frequency_RW = 0
self.attribute_mapping["Dither1_Frequency_RW"] = {}
self._Dither_Frequency_R = ((0.0,),)
self.attribute_mapping["Dither_Frequency_R"] = {}
self._Dither2_Frequency_R = 0
self.attribute_mapping["Dither2_Frequency_R"] = {}
self._Dither_Frequency_RW = ((0.0,),)
self.attribute_mapping["Dither_Frequency_RW"] = {}
self._Dither2_Frequency_RW = 0
self.attribute_mapping["Dither2_Frequency_RW"] = {}
self._LED_R = ((0,),)
self.attribute_mapping["LED_R"] = {}
self._LED0_R = 0
self.attribute_mapping["LED0_R"] = {}
self._LED0_RW = ((0,),)
self.attribute_mapping["LED_RW"] = {}
self._LED0_RW = 0
self.attribute_mapping["LED0_RW"] = {}
self._Pwr_dig_R = 0
self._Pwr_dig_R = (0,)
self.attribute_mapping["Pwr_dig_R"] = {}
self._Temperature_R = 0
self._Temperature_R = (0.0,)
self.attribute_mapping["Temperature_R"] = {}
......@@ -266,49 +201,43 @@ class RCUSCC(Device):
self.debug_stream("Mapping OPC-UA MP/CP to attributes...")
self.attribute_mapping["Attenuator1_R"] = self.pcc_node.get_child(["{}:RCU{:02d}_Attenuator1_R".format(self.name_space_index, self.RCU)])
self.attribute_mapping["Attenuator1_RW"] = self.pcc_node.get_child(["{}:RCU{:02d}_Attenuator1_RW".format(self.name_space_index, self.RCU)])
self.attribute_mapping["Attenuator2_R"] = self.pcc_node.get_child(["{}:RCU{:02d}_Attenuator2_R".format(self.name_space_index, self.RCU)])
self.attribute_mapping["Attenuator2_RW"] = self.pcc_node.get_child(["{}:RCU{:02d}_Attenuator2_RW".format(self.name_space_index, self.RCU)])
self.attribute_mapping["Attenuator3_R"] = self.pcc_node.get_child(["{}:RCU{:02d}_Attenuator3_R".format(self.name_space_index, self.RCU)])
self.attribute_mapping["Attenuator3_RW"] = self.pcc_node.get_child(["{}:RCU{:02d}_Attenuator3_RW".format(self.name_space_index, self.RCU)])
# 2020-11-27, thomas
# TODO
# Modify as soon as we have a real multi-dimensional array
self.attribute_mapping["Attenuator_R"] = (self.pcc_node.get_child(["{}:RCUs_Attenuator1_R".format(self.name_space_index)]), self.pcc_node.get_child(["{}:RCUs_Attenuator2_R".format(self.name_space_index)]), self.pcc_node.get_child(["{}:RCUs_Attenuator3_R".format(self.name_space_index)]))
self.attribute_mapping["Band1_R"] = self.pcc_node.get_child(["{}:RCU{:02d}_Band1_R".format(self.name_space_index, self.RCU)])
# 2020-11-27, thomas
# TODO
# Modify as soon as we have a real multi-dimensional array
self.attribute_mapping["Attenuator_RW"] = (self.pcc_node.get_child(["{}:RCUs_Attenuator1_RW".format(self.name_space_index)]), self.pcc_node.get_child(["{}:RCUs_Attenuator2_RW".format(self.name_space_index)]), self.pcc_node.get_child(["{}:RCUs_Attenuator3_RW".format(self.name_space_index)]))
self.attribute_mapping["Band1_RW"] = self.pcc_node.get_child(["{}:RCU{:02d}_Band1_RW".format(self.name_space_index, self.RCU)])
# 2020-11-27, thomas
# TODO
# Modify as soon as we have a real multi-dimensional array
self.attribute_mapping["Band_R"] = (self.pcc_node.get_child(["{}:RCUs_Band1_R".format(self.name_space_index)]), self.pcc_node.get_child(["{}:RCUs_Band2_R".format(self.name_space_index)]), self.pcc_node.get_child(["{}:RCUs_Band3_R".format(self.name_space_index)]))
self.attribute_mapping["Band2_R"] = self.pcc_node.get_child(["{}:RCU{:02d}_Band2_R".format(self.name_space_index, self.RCU)])
# 2020-11-27, thomas
# TODO
# Modify as soon as we have a real multi-dimensional array
self.attribute_mapping["Band_RW"] = (self.pcc_node.get_child(["{}:RCUs_Band1_RW".format(self.name_space_index)]), self.pcc_node.get_child(["{}:RCUs_Band2_RW".format(self.name_space_index)]), self.pcc_node.get_child(["{}:RCUs_Band3_RW".format(self.name_space_index)]))
self.attribute_mapping["Band2_RW"] = self.pcc_node.get_child(["{}:RCU{:02d}_Band2_RW".format(self.name_space_index, self.RCU)])
self.attribute_mapping["CLK_PLL_locked_R"] = self.pcc_node.get_child(["{}:CLK_PLL_locked_R".format(self.name_space_index)])
self.attribute_mapping["Band3_R"] = self.pcc_node.get_child(["{}:RCU{:02d}_Band3_R".format(self.name_space_index, self.RCU)])
# self.attribute_mapping["Dither_Frequency_R"] = self.pcc_node.get_child(["{}:RCUs_Dither_Frequency_R".format(self.name_space_index)])
self.attribute_mapping["Band3_RW"] = self.pcc_node.get_child(["{}:RCU{:02d}_Band3_RW".format(self.name_space_index, self.RCU)])
# self.attribute_mapping["Dither_Frequency_RW"] = self.pcc_node.get_child(["{}:RCUs_Dither_Frequency_RW".format(self.name_space_index)])
# self.attribute_mapping["Dither1_Frequency_R"] = self.pcc_node.get_child(["{}:RCU{:02d}_Dither1_Frequency_R".format(self.name_space_index, self.RCU)])
self.attribute_mapping["LED_R"] = self.pcc_node.get_child(["{}:RCUs_LED0_R".format(self.name_space_index)])
# self.attribute_mapping["Dither1_Frequency_RW"] = self.pcc_node.get_child(["{}:RCU{:02d}_Dither1_Frequency_RW".format(self.name_space_index, self.RCU)])
self.attribute_mapping["LED_RW"] = self.pcc_node.get_child(["{}:RCUs_LED0_RW".format(self.name_space_index)])
# self.attribute_mapping["Dither2_Frequency_R"] = self.pcc_node.get_child(["{}:RCU{:02d}_Dither2_Frequency_R".format(self.name_space_index, self.RCU)])
self.attribute_mapping["Pwr_dig_R"] = self.pcc_node.get_child(["{}:RCUs_Pwr_dig_R".format(self.name_space_index)])
# self.attribute_mapping["Dither2_Frequency_RW"] = self.pcc_node.get_child(["{}:RCU{:02d}_Dither2_Frequency_RW".format(self.name_space_index, self.RCU)])
self.attribute_mapping["Temperature_R"] = self.pcc_node.get_child(["{}:RCUs_Temperature_R".format(self.name_space_index)])
self.attribute_mapping["LED0_R"] = self.pcc_node.get_child(["{}:RCU{:02d}_LED0_R".format(self.name_space_index, self.RCU)])
# self.attribute_mapping["RCU_off"] = self.pcc_node.get_child(["{}:RCUs_RCU_off".format(self.name_space_index)])
self.attribute_mapping["LED0_RW"] = self.pcc_node.get_child(["{}:RCU{:02d}_LED0_RW".format(self.name_space_index, self.RCU)])
self.attribute_mapping["Pwr_dig_R"] = self.pcc_node.get_child(["{}:RCU{:02d}_Pwr_dig_R".format(self.name_space_index, self.RCU)])
self.attribute_mapping["Temperature_R"] = self.pcc_node.get_child(["{}:RCU{:02d}_Temperature_R".format(self.name_space_index, self.RCU)])
self.attribute_mapping["RCU_off"] = self.pcc_node.get_child(["{}:RCU{:02d}_RCU_off".format(self.name_space_index, self.RCU)])
self.attribute_mapping["RCU_on"] = self.pcc_node.get_child(["{}:RCU{:02d}_RCU_on".format(self.name_space_index, self.RCU)])
# self.attribute_mapping["RCU_on"] = self.pcc_node.get_child(["{}:RCUs_RCU_on".format(self.name_space_index)])
self.debug_stream("Mapping OPC-UA MP/CP to attributes done.")
......@@ -343,194 +272,94 @@ class RCUSCC(Device):
# ------------------
# Attributes methods
# ------------------
def read_Attenuator1_R(self):
# PROTECTED REGION ID(RCUSCC.Attenuator1_R_read) ENABLED START #
"""Return the Attenuator1_R attribute."""
self._Attenuator1_R = self.attribute_mapping["Attenuator1_R"].get_value()
return self._Attenuator1_R
# PROTECTED REGION END # // RCUSCC.Attenuator1_R_read
def read_Attenuator1_RW(self):
# PROTECTED REGION ID(RCUSCC.Attenuator1_RW_read) ENABLED START #
"""Return the Attenuator1_R attribute."""
self._Attenuator1_RW = self.attribute_mapping["Attenuator1_RW"].get_value()
return self._Attenuator1_RW
# PROTECTED REGION END # // RCUSCC.Attenuator1_RW_read
def write_Attenuator1_RW(self, value):
# PROTECTED REGION ID(RCUSCC.Attenuator1_RW_write) ENABLED START #
"""Set the Attenuator1_RW attribute."""
self.attribute_mapping["Attenuator1_RW"].set_value(value)
self._Attenuator1_RW = value
# PROTECTED REGION END # // RCUSCC.Attenuator1_RW_write
def read_Attenuator2_R(self):
# PROTECTED REGION ID(RCUSCC.Attenuator2_R_read) ENABLED START #
"""Return the Attenuator2_R attribute."""
self._Attenuator2_R = self.attribute_mapping["Attenuator2_R"].get_value()
return self._Attenuator2_R
# PROTECTED REGION END # // RCUSCC.Attenuator2_R_read
def read_Attenuator2_RW(self):
# PROTECTED REGION ID(RCUSCC.Attenuator2_RW_read) ENABLED START #
"""Return the Attenuator2_R attribute."""
self._Attenuator2_RW = self.attribute_mapping["Attenuator2_RW"].get_value()
return self._Attenuator2_RW
# PROTECTED REGION END # // RCUSCC.Attenuator2_RW_read
def write_Attenuator2_RW(self, value):
# PROTECTED REGION ID(RCUSCC.Attenuator2_RW_write) ENABLED START #
"""Set the Attenuator2_RW attribute."""
self.attribute_mapping["Attenuator2_RW"].set_value(value)
self._Attenuator2_RW = value
# PROTECTED REGION END # // RCUSCC.Attenuator2_RW_write
def read_Attenuator3_R(self):
# PROTECTED REGION ID(RCUSCC.Attenuator3_R_read) ENABLED START #
"""Return the Attenuator3_R attribute."""
self._Attenuator3_R = self.attribute_mapping["Attenuator3_R"].get_value()
return self._Attenuator3_R
# PROTECTED REGION END # // RCUSCC.Attenuator3_R_read
def read_Attenuator3_RW(self):
# PROTECTED REGION ID(RCUSCC.Attenuator3_RW_read) ENABLED START #
"""Return the Attenuator3_R attribute."""
self._Attenuator3_RW = self.attribute_mapping["Attenuator3_RW"].get_value()
return self._Attenuator3_RW
# PROTECTED REGION END # // RCUSCC.Attenuator3_RW_read
def write_Attenuator3_RW(self, value):
# PROTECTED REGION ID(RCUSCC.Attenuator3_RW_write) ENABLED START #
"""Set the Attenuator3_RW attribute."""
self.attribute_mapping["Attenuator3_RW"].set_value(value)
self._Attenuator3_RW = value
# PROTECTED REGION END # // RCUSCC.Attenuator3_RW_write
def read_Band1_R(self):
# PROTECTED REGION ID(RCUSCC.Band1_R_read) ENABLED START #
"""Return the Band1_R attribute."""
self._Band1_R = self.attribute_mapping["Band1_R"].get_value()
return self._Band1_R
# PROTECTED REGION END # // RCUSCC.Band1_R_read
def read_Band1_RW(self):
# PROTECTED REGION ID(RCUSCC.Band1_RW_read) ENABLED START #
"""Return the Band1_R attribute."""
self._Band1_RW = self.attribute_mapping["Band1_RW"].get_value()
return self._Band1_RW
# PROTECTED REGION END # // RCUSCC.Band1_RW_read
def write_Band1_RW(self, value):
# PROTECTED REGION ID(RCUSCC.Band1_RW_write) ENABLED START #
"""Set the Band1_RW attribute."""
self.attribute_mapping["Band1_RW"].set_value(value)
self._Band1_RW = value
# PROTECTED REGION END # // RCUSCC.Band1_RW_write
def read_Band2_R(self):
# PROTECTED REGION ID(RCUSCC.Band2_R_read) ENABLED START #
"""Return the Band2_R attribute."""
self._Band2_R = self.attribute_mapping["Band2_R"].get_value()
return self._Band2_R
# PROTECTED REGION END # // RCUSCC.Band2_R_read
def read_Band2_RW(self):
# PROTECTED REGION ID(RCUSCC.Band2_RW_read) ENABLED START #
"""Return the Band2_R attribute."""
self._Band2_RW = self.attribute_mapping["Band2_RW"].get_value()
return self._Band2_RW
# PROTECTED REGION END # // RCUSCC.Band2_RW_read
def write_Band2_RW(self, value):
# PROTECTED REGION ID(RCUSCC.Band2_RW_write) ENABLED START #
"""Set the Band2_RW attribute."""
self.attribute_mapping["Band2_RW"].set_value(value)
self._Band2_RW = value
# PROTECTED REGION END # // RCUSCC.Band2_RW_write
def read_Band3_R(self):
# PROTECTED REGION ID(RCUSCC.Band3_R_read) ENABLED START #
"""Return the Band3_R attribute."""
self._Band3_R = self.attribute_mapping["Band3_R"].get_value()
return self._Band3_R
# PROTECTED REGION END # // RCUSCC.Band3_R_read
def read_Band3_RW(self):
# PROTECTED REGION ID(RCUSCC.Band3_RW_read) ENABLED START #
"""Return the Band3_R attribute."""
self._Band3_RW = self.attribute_mapping["Band3_RW"].get_value()
return self._Band3_RW
# PROTECTED REGION END # // RCUSCC.Band3_RW_read
def write_Band3_RW(self, value):
# PROTECTED REGION ID(RCUSCC.Band3_RW_write) ENABLED START #
"""Set the Band3_RW attribute."""
self.attribute_mapping["Band3_RW"].set_value(value)
self._Band3_RW = value
# PROTECTED REGION END # // RCUSCC.Band3_RW_write
def read_Dither1_Frequency_R(self):
# PROTECTED REGION ID(RCUSCC.Dither1_Frequency_R_read) ENABLED START #
"""Return the Dither1_Frequency_R attribute."""
self._Dither1_Frequency_R = self.attribute_mapping["Dither1_Frequency_R"].get_value()
return self._Dither1_Frequency_R
# PROTECTED REGION END # // RCUSCC.Dither1_Frequency_R_read
def read_Dither1_Frequency_RW(self):
# PROTECTED REGION ID(RCUSCC.Dither1_Frequency_RW_read) ENABLED START #
"""Return the Dither1_Frequency_R attribute."""
self._Dither1_Frequency_RW = self.attribute_mapping["Dither1_Frequency_RW"].get_value()
return self._Dither1_Frequency_RW
# PROTECTED REGION END # // RCUSCC.Dither1_Frequency_RW_read
def write_Dither1_Frequency_RW(self, value):
# PROTECTED REGION ID(RCUSCC.Dither1_Frequency_RW_write) ENABLED START #
"""Set the Dither1_Frequency_RW attribute."""
self.attribute_mapping["Dither1_Frequency_RW"].set_value(value)
self._Dither1_Frequency_RW = value
# PROTECTED REGION END # // RCUSCC.Dither1_Frequency_RW_write
def read_Dither2_Frequency_R(self):
# PROTECTED REGION ID(RCUSCC.Dither2_Frequency_R_read) ENABLED START #
"""Return the Dither2_Frequency_R attribute."""
self._Dither2_Frequency_R = self.attribute_mapping["Dither2_Frequency_R"].get_value()
return self._Dither2_Frequency_R
# PROTECTED REGION END # // RCUSCC.Dither2_Frequency_R_read
def read_Dither2_Frequency_RW(self):
# PROTECTED REGION ID(RCUSCC.Dither2_Frequency_RW_read) ENABLED START #
"""Return the Dither2_Frequency_R attribute."""
self._Dither2_Frequency_RW = self.attribute_mapping["Dither2_Frequency_RW"].get_value()
return self._Dither2_Frequency_RW
# PROTECTED REGION END # // RCUSCC.Dither2_Frequency_RW_read
def write_Dither2_Frequency_RW(self, value):
# PROTECTED REGION ID(RCUSCC.Dither2_Frequency_RW_write) ENABLED START #
"""Set the Dither2_Frequency_RW attribute."""
self.attribute_mapping["Dither2_Frequency_RW"].set_value(value)
self._Dither2_Frequency_RW = value
# PROTECTED REGION END # // RCUSCC.Dither2_Frequency_RW_write
def read_LED0_R(self):
# PROTECTED REGION ID(RCUSCC.LED0_R_read) ENABLED START #
"""Return the LED0_R attribute."""
self._LED0_R = self.attribute_mapping["LED0_R"].get_value()
return self._LED0_R
# PROTECTED REGION END # // RCUSCC.LED0_R_read
def read_LED0_RW(self):
# PROTECTED REGION ID(RCUSCC.LED0_RW_read) ENABLED START #
"""Return the LED0_RW attribute."""
self._LED0_RW = self.attribute_mapping["LED0_RW"].get_value()
return self._LED0_RW
# PROTECTED REGION END # // RCUSCC.LED0_RW_read
def write_LED0_RW(self, value):
# PROTECTED REGION ID(RCUSCC.LED0_RW_write) ENABLED START #
"""Set the LED0_RW attribute."""
self.attribute_mapping["LED0_RW"].set_value(value)
self._LED0_RW = value
# PROTECTED REGION END # // RCUSCC.LED0_RW_write
def read_Attenuator_R(self):
# PROTECTED REGION ID(RCUSCC.Attenuator_R_read) ENABLED START #
"""Return the Attenuator_R attribute."""
self._Attenuator_R = (self.attribute_mapping["Attenuator_R"][0].get_value(), self.attribute_mapping["Attenuator_R"][1].get_value(), self.attribute_mapping["Attenuator_R"][2].get_value())
return self._Attenuator_R
# PROTECTED REGION END # // RCUSCC.Attenuator_R_read
def read_Attenuator_RW(self):
# PROTECTED REGION ID(RCUSCC.Attenuator_RW_read) ENABLED START #
"""Return the Attenuator_R attribute."""
self._Attenuator_RW = (self.attribute_mapping["Attenuator_RW"][0].get_value(), self.attribute_mapping["Attenuator_RW"][1].get_value(), self.attribute_mapping["Attenuator_RW"][2].get_value())
return self._Attenuator_RW
# PROTECTED REGION END # // RCUSCC.Attenuator_RW_read
def write_Attenuator_RW(self, value):
# PROTECTED REGION ID(RCUSCC.Attenuator_RW_write) ENABLED START #
"""Set the Attenuator_RW attribute."""
self.attribute_mapping["Attenuator_RW"][0].set_value(value[0])
self.attribute_mapping["Attenuator_RW"][1].set_value(value[1])
self.attribute_mapping["Attenuator_RW"][2].set_value(value[2])
self._Attenuator_RW = value
# PROTECTED REGION END # // RCUSCC.Attenuator_RW_write
def read_Band_R(self):
# PROTECTED REGION ID(RCUSCC.Band_R_read) ENABLED START #
"""Return the Band_R attribute."""
self._Band_R = (self.attribute_mapping["Band_R"][0].get_value(), self.attribute_mapping["Band_R"][1].get_value(), self.attribute_mapping["Band_R"][2].get_value())
return self._Band_R
# PROTECTED REGION END # // RCUSCC.Band_R_read
def read_Band_RW(self):
# PROTECTED REGION ID(RCUSCC.Band_RW_read) ENABLED START #
"""Return the Band_R attribute."""
self._Band_RW = (self.attribute_mapping["Band_RW"][0].get_value(), self.attribute_mapping["Band_RW"][1].get_value(), self.attribute_mapping["Band_RW"][2].get_value())
return self._Band_RW
# PROTECTED REGION END # // RCUSCC.Band_RW_read
def write_Band_RW(self, value):
# PROTECTED REGION ID(RCUSCC.Band_RW_write) ENABLED START #
"""Set the Band_RW attribute."""
self.attribute_mapping["Band_RW"][0].set_value(value[0])
self.attribute_mapping["Band_RW"][1].set_value(value[1])
self.attribute_mapping["Band_RW"][2].set_value(value[2])
self._Band_RW = value
# PROTECTED REGION END # // RCUSCC.Band_RW_write
def read_Dither_Frequency_R(self):
# PROTECTED REGION ID(RCUSCC.Dither_Frequency_R_read) ENABLED START #
"""Return the Dither_Frequency_R attribute."""
self._Dither_Frequency_R = (self.attribute_mapping["Dither_Frequency_R"][0].get_value(), self.attribute_mapping["Dither_Frequency_R"][1].get_value())
return self._Dither_Frequency_R
# PROTECTED REGION END # // RCUSCC.Dither_Frequency_R_read
def read_Dither_Frequency_RW(self):
# PROTECTED REGION ID(RCUSCC.Dither_Frequency_RW_read) ENABLED START #
"""Return the Dither_Frequency_R attribute."""
self._Dither_Frequency_RW = (self.attribute_mapping["Dither_Frequency_RW"][0].get_value(), self.attribute_mapping["Dither_Frequency_RW"][1].get_value())
return self._Dither_Frequency_RW
# PROTECTED REGION END # // RCUSCC.Dither_Frequency_RW_read
def write_Dither_Frequency_RW(self, value):
# PROTECTED REGION ID(RCUSCC.Dither_Frequency_RW_write) ENABLED START #
"""Set the Dither_Frequency_RW attribute."""
self.attribute_mapping["Dither_Frequency_RW"][0].set_value(value[0])
self.attribute_mapping["Dither_Frequency_RW"][1].set_value(value[1])
self._Dither_Frequency_RW = value
# PROTECTED REGION END # // RCUSCC.Dither_Frequency_RW_write
def read_LED_R(self):
# PROTECTED REGION ID(RCUSCC.LED_R_read) ENABLED START #
"""Return the LED_R attribute."""
self._LED_R = self.attribute_mapping["LED_R"].get_value()
return self._LED_R
# PROTECTED REGION END # // RCUSCC.LED_R_read
def read_LED_RW(self):
# PROTECTED REGION ID(RCUSCC.LED_RW_read) ENABLED START #
"""Return the LED_RW attribute."""
self._LED_RW = self.attribute_mapping["LED_RW"].get_value()
return self._LED_RW
# PROTECTED REGION END # // RCUSCC.LED_RW_read
def write_LED_RW(self, value):
# PROTECTED REGION ID(RCUSCC.LED_RW_write) ENABLED START #
"""Set the LED_RW attribute."""
self.attribute_mapping["LED_RW"].set_value(value)
self._LED_RW = value
# PROTECTED REGION END # // RCUSCC.LED_RW_write
def read_Pwr_dig_R(self):
# PROTECTED REGION ID(RCUSCC.Pwr_dig_R_read) ENABLED START #
......@@ -546,6 +375,13 @@ class RCUSCC(Device):
return self._Temperature_R
# PROTECTED REGION END # // RCUSCC.Temperature_R_read
def read_CLK_PLL_locked_R(self):
# PROTECTED REGION ID(RCUSCC.CLK_PLL_locked_R_read) ENABLED START #
"""Return the CLK_PLL_locked_R attribute."""
self._CLK_PLL_locked_R = self.attribute_mapping["CLK_PLL_locked_R"].get_value()
return self._CLK_PLL_locked_R
# PROTECTED REGION END # // RCUSCC.CLK_PLL_locked_R_read
# --------
# Commands
......@@ -596,7 +432,7 @@ class RCUSCC(Device):
:return:None
"""
self.attribute_mapping["RCU_off"]()
# self.attribute_mapping["RCU_off"]()
# PROTECTED REGION END # // RCUSCC.RCU_off
@command(
......@@ -608,7 +444,7 @@ class RCUSCC(Device):
:return:None
"""
self.attribute_mapping["RCU_on"]()
# self.attribute_mapping["RCU_on"]()
# PROTECTED REGION END # // RCUSCC.RCU_on
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment