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

Change RCU_monitor_rate -> RCU_monitor_rate_RW

parent 8355e764
No related branches found
No related tags found
1 merge request!2Refactor for Paulus' pypcc2 version with arrays
...@@ -165,7 +165,7 @@ class RCUSCC(Device): ...@@ -165,7 +165,7 @@ class RCUSCC(Device):
max_dim_x=32, max_dim_y=8, max_dim_x=32, max_dim_y=8,
) )
RCU_monitor_rate = attribute( RCU_monitor_rate_RW = attribute(
dtype='DevULong64', dtype='DevULong64',
) )
...@@ -231,7 +231,7 @@ class RCUSCC(Device): ...@@ -231,7 +231,7 @@ class RCUSCC(Device):
self.attribute_mapping["RCU_version_R"] = self.get_pcc_node("RCU_version_R") self.attribute_mapping["RCU_version_R"] = self.get_pcc_node("RCU_version_R")
self.attribute_mapping["RCU_monitor_rate"] = self.get_pcc_node("RCU_monitor_rate") self.attribute_mapping["RCU_monitor_rate_RW"] = self.get_pcc_node("RCU_monitor_rate_RW")
self.function_mapping["RCU_off"] = self.get_pcc_node("RCU_off") self.function_mapping["RCU_off"] = self.get_pcc_node("RCU_off")
...@@ -309,8 +309,8 @@ class RCUSCC(Device): ...@@ -309,8 +309,8 @@ class RCUSCC(Device):
self._RCU_version_R = ((0,),) self._RCU_version_R = ((0,),)
self.attribute_mapping["RCU_version_R"] = {} self.attribute_mapping["RCU_version_R"] = {}
self._RCU_monitor_rate = 0.0 self._RCU_monitor_rate_RW = 0.0
self.attribute_mapping["RCU_monitor_rate"] = {} self.attribute_mapping["RCU_monitor_rate_RW"] = {}
# Init the dict that contains function to OPC-UA function mappings. # Init the dict that contains function to OPC-UA function mappings.
self.function_mapping = {} self.function_mapping = {}
...@@ -555,16 +555,16 @@ class RCUSCC(Device): ...@@ -555,16 +555,16 @@ class RCUSCC(Device):
@only_when_on @only_when_on
@fault_on_error @fault_on_error
def read_RCU_monitor_rate(self): def read_RCU_monitor_rate_RW(self):
"""Return the RCU_monitor_rate attribute.""" """Return the RCU_monitor_rate_RW attribute."""
return self._RCU_monitor_rate return self._RCU_monitor_rate_RW
@only_when_on @only_when_on
@fault_on_error @fault_on_error
def write_RCU_monitor_rate(self, value): def write_RCU_monitor_rate_RW(self, value):
"""Set the RCU_monitor_rate attribute.""" """Set the RCU_monitor_rate_RW attribute."""
self.attribute_mapping["RCU_monitor_rate"].set_value(value) self.attribute_mapping["RCU_monitor_rate_RW"].set_value(value)
self._RCU_monitor_rate = value self._RCU_monitor_rate_RW = value
# -------- # --------
......
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