The following function setup_kcube_trigio(trig1_mode="out_maxvel", trig1_pol=1) should declare a trigger output pulse when the stage reaches its maximum velocity.
Currently, the motor sends a trigger when the stage is in motion, not necessarily when the stage is at its maximum velocity.
According to the Thorlabs Communication Protocol (Issue 37) p 141, the relevant trigger mode for "max velocity" should be 0x0C, but it is currently implemented in pylablib as 0x0B. The Thorlabs manual suggests to me that 0x0B is for "in motion", which is consistent with what I am observing.
Is the mapping implemented in pylablib a deliberate override, or is this a simple typo?
The following function
setup_kcube_trigio(trig1_mode="out_maxvel", trig1_pol=1)
should declare a trigger output pulse when the stage reaches its maximum velocity.Currently, the motor sends a trigger when the stage is in motion, not necessarily when the stage is at its maximum velocity.
This comes from a mapping in the
kinesis.py
file:According to the Thorlabs Communication Protocol (Issue 37) p 141, the relevant trigger mode for "max velocity" should be
0x0C
, but it is currently implemented in pylablib as0x0B
. The Thorlabs manual suggests to me that0x0B
is for "in motion", which is consistent with what I am observing.Is the mapping implemented in pylablib a deliberate override, or is this a simple typo?
Unit: KDC101 Ref: https://www.thorlabs.com/Software/Motion%20Control/APT_Communications_Protocol.pdf