This commit is contained in:
gac-x11ma
2025-09-03 16:52:53 +02:00
parent 216ff1c8d5
commit 0f8956cafe
249 changed files with 9 additions and 8 deletions

View File

@@ -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"))));
}