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

time.sleep(25) --> time.sleep(0.25) #46

Closed cyamahat closed 3 months ago

cyamahat commented 5 months ago

Motion_Control_Examples/Python/KCube/KPZ101 /kpz101_pythonnet.py

Script successfully tested.

However, the initialisation takes quite a long time. I figured out why: There is a time.sleep(25) [line 44] and I assume that it could be decreased to 0.25 (i.e., like at line 46).

Doneill-Thorlabs commented 3 months ago

Thank you for your comment. You are right that this is a typo. I will fix this and update this.

bng919 commented 2 weeks ago

Same typo in PFM450_pythonnet.py

https://github.com/Thorlabs/Motion_Control_Examples/blob/088a9dfc0d1ae5f3b8b51bb06ae230bc6445b0dc/Python/Benchtop/PPC00X/PFM450_pythonnet.py#L60