Skip to content

Commit

Permalink
make sure to stop spim state machines after acq
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon committed Oct 3, 2023
1 parent daea3c8 commit 6bf2d1f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1128,6 +1128,16 @@ public void setPathPreset(int side) {
studio_.logs().showError("Couldn't set the path config " + preset + " of group " + group);
}
}

public void stopSPIMStateMachines() {
if (model_.devices().getDeviceAdapter().getMicroscopeGeometry() == GeometryType.SCAPE) {
scanner_.setSPIMState(ASIScanner.SPIMState.IDLE);
} else {
scanner1_.setSPIMState(ASIScanner.SPIMState.IDLE);
scanner2_.setSPIMState(ASIScanner.SPIMState.IDLE);
}
}

}


Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@ public void close() {
// maybe not at all since we move when we switch to setup tab, something else??)
if (isUsingPLC) {
controller.cleanUpControllerAfterAcquisition(acqSettings_, true);
controller.stopSPIMStateMachines();
}

// Restore shutter/autoshutter to original state
Expand Down Expand Up @@ -1410,6 +1411,7 @@ public void close() {
// maybe not at all since we move when we switch to setup tab, something else??)
if (isUsingPLC && controller != null) {
controller.cleanUpControllerAfterAcquisition(acqSettings_, true);
controller.stopSPIMStateMachines();
}

// Restore shutter/autoshutter to original state
Expand Down

0 comments on commit 6bf2d1f

Please sign in to comment.