Skip to content

Commit

Permalink
bump trackstim version
Browse files Browse the repository at this point in the history
  • Loading branch information
d2fong committed Oct 2, 2019
1 parent 94cd1a7 commit d5fb0c0
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
6 changes: 3 additions & 3 deletions LEGACY_COMMENTS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
//fluorescent object detection and tracking plugin. need motorized stage
//works with stack
//compiled with
//javac -source 1.5 -target 1.5 -classpath /Applications/Micro-Manager1.3nb/ij.jar:/Applications/Micro-Manager1.4/plugins/Micro-Manager/MMCoreJ.jar:/Applications/Micro-Manager1.4/plugins/Micro-Manager/MMJ_.jar -Xlint:unchecked TrackStim_03.java
//jar cvf TrackStim_.jar TrackStim_03.class TrackingThread10.class Signalsender.class
//javac -source 1.5 -target 1.5 -classpath /Applications/Micro-Manager1.3nb/ij.jar:/Applications/Micro-Manager1.4/plugins/Micro-Manager/MMCoreJ.jar:/Applications/Micro-Manager1.4/plugins/Micro-Manager/MMJ_.jar -Xlint:unchecked TrackStim_04.java
//jar cvf TrackStim_.jar TrackStim_04.class TrackingThread11.class SignalSender01.class
//ver3 initiall release
//ver4 avarage thresholding. also can choose thresholding method.
// ver5 implement change roi function by clicking image.
Expand All @@ -34,6 +34,6 @@
//121203 adding manual trackig option

//cd /Applications/Micro-Manager1.4/plugins/
//javac -source 1.5 -target 1.5 -classpath /Applications/Micro-Manager1.4/ij.jar:/Applications/Micro-Manager1.4/plugins/Micro-Manager/MMCoreJ.jar:/Applications/Micro-Manager1.4/plugins/Micro-Manager/MMJ_.jar -Xlint:unchecked TrackStim_03.java
//javac -source 1.5 -target 1.5 -classpath /Applications/Micro-Manager1.4/ij.jar:/Applications/Micro-Manager1.4/plugins/Micro-Manager/MMCoreJ.jar:/Applications/Micro-Manager1.4/plugins/Micro-Manager/MMJ_.jar -Xlint:unchecked TrackStim_04.java

//[Serial, /dev/tty.SLAB_USBtoUART, /dev/tty.SLAB_USBtoUART, /dev/tty.SLAB_USBtoUART, Serial, /dev/tty.usbmodem3d21]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ javac -source 1.5 -target 1.5 -classpath /Applications/Micro-Manager1.3/ij.jar:/
Then, run the following command:

```sh
jar cvf TrackStim_.jar TrackStim_03.class TrackingThread10.class Signalsender.class
jar cvf TrackStim_.jar TrackStim_04.class TrackingThread11.class SignalSender01.class
```


Expand Down
Binary file modified TrackStim_.jar
Binary file not shown.
30 changes: 15 additions & 15 deletions TrackStim_03.java → TrackStim_04.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import mmcorej.Configuration;
import mmcorej.PropertySetting;

public class TrackStim_03 extends PlugInFrame implements ActionListener, ImageListener, MouseListener, ItemListener {
public class TrackStim_04 extends PlugInFrame implements ActionListener, ImageListener, MouseListener, ItemListener {
// public class RealTimeTracker_09 extends PlugInFrame implements
// ActionListener,ImageListener{

Expand All @@ -30,7 +30,7 @@ public class TrackStim_03 extends PlugInFrame implements ActionListener, ImageLi
TextField skiptext;
// TextField intervaltext;
// TrackingThread(RealTimeTracker_01 tpf);
TrackingThread10 tt = null;
TrackingThread11 tt = null;

// filed used in TrackingThread
java.awt.Checkbox closest;// target definition method.
Expand Down Expand Up @@ -73,7 +73,7 @@ public class TrackStim_03 extends PlugInFrame implements ActionListener, ImageLi
int frame = 1200;// String defaultframestring;
boolean ready;

public TrackStim_03() {
public TrackStim_04() {
super("TrackerwithStimulater");
// First, check if there is mmc.
if (mmc_ == null) {
Expand Down Expand Up @@ -604,7 +604,7 @@ void prepSignals(int channel) {
// mili sec, and 0-63
// helper function for prepSignals
void setSender(int channel, int timepoint, int signalstrength) {
Signalsender sd = new Signalsender(this);
SignalSender01 sd = new SignalSender01(this);
sd.setChannel(channel);
sd.setSignalStrength(signalstrength);
ScheduledExecutorService ses;
Expand Down Expand Up @@ -754,7 +754,7 @@ public void actionPerformed(ActionEvent e) {
// ready button pushed
if (lable.equals("Ready")) {
ready = true;
tt = new TrackingThread10(this);
tt = new TrackingThread11(this);
tt.start();

// go button pressed
Expand Down Expand Up @@ -817,7 +817,7 @@ public void actionPerformed(ActionEvent e) {
prepSignals(0);
}

tt = new TrackingThread10(this);
tt = new TrackingThread11(this);
tt.start();
}
} else if (lable.equals("Stop")) {
Expand Down Expand Up @@ -894,9 +894,9 @@ public void mouseReleased(MouseEvent e) {
////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////
// To watch the process during data collection, use different thread.
class TrackingThread10 extends Thread {
class TrackingThread11 extends Thread {
// vaiables recieve from RealTimeTracker
TrackStim_03 tpf;
TrackStim_04 tpf;
CMMCore mmc_;
ImagePlus imp;
ImageCanvas ic;
Expand Down Expand Up @@ -935,7 +935,7 @@ class TrackingThread10 extends Thread {
// allowance distance change
static double mindistancechange = 0.3;

TrackingThread10(TrackStim_03 tpf) {
TrackingThread11(TrackStim_04 tpf) {
IJ.log("TrackingThread constructor");
this.tpf = tpf;
mmc_ = tpf.mmc_;
Expand Down Expand Up @@ -2014,8 +2014,8 @@ public void startAcq(String arg) {
}// class TrackingThread9 extends Thread { end

/// for stimulation using arduino DA converter
class Signalsender implements Runnable {
TrackStim_03 ts;
class SignalSender01 implements Runnable {
TrackStim_04 ts;
int channel;
int strength;
int sendingdata;
Expand All @@ -2025,7 +2025,7 @@ class Signalsender implements Runnable {
int[] changetimepoints;
int[] changevalues;

Signalsender(TrackStim_03 ts_) {
SignalSender01(TrackStim_04 ts_) {
ts = ts_;
}

Expand All @@ -2039,8 +2039,8 @@ void setSignalStrength(int strength_) {
}

public void run() {
IJ.log("signalSender: system time is " + String.valueOf(System.nanoTime() / 1000000));
IJ.log("signalSender: strength is " + String.valueOf(strength));
IJ.log("SignalSender01: system time is " + String.valueOf(System.nanoTime() / 1000000));
IJ.log("SignalSender01: strength is " + String.valueOf(strength));

// testing sending vale
sendingdata = channel << 7 | strength;
Expand All @@ -2050,7 +2050,7 @@ public void run() {
try {
ts.mmc_.writeToSerialPort(ts.adportsname, sendingchrvec);
} catch (java.lang.Exception e) {
IJ.log("signalSender: error trying to write data " + String.valueOf(sendingdata) + " to the serial port " + ts.adportsname);
IJ.log("SignalSender01: error trying to write data " + String.valueOf(sendingdata) + " to the serial port " + ts.adportsname);
IJ.log(e.getMessage());
}
}
Expand Down

0 comments on commit d5fb0c0

Please sign in to comment.