Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set different scale for motors connected same Thorlabs controller #94

Open
James-ZWu opened this issue Nov 8, 2024 · 1 comment

Comments

@James-ZWu
Copy link

I am using PyLabLib to control my Thorlabs controller which has 3 channels, each channel is connected to 3 different motors.
I want to set different scales for different motors.

However, I can only create one KinesisMotor instance for each controller, and the constructor takes one scale. How can I set different scale for different motors connected to same controller.

@AlexShkarin
Copy link
Owner

Hi!

Unfortunately, there is no option for this right now; I've never used multi-axis Kinesis devices myself, so it never crossed my mind. I'll try to add it in the next release. In the meantime, there is always a workaround of using the raw scale for the device and applying the scale manually when calling the methods. After all, all that the scale does under the hood is multiplying the numbers sent to Thorlabs devices and dividing the returned values. You can find the appropriate coefficient in the Thorlabs APT protocol, pages 39-41.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants