Skip to content

MCLStage: a position near zero is not an error code - #103

Open
divimaestas wants to merge 1 commit into
LidkeLab:mainfrom
divimaestas:mcl-stage-position
Open

divimaestas wants to merge 1 commit into
LidkeLab:mainfrom
divimaestas:mcl-stage-position

Conversation

@divimaestas

Copy link
Copy Markdown

checked_mcl_value rejected every negative value. Madlib overloads its return channel — MCL_SingleReadN returns micrometres or one of the integer codes -1..-8 in HardwareReturn — and the sign alone does not separate them: a Nano-Drive resting at its commanded zero reads a few nanometres below the sensor origin, which is a position, not a failure.

A negative value now throws only when it is an integer code in HardwareReturn; non-finite values still throw. The sets cannot overlap, since the stage travels 0–100 µm and a real position never reaches -1.

Found on the TIRF rig: initialize(MCLStage) threw read axis 1 failed: invalid value (-0.005940918739356874) with the stage parked at zero. Repeatability there measures about 2 nm at 50 µm.

Full local suite: 8293 pass, 2 fail, 3 broken. The two failures are in lightsource_modulation.jl — a 100 ms latency bound overshot by 2–7 ms under machine load; that testset passes 729/729 run alone on a quiet machine. The 3 broken are the existing @test_broken in gui.jl.

checked_mcl_value rejected every negative value. Madlib overloads its
return channel -- MCL_SingleReadN returns micrometers or one of the
integer codes -1..-8 in HardwareReturn -- and the sign alone does not
separate them: a Nano-Drive resting at its commanded zero reads a few
nanometres below the sensor origin, which is a position.

Now a negative value throws only when it is an integer code in
HardwareReturn; non-finite values still throw. The sets cannot overlap:
the stage travels 0 to 100 um, so a real position never reaches -1.

Found on the TIRF rig: initialize(MCLStage) threw
'read axis 1 failed: invalid value (-0.005940918739356874)' with the
stage parked at zero. Repeatability there measures about 2 nm at 50 um.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant