Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,17 @@ boolean setup() {
// return false;
// }

// Live Mode must be stopped before setting the "Core-Camera" property below,
// MMCore throws if a sequence acquisition (Live Mode) is running.
final boolean isLiveModeOn = studio_.live().isLiveModeOn();
if (isLiveModeOn) {
studio_.live().setLiveModeOn(false);
// close the live mode window if it exists
if (studio_.live().getDisplay() != null) {
studio_.live().getDisplay().close();
}
}

// set the "Core-Camera" property to the first logical camera device
final String cameraName = model_.devices().firstImagingCamera().getDeviceName();
try {
Expand Down Expand Up @@ -120,18 +131,6 @@ boolean setup() {
@Override
boolean run() {

// TODO: delete later, this is the settings before everything is set up in doHardwareCalculations (used to debug)
//studio_.logs().logMessage("debug info:\n" + acqSettings_.toPrettyJson());

final boolean isLiveModeOn = studio_.live().isLiveModeOn();
if (isLiveModeOn) {
studio_.live().setLiveModeOn(false);
// close the live mode window if it exists
if (studio_.live().getDisplay() != null) {
studio_.live().getDisplay().close();
}
}

// save current exposure to restore later
CameraBase[] cameras = model_.devices().imagingCameras();
savedExposures_ = new ArrayList<>();
Expand Down
Loading