Repository navigation
restore the sheet after a SCAPE run - #581
jseguiguren wants to merge 1 commit into
Conversation
prepareControllerForAcquisition turns IllumSlice's beam off, which parks the galvo at its upper limits (B at 4 deg), and nothing turned it back on. The Sheet box stayed ticked until the Setup Path tab was opened again. Remember whether the beam was on before the run and turn it back on in finish(), after the SPIM state machines are idle, so the adapter returns the galvo to the position it saved when the beam went off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The "Try to compile with maven" check fails before compiling: On my side, the change builds with |
|
This reveals something that needs to be fixed but it should be fixed in a different way. I just talked with Brian and Brandon about this. The plugin moves the galvo to its home position which is the desired behavior. The undesired bit is that the home position is ever set to the extreme of travel (a hold over from diSPIM). The firmware's default home position should be 0 in the future. The home position for the "slice axis" (A) should be set when you change the galvo offset on the "Setup Path" panel. This number is usually changed during alignment. It is possible that the current code makes the assumption that the user changes it at some point. But in normal operation this number will be changed during alignment and the home position updated. The home position for the "scan axis" (B) should always be set to 0 for SCAPE. I don't think the plugin does this currently (it has historically been done during the alignment procedure but we shouldn't rely on that). This needs to be fixed. As a short-term work-around @jseguiguren please send the serial command "HM B=0" Related but different, we also noted that we should ensure that the SAO value for the B axis should always be 0 and that in the SCAPE context the piezo offset should only be allowed to be updated when the slice position (B axis) is at 0. |
prepareControllerForAcquisition turns IllumSlice's beam off, which parks the galvo at its upper limits (B at 4 deg), and nothing turned it back on. The Sheet box stayed ticked until the Setup Path tab was opened again. Remember whether the beam was on before the run and turn it back on in finish(), after the SPIM state machines are idle, so the adapter returns the galvo to the position it saved when the beam went off.
Tested on a SCAPE rig (Tiger
Scanner:AB:33, MMCore 12.5.1, built on1fe6c1b). The debug CoreLog showsBeamEnabled=Nowith! A Bat each run start, thenBeamEnabled=Yesfrom the acquisition thread beforeLSM-ACQ-STOP, returning to the same A/B. This held for:Runs refused in
setup()never turn the beam off and are left alone. No axis position is written by LSM: the adapter returns to the position it read from the card.