Skip to content

2 axes Thorlabs.KinesisMotor - only one axis moves #103

Description

@Saldenisov

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions