diff --git a/devices/PCC.py b/devices/PCC.py index a038a628251f8328e42db7f95f7efd6282e6c990..266725ab410b9b56c6d326a61f22cd8e332d54d6 100644 --- a/devices/PCC.py +++ b/devices/PCC.py @@ -140,6 +140,16 @@ class PCC(hardware_device): self.OPCua_client = OPCUAConnection("opc.tcp://{}:{}/".format(self.OPC_Server_Name, self.OPC_Server_Port), "http://lofar.eu", self.OPC_Time_Out, self.Fault, self) + # map the attributes to the OPC ua comm client + for i in self.attr_list(): + try: + i.set_comm_client(self.OPCua_client) + except: + pass + + self.OPCua_client.start() + + # -------- # Commands