Thorlabs / Motion_Control_Examples

Software examples for Thorlabs motion control products (e.g. T-Cube, K-Cube, and benchtop brushless, DC, stepper, and Piezo motor controllers)
MIT License
71 stars 28 forks source link

Issue with units for moves with rotation stage #42

Closed manzelmi-thorlabs closed 7 months ago

manzelmi-thorlabs commented 7 months ago

I am using a BSC201 with an HDR50/M and want to set the velocity based on degrees per second rather than based on motor percentage. I tried using channel.SetVelocityParams_DeviceUnits() but I got an error that no attribute exist. Any help would be greatly appreciated!

_Originally posted by @camron-musashi in https://github.com/Thorlabs/Motion_Control_Examples/discussions/20#discussioncomment-8456292_

Doneill-Thorlabs commented 7 months ago

To set the velocity in real world units (in this case degrees per second) you would use SetVelocityParams(Decimal maxVelocity, Decimal acceleration) or SetVelocityParams(VelocityParameters ^ velocityParameters). If you have any further issues with this feel free to reach out to your local tech support