Skip to content
Merged
Show file tree
Hide file tree
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
@@ -1,6 +1,5 @@
package org.micromanager.lightsheetmanager.gui.tabs;

import java.lang.reflect.InvocationTargetException;
import java.util.concurrent.Future;
import javax.swing.SwingUtilities;
import org.micromanager.lightsheetmanager.LightSheetManagerFrame;
Expand Down Expand Up @@ -321,18 +320,12 @@ public PositionPanel getMultiPositionPanel() {
}

private void acqFinishedCallback() {
try {
SwingUtilities.invokeAndWait(() -> {
btnRunAcquisition_.setState(false);
btnPauseAcquisition_.setEnabled(false);
btnSpeedTest_.setEnabled(true);
btnTestAcquisition_.setEnabled(true);
});
} catch (InterruptedException e) {
model_.studio().logs().logError("Acquisition was interrupted!");
} catch (InvocationTargetException e) {
model_.studio().logs().logError("Could not update UI components.");
}
SwingUtilities.invokeLater(() -> {
btnRunAcquisition_.setState(false);
btnPauseAcquisition_.setEnabled(false);
btnSpeedTest_.setEnabled(true);
btnTestAcquisition_.setEnabled(true);
});
}

private void runAcquisition(boolean speedTest) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ private void createUserInterface() {
pnlText.setMinimumSize(new Dimension(100, 30));
pnlText.add(lblSlope, "");
pnlText.add(lblSlopeValue_, "");
pnlText.add(lblSlopeValue_, "");
pnlText.add(txtSlope_, "wrap");
pnlText.add(lblOffset, "");
pnlText.add(lblOffsetValue_, "");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private void createUserInterface() {
final JLabel lblSheetWidth = new JLabel("Sheet width:");
//final JLabel lblSheetOffset = new JLabel("Sheet offset:");
final JLabel lblSheetOffset = new JLabel("Galvo offset * 1000:");
lblSlopeUnits2_ = new JLabel("μ°/px"); // TODO: reuse labels like this?
lblSlopeUnits2_ = new JLabel("m°/px");

cbxAutoSheetWidth_ = new CheckBox("Automatic", false);
txtSheetWidth_ = new TextField();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ public AcquisitionEvent run(AcquisitionEvent event) {
return event;
}

if (isUsingPLC) {
if (isUsingPLC && controllerInstance != null) {
if (settings.stageScan().enabled() && settings.isUsingMultiplePositions()) {
final ASIXYStage xyStage = model_.devices().device("SampleXY");
// Scan from the coordinate this event was generated for instead of reading
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public void setBinning() {

@Override
public int getBinning() {
final String binning = getProperty(PcoCamera.Properties.BINNING);
final String binning = getProperty(Properties.BINNING);
final int factor = Integer.parseInt(binning.substring(0, 1));
if (factor < 1) {
studio_.logs().showError("Was not able to get camera binning factor");
Expand Down
Loading