-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
I do stage init like this.
stage = Thorlabs.KinesisMotor(str(self.serial_num))
stage.open()
stage.set_supported_channels(2)
print("Enabled channels:", stage.get_all_channels())
I will get two active channels.
To move axes I use this code
# Move X-axis
print(f"Moving X-axis to {x_new} mm")
stage.move_to(x_new * scaling_factor, channel=2, scale=True)
stage.wait_move(channel=2, timeout=move_timeout)
x = stage.get_position(channel=2, scale=True) / scaling_factor
print(f"X-axis moved to: {x}")
# Move Y-axis
print(f"Moving Y-axis to {y_new} mm")
stage.move_to(y_new * scaling_factor, channel=1, scale=True)
stage.wait_move(channel=1, timeout=move_timeout)
y = stage.get_position(channel=1, scale=True) / scaling_factor
print(f"Y-axis moved to: {y}")
The X-axis does not move, but the stage.get_position will give me the correct value.
The Y-axis moves.
What could be the issue?
Metadata
Metadata
Assignees
Labels
No labels