diff --git a/plugins/Scienta.java b/plugins/Scienta.java index 8ebb980a..67306f9c 100644 --- a/plugins/Scienta.java +++ b/plugins/Scienta.java @@ -59,8 +59,6 @@ public class Scienta extends ch.psi.pshell.epics.Scienta { @Override protected void doInitialize() throws IOException, InterruptedException { super.doInitialize(); - spectrum.setSize(KEEP_TO_VALID); - spectrumX.setSize(KEEP_TO_VALID); } @@ -101,13 +99,14 @@ public class Scienta extends ch.psi.pshell.epics.Scienta { setAccessType(AccessType.Read); } - /* + @Override protected double[] doRead() throws IOException, InterruptedException { - getNumChannels().getValue(); + //getNumChannels().getValue(); + setSizeToValidElements(); return super.doRead(); } - */ + @Override public ArrayCalibration getCalibration() { @@ -143,6 +142,7 @@ public class Scienta extends ch.psi.pshell.epics.Scienta { } return x; */ + spectrumX.setSizeToValidElements(); return spectrumX.read(); }