You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
) doesn't work for an ELL20 stage, and I suspect not for any Elliptec linear stage. The documentation indicates for linear stages that the device's 'pulses' information field gives pulses /per millimetre/, independent of the available travel length, for linear stages.
The scaling factor calculated at line 97 for elliptec.py (
pyLabLib/pylablib/devices/Thorlabs/elliptec.py
Line 97 in 000e5dd
Unfortunately I can't see an explicit way of telling linear and rotation stages apart from the device info response; you could have a model number look-up table (like https://gitlab.com/ptapping/thorlabs-elliptec/-/blob/main/thorlabs_elliptec/__init__.py?ref_type=heads#L127 ), but since the 'pulses' value is very different for all current linear and rotation stages (see page 8 of https://www.thorlabs.com/Software/Elliptec/Communications_Protocol/ELLx%20modules%20protocol%20manual_Issue7.pdf ), I'm currently using a crude heuristic:
self._stage_scale[a]=dev_info.pulse/dev_info.travel if dev_info.pulse > 100000 else dev_info.pulse if dev_info.pulse>0 else 1
The text was updated successfully, but these errors were encountered: