Skip to content

Commit

Permalink
Hard-coding legos to make them work inside micro-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
palmada committed Oct 4, 2018
1 parent 2f4e117 commit 31c856d
Show file tree
Hide file tree
Showing 26 changed files with 12 additions and 61 deletions.
2 changes: 0 additions & 2 deletions .idea/artifacts/NanoJ_Fluidics_IJ_zip.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions .idea/artifacts/NanoJ_Fluidics_MM_zip.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions .idea/artifacts/NanoJ_Fluidics_zip.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 0 additions & 11 deletions .idea/artifacts/pumpControl_dummy.xml

This file was deleted.

11 changes: 0 additions & 11 deletions .idea/artifacts/pumpControl_legoControl.xml

This file was deleted.

2 changes: 0 additions & 2 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import org.micromanager.MMStudio;
import org.micromanager.api.MMPlugin;
import org.micromanager.api.ScriptInterface;
import org.micromanager.utils.ReportingUtils;

import java.io.File;
import java.net.URL;
Expand Down Expand Up @@ -34,7 +35,7 @@ public void show() {
userInterface.create(core);
} catch (Exception e) {
IJ.log("Error, problem when initiating GUI.");
e.printStackTrace();
ReportingUtils.logError(e);
}
}

Expand Down
Binary file modified NanoJ-Fluidics.jar
Binary file not shown.
Binary file modified NanoJ-Fluidics_IJ.jar
Binary file not shown.
Binary file modified NanoJ-Fluidics_MM.jar
Binary file not shown.
Binary file modified PackagedBinaries/NanoJ-Fluidics.zip
Binary file not shown.
Binary file modified PackagedBinaries/NanoJ-Fluidics_IJ.zip
Binary file not shown.
Binary file modified PackagedBinaries/NanoJ-Fluidics_MM.zip
Binary file not shown.
Binary file removed PumpPlugins/pumpControl.dummy.jar
Binary file not shown.
Binary file modified PumpPlugins/pumpControl.harvardElite.jar
Binary file not shown.
Binary file modified PumpPlugins/pumpControl.legoControl.jar
Binary file not shown.
1 change: 0 additions & 1 deletion Pumps/pumpControl.dummy/META-INF/MANIFEST.MF

This file was deleted.

This file was deleted.

13 changes: 0 additions & 13 deletions Pumps/pumpControl.dummy/pumpControl.dummy.iml

This file was deleted.

1 change: 0 additions & 1 deletion Pumps/pumpControl.legoControl/META-INF/MANIFEST.MF

This file was deleted.

This file was deleted.

13 changes: 0 additions & 13 deletions Pumps/pumpControl.legoControl/pumpControl.legoControl.iml

This file was deleted.

4 changes: 4 additions & 0 deletions src/nanoj/pumpControl/java/pumps/Pump.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,8 @@ public synchronized double[] getReferenceRate(String subPump) {
public synchronized void updateReferenceRate(String subPump, double[] newRate) {
referenceRates.put(subPump,newRate);
}

public String getName() {
return name;
}
}
6 changes: 6 additions & 0 deletions src/nanoj/pumpControl/java/pumps/PumpManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ public void loadPlugins() {
for (Pump pump : serviceLoader) {
availablePumps.put(pump.getPumpName(), pump);
}

Pump dummy = new DummyControl();
availablePumps.put(dummy.getName(), dummy);

Pump lego = new LegoControl();
availablePumps.put(lego.getName(), lego);
}

public void setCore(CMMCore core) { serialManager = core; }
Expand Down

0 comments on commit 31c856d

Please sign in to comment.