PSSS panel

This commit is contained in:
2025-08-22 11:47:19 +02:00
parent 5a6d860198
commit 508a453bfa
33 changed files with 45 additions and 2381 deletions

View File

@@ -1,6 +1,6 @@
psss_fwhm_avg=ch.psi.pshell.epics.ChannelDouble|SARFE10-PSSS059:REL-E-SPREAD|||true
dispatcher=ch.psi.pshell.bs.Dispatcher|https://dispatcher-api.psi.ch/sf|||
cam_server=ch.psi.pshell.bs.PipelineServer|sf-daqsync-01:8889|||
cam_server=ch.psi.pshell.camserver.PipelineSource|sf-daqsync-01:8889|||
energy_machine=ch.psi.pshell.epics.ChannelDouble|SARFE10-PBPG050:ENERGY|||true
psss_energy=ch.psi.pshell.epics.ChannelDouble|SARFE10-PSSS059:ENERGY|||true
psss_spectrum_x=ch.psi.pshell.epics.ChannelDoubleArray|SARFE10-PSSS059:SPECTRUM_X -1 -3|||true

View File

@@ -1,13 +1,15 @@
#Wed Jun 03 18:45:57 CEST 2020
sendStrategy=complete_all
dropIncomplete=false
keepListeningOnStop=false
#Fri Aug 22 10:56:08 CEST 2025
analizeHeader=false
byteBufferAllocator=false
disableCompression=false
dropIncomplete=false
headerReservingAllocator=false
keepListeningOnStop=false
mappingIncomplete=fill_null
parallelHandlerProcessing=true
sendBuildChannelConfig=at_startup
sendAwaitFirstMessage=false
sendBuildChannelConfig=at_startup
sendStrategy=complete_all
sendSyncTimeout=0
socketType=DEFAULT
validationInconsistency=keep_as_is
byteBufferAllocator=false
mappingIncomplete=fill_null
sendSyncTimeout=0

View File

@@ -1,6 +1,7 @@
#Tue Jun 15 11:03:15 CEST 2021
#Fri Aug 22 10:56:08 CEST 2025
bins=1000
min=11400.0
description=null
max=11200.0
precision=-1
min=11400.0
numberOfSamples=10000
precision=-1

View File

@@ -1,6 +1,7 @@
#Fri Apr 30 07:45:13 CEST 2021
#Fri Aug 22 10:56:08 CEST 2025
bins=1000
min=0.0
description=null
max=40.0
precision=-1
min=0.0
numberOfSamples=10000
precision=-1

View File

@@ -1,4 +1,5 @@
#Mon May 03 09:21:35 CEST 2021
#Fri Aug 22 10:56:08 CEST 2025
description=null
interval=-1
measures=10
precision=-1
interval=-1

View File

@@ -1,4 +1,5 @@
#Mon May 03 09:21:52 CEST 2021
#Fri Aug 22 10:56:08 CEST 2025
description=null
interval=-1
measures=10
precision=-1
interval=-1

View File

@@ -1,5 +1,6 @@
#Mon May 03 09:15:04 CEST 2021
#Fri Aug 22 10:56:08 CEST 2025
description=null
integrate=false
interval=-1
measures=10
precision=-1
interval=-1
integrate=false

View File

@@ -1,13 +1,13 @@
import ch.psi.pshell.bs.PipelineServer;
import ch.psi.pshell.core.Context;
import ch.psi.pshell.camserver.PipelineSource;
import ch.psi.pshell.framework.Context;
import ch.psi.pshell.framework.Panel;
import ch.psi.pshell.epics.ChannelDouble;
import ch.psi.pshell.imaging.RendererMode;
import ch.psi.pshell.plot.Plot;
import ch.psi.pshell.plot.LinePlotJFree;
import ch.psi.pshell.ui.Panel;
import ch.psi.utils.Convert;
import ch.psi.utils.State;
import ch.psi.utils.Str;
import ch.psi.pshell.utils.Convert;
import ch.psi.pshell.utils.State;
import ch.psi.pshell.utils.Str;
import java.awt.CardLayout;
import java.util.HashMap;
import java.util.Map;
@@ -22,7 +22,7 @@ import java.util.logging.Logger;
public class PSSS extends Panel {
final String CAMERA_NAME = "SARFE10-PSSS059";
PipelineServer pipelineServer;
PipelineSource pipelineServer;
volatile boolean updatingPlot;
volatile boolean updatingImage;
@@ -43,7 +43,7 @@ public class PSSS extends Panel {
setGlobalVar("HISTORY_PLOT", history);
setGlobalVar("PSSS_RENDERER", renderer);
pipelineServer = (PipelineServer) getDevice("cam_server");
pipelineServer = (PipelineSource) getDevice("cam_server");
((LinePlotJFree)histogramGeneratorPanelCenter.getPlot()).setLegendVisible(true);
((LinePlotJFree)histogramGeneratorFwhm.getPlot()).setLegendVisible(true);
histogramGeneratorPanelCenter.getPlot().getAxis(Plot.AxisId.Y).setRange(0, 100);
@@ -133,13 +133,13 @@ public class PSSS extends Panel {
args.put("PLOT", plotScan);
this.runAsync(name, args).handle((ret,ex)->{
if (ex!=null){
if (!getContext().isAborted()){
if (!Context.isAborted()){
showException((Exception)ex);
}
}
return ret;
});
} catch (Context.ContextStateException ex) {
} catch (Exception ex) {
showException(ex);
}
}