diff --git a/catkit2/services/newport_picomotor/newport_picomotor.py b/catkit2/services/newport_picomotor/newport_picomotor.py index 3b402c102..21075a547 100644 --- a/catkit2/services/newport_picomotor/newport_picomotor.py +++ b/catkit2/services/newport_picomotor/newport_picomotor.py @@ -53,7 +53,7 @@ def __init__(self): def add_axis(self, axis_name): self.axis_commands[axis_name] = self.make_data_stream(axis_name.lower() + '_command', 'int32', [1], 20) - self.axis_current_positions[axis_name] = self.make_data_stream(axis_name.lower() + '_current_position', 'int32', [1], 20) + self.axis_current_positions[axis_name] = self.make_data_stream(axis_name.lower() + '_current_position', 'int64', [1], 20) def set_current_position(self, axis_name, position): axis = self.axes[axis_name] @@ -81,7 +81,7 @@ def get_current_position(self, axis_name): # Update current position data stream. stream = self.axis_current_positions[axis_name] - stream.submit_data(np.array([current_position])) + stream.submit_data(np.array([current_position], dtype=np.int64)) return current_position