Startup
This commit is contained in:
@@ -52,7 +52,7 @@ public class GunSolenoidAlignment extends Panel {
|
||||
@Override
|
||||
public void onInitialize(int runCount) {
|
||||
progressBar.setValue(0);
|
||||
getController().addScanListener(scanListener);
|
||||
getContext().addScanListener(scanListener);
|
||||
centroidPlot.getAxis(Plot.AxisId.X).setLabel("Centroid Excursion");
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ public class GunSolenoidAlignment extends Panel {
|
||||
|
||||
//Add ELOG entry
|
||||
if (checkElog.isSelected()) {
|
||||
String file = Paths.get(getController().getSetup().getContextPath(), "CentroidPlot.jpg").toString();
|
||||
String file = Paths.get(getContext().getSetup().getContextPath(), "CentroidPlot.jpg").toString();
|
||||
try {
|
||||
Thread.sleep(250); //Some time to plot update
|
||||
centroidPlot.saveSnapshot(file , "jpg");
|
||||
|
||||
Reference in New Issue
Block a user