Skip to content

Add CoherentSapphire: the 561 nm Sapphire over its serial port - #105

Open
divimaestas wants to merge 1 commit into
LidkeLab:mainfrom
divimaestas:sapphire-561
Open

divimaestas wants to merge 1 commit into
LidkeLab:mainfrom
divimaestas:sapphire-561

Conversation

@divimaestas

Copy link
Copy Markdown

A Coherent Sapphire 561-100 speaks ASCII over RS-232 at 19200 baud, CR/LF terminated: P= sets power, L=1 enables emission, ?P and ?STA read back.

This does not overlap crysta_laser_561. That driver sets a CrystaLaser's power as a voltage on a DAQ analogue output — no command language, no readback. The Sapphire is a serial device, so it needs its own driver rather than a change to that one.

The protocol follows MIC_CoherentLaser561.m in matlab-instrument-control. setpower verifies against ?SP, since the laser stores to 0.1 mW; getpower reads the measured ?P. The range 10–110 mW is the unit's own.

This is the serial half only: on the TIRF rig the 561 also has a TTL shutter, which is a separate device.

Verified on the laser: STA=3, SV=8.005, power set and read back.

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.

A Coherent Sapphire 561-100 speaks ASCII over RS-232 at 19200 baud,
CR/LF terminated: P= sets power, L=1 enables emission, ?P and ?STA read
back.

The protocol follows MIC_CoherentLaser561.m in matlab-instrument-control.
setpower verifies against ?SP, since the laser stores to 0.1 mW; getpower
reads the measured ?P. The range 10-110 mW is the unit's own.

This is the serial half only: on the TIRF rig the 561 also has a TTL
shutter, which is a separate device.

Verified on the laser: STA=3, SV=8.005, power set and read back.

Co-Authored-By: Claude Opus 5

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