This commit is contained in:
@@ -3,10 +3,10 @@ import ch.psi.pshell.epics.GenericChannel;
|
||||
import ch.psi.pshell.swing.DevicePanel;
|
||||
import ch.psi.pshell.swing.RegisterPanel;
|
||||
import ch.psi.pshell.framework.Panel;
|
||||
import ch.psi.pshell.framework.Setup;
|
||||
import ch.psi.pshell.stripchart.StripChart;
|
||||
import ch.psi.pshell.utils.State;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
@@ -27,6 +27,9 @@ public class Cooling extends Panel {
|
||||
for (DevicePanel p : panels){
|
||||
|
||||
GenericChannel channel = new GenericChannel(p.getName(), p.getName());
|
||||
if (Setup.isSimulation()){
|
||||
channel.setSimulated();
|
||||
}
|
||||
if (p instanceof RegisterPanel){
|
||||
channel.setPrecision(((RegisterPanel)p).getDecimals());
|
||||
}
|
||||
@@ -41,7 +44,7 @@ public class Cooling extends Panel {
|
||||
}
|
||||
|
||||
panelPlot.removeAll();
|
||||
panelPlot.add(StripChart.getPlotPanel(new File("/sls/X11MA/data/X11MA/strip/PEEM-Pt100.scd")));
|
||||
panelPlot.add(StripChart.getPlotPanel(new File(Setup.expandPath("{home}/stripchart/PEEM-Pt100.scd"))));
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user