Problem to find error on configuration with SpecMotor CO
Hi, I install many device today, and i spend some times to fix all the typo i introduces on motor names.
The problem was i receive a SpecTimeOutException (or something like that), but it do not provide me any context like the spec client name or the motor name. Then I hack the control_object/SpecMotor.py as bellow, to help me. Maybe you have a better idea? By checking the config on the init? Or using debug log, i dont know.
def position(self):
try:
return self._spec_motor.getPosition()
except Exception as e:
raise Exception("Timeout exception while accessing to spec client %s motor %s" % (self.spec_name, self.motor_name))
Thanks a lot.