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

When using KBD101 and DDR25/M one needs to apply the triggering settings twice for them to take effect in Python #49

Closed Omnistic closed 5 months ago

Omnistic commented 6 months ago

When I use the functions:

kcube.SetTriggerConfigParams(...)
kcube.SetTriggerParamsParams(...)

I need to call these function twice for the settings to actually take effect in the KBD101 controller with Python. It might be related to some problems I experienced when I reported issue 47.

Omnistic commented 6 months ago

I noticed, you have to call SetTriggerParamsParams(...) first and then SetTriggerConfigParams(...) and then it works normally. But as I couldn't find it documented anywhere, I hope it can be useful to someone here :)

Doneill-Thorlabs commented 5 months ago

Thank you for the comment. There is a help file for these .NET dlls, with some information on what these two commands, which can be found in the Kinesis install folder. This is usually C:\Program Files\Thorlabs\Kinesis and the file is Thorlabs.MotionControl.DotNet_API.chm. If you have further questiosn feel free to reach out to your local tech support team.