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

Examples are missing wait for motion completed calls #57

Closed Rostyslav-Litynskyy closed 3 months ago

Rostyslav-Litynskyy commented 3 months ago

For example: https://github.com/Thorlabs/Motion_Control_Examples/blob/main/C%2B%2B/KCube/KIM101/KIM101_Example.cpp Uses Sleep(..) after each motion instead of properly waiting for a stop status.

Doneill-Thorlabs commented 3 months ago

Some of our examples use the functions with timeouts, these will produce an error if the move is not completed within this time. Other examples use move commands with a event handler. This is to show the different ways to use our DLLs.