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
75 stars 31 forks source link

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

Closed cyamahat closed 5 months ago

cyamahat commented 7 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 5 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 months ago

Same typo in PFM450_pythonnet.py

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