Closed thomasmfish closed 2 years ago
Regarding the fix in #215, if the root issue is that getting the position fails because the device is still moving, then simply trying a second time could still fail if the move is long.
Is there a command in the filterwheel that returns when it has finished moving?
I haven't yet had a chance to delve into this more but I'm hoping so. Does microscope have a way to expose the output from devices to the command line?
Okay, I've fixed the issue in a much more comprehensive way now. The issue was empty lines being returned, presumably due to a change in polling frequency or something, which ended the while loop before it had even echoed the command. I've improved the methods involved to:
microscope.DeviceError
if it's unable to cast the response in _do_get_position
to an int.Just linked #215 with the latest changes
Thorlabs filter wheel audibly moves but it's not updated within the software (both GUI and metadata).
This was fixed at B24 with Ian's help a while back (see PR #215). That said, it may be something that can be done a little more elegantly?