diff --git a/devices/SDP.py b/devices/SDP.py index 28797d408634b0c191e80459ddefcc999d2a1f06..d4b3f702b9dbc9d5f72752b59aabd43f8d127912 100644 --- a/devices/SDP.py +++ b/devices/SDP.py @@ -96,7 +96,7 @@ class SDP(hardware_device): fpga_firmware_version_R = attribute_wrapper(comms_annotation=["2:fpga_firmware_version_R"], datatype=numpy.str_, dims=(16,)) fpga_hardware_version_R = attribute_wrapper(comms_annotation=["2:fpga_hardware_version_R"], datatype=numpy.str_, dims=(16,)) - tr_software_version_R = attribute_wrapper(comms_annotation=["2:tr_software_version_R"], datatype=numpy.str_) + tr_software_version_R = attribute_wrapper(comms_annotation=["2:"], datatype=numpy.str_) def always_executed_hook(self): @@ -136,7 +136,10 @@ class SDP(hardware_device): # map an access helper class for i in self.attr_list(): - i.set_comm_client(self.OPCua_client) + try: + i.set_comm_client(self.OPCua_client) + except: + self.debug_stream("error in getting SDP attribute: {} from client".format(i)) self.OPCua_client.start()