diff --git a/src/Smaract_mcs2.py b/src/Smaract_mcs2.py index 3c8022ddb3481396d776825af9c9e532282eff8a..db4a8784c173e86929014d724eb05917b244716d 100755 --- a/src/Smaract_mcs2.py +++ b/src/Smaract_mcs2.py @@ -929,7 +929,7 @@ class Smaract_mcs2 (PyTango.Device_4Impl): self.debug_stream("In Calibrate()") # if self.attr_IsCalibrated_read: # self.debug_stream("Already calibrated. Do nothing.") - # return + # return cmd_str = ":CHAN" + self.chan + ":CAL:OPT 0" self.socket_write(cmd_str) # start actual calibration: @@ -1101,7 +1101,7 @@ class Smaract_mcs2 (PyTango.Device_4Impl): physical_pos = self.attr_LSOffset_read + self.attr_Position_read new_shift = physical_pos - def_pos val = int(new_shift * self.SensorUnitScaleFactor) - cmd_str = ":CHAN" + self.chan + ":LSC:OFF " + str(val) + cmd_str = ":channel" + self.chan + ":lscale:offset " + str(val) self.socket_write(cmd_str) def is_DefinePosition_allowed(self): @@ -1289,7 +1289,7 @@ class Smaract_mcs2Class(PyTango.DeviceClass): positioners and in degrees/s^2 for rotary positioners. \ The valid range is 0..10. A value of 0 (default) deactivates \ the acceleration control feature.", - 'memorized':"true", + 'memorized':"false", }], 'Velocity': [[PyTango.DevDouble, @@ -1301,7 +1301,7 @@ class Smaract_mcs2Class(PyTango.DeviceClass): 'description': "Defines the speed in mm/s for linear positioners \ and in degrees/s for rotary positioners. The valid range is 0..100. \ A value of 0 (default) deactivates the speed control feature.", - 'memorized':"true", + 'memorized':"false", }], 'Frequency': [[PyTango.DevLong, @@ -1312,7 +1312,7 @@ class Smaract_mcs2Class(PyTango.DeviceClass): 'min value': "1", 'description': "Open-loop steps frequency in Hertz.\ The default value is 100. Used in stepper mode only.", - 'memorized':"true", + 'memorized':"false", }], 'Amplitude': [[PyTango.DevLong, @@ -1324,7 +1324,7 @@ class Smaract_mcs2Class(PyTango.DeviceClass): 'description': "Voltage in binary form, the valid range is 1..65535 \ A value of 65535 (max) equals to 100 Volts. Lower amplitude values \ result in a smaller step width. Used in stepper mode only.", - 'memorized':"true", + 'memorized':"false", }], 'Voltage': [[PyTango.DevDouble, @@ -1381,7 +1381,7 @@ class Smaract_mcs2Class(PyTango.DeviceClass): PyTango.READ_WRITE], { 'description': "If set, logical scale count direction is inverted.", - 'memorized':"true", + 'memorized':"false", }], 'LSOffset': [[PyTango.DevDouble, @@ -1389,7 +1389,7 @@ class Smaract_mcs2Class(PyTango.DeviceClass): PyTango.READ_WRITE], { 'description': "Logical scale offset in mm/degrees.", - 'memorized':"true", + 'memorized':"false", }], 'SensorStatus': [[PyTango.DevString, @@ -1438,7 +1438,7 @@ class Smaract_mcs2Class(PyTango.DeviceClass): { 'description': "High limit position in mm for linear sensors \ and in degrees for rotary sensors.", - 'memorized':"true", + 'memorized':"false", }], 'LowLimitPosition': [[PyTango.DevDouble, @@ -1447,7 +1447,7 @@ class Smaract_mcs2Class(PyTango.DeviceClass): { 'description': "Low limit position in mm for linear sensors \ and in degrees for rotary sensors.", - 'memorized':"true", + 'memorized':"false", }], 'PositionBackup': [[PyTango.DevDouble, @@ -1467,7 +1467,7 @@ class Smaract_mcs2Class(PyTango.DeviceClass): 'min value':"0", 'description': "Selects the mode. Must be either \ 0 (disabled), 1 (enabled) or 2 (powersave).", - 'memorized':"true", + 'memorized':"false", }], 'IsCalibrated': [[PyTango.DevBoolean,