Closedown

This commit is contained in:
sfop
2017-04-12 15:55:14 +02:00
parent 36e631816f
commit c069ae9f4f
5 changed files with 30 additions and 15 deletions

View File

@@ -11,6 +11,7 @@ import ch.psi.pshell.plot.Plot;
import ch.psi.pshell.scan.Scan;
import ch.psi.pshell.scan.ScanListener;
import ch.psi.pshell.scan.ScanRecord;
import ch.psi.pshell.ui.App;
import ch.psi.pshell.ui.Panel;
import ch.psi.utils.State;
import ch.psi.utils.swing.SwingUtils;
@@ -70,9 +71,15 @@ public class GunScan extends Panel {
super.onStart();
getContext().addScanListener(scanListener);
try {
if (App.isDetached()){
Epics.create();
}
spinnerDispersion.setValue(Epics.get("SINBD01-DSCR010:DISPERSION-SIM", Double.class));
spinnerEnergy.setValue(Epics.get("SINBD01-DSCR010:ENERGY-SIM", Double.class));
//spinnerDispersion.setValue(eval("caget('SINBD01-DSCR010:DISPERSION-SIM')", true));
//spinnerEnergy.setValue(eval("caget('SINBD01-DSCR010:ENERGY-SIM')", true));
} catch (Exception ex) {
ex.printStackTrace();
showException(ex);
}
}