This commit is contained in:
gac-bernina
2024-02-19 16:44:57 +01:00
parent a0fb826e6f
commit 3edd5ecda9
50 changed files with 1166 additions and 89 deletions
+28
View File
@@ -0,0 +1,28 @@
CAMERA = "SARES20-CAMS142-M3"
CAMERA = "SARFE10-PSSS059"
CAMERA = "SATBD02-DSCR050"
CAMERA = "SATES31-CAMS187-RIXS1"
CAMERA = "SAROP21-PPRM138"
CAMERA = "SARES20-PROF142-M1"
#CAMERA = "SARES20-CAMS142-M5"
CAMERA = "SLAAR02-LPMO01-C321"
CAMERA = "SLAAR02-LPMO02-C322"
CAMERA = "SLAAR21-LCAM-CS841"
CAMERA = "SLAAR21-LCAM-CS842"
CAMERA = "SARES20-CAMS142-C2"
CAMERA_URL = caget(CAMERA + ":BSREADCONFIG").replace("tcp://daq", "tcp://")
#CAMERA_URL= "tcp://sf-sioc-cs-83:9020"
#CAMERA_URL= "tcp://sf-sioc-cs-64:9000"
CAMERA_URL = "tcp://sf-daqsync-02:31852"
print CAMERA_URL
st1 = Stream("st1", CAMERA_URL, SocketType.PULL)
st1.initialize()
st1.start()
st1.waitCacheChange(3000)
try:
#r=bscan (st1, records=5, timeout=10.0, save=False, enabled_plots=[st1,])
#v= st1.getValues()
show_panel(st1)
finally:
st1.close()
Executable → Regular
+1 -1
View File
@@ -3,7 +3,7 @@ import ch.psi.pshell.device.HistogramGenerator as HistogramGenerator
CAMERA_NAME = "SARES20-PROF141-M1"
CHANNEL = "intensity"
cam_server.start(CAMERA_NAME + "_sp", CAMERA_NAME + "_sp1") #Start or connect to ScreenPanel pipeline
cam_server.start(CAMERA_NAME + "_sp", True) #Start or connect to ScreenPanel pipeline
cam_server.stream.waitCacheChange(2000)
dev = cam_server.stream.getChild(CHANNEL)
add_device(dev, True) #To see it in Device panel
Executable → Regular
+1 -1
View File
@@ -8,7 +8,7 @@ range_min, range_max = float('nan'),float('nan')
bins = 100
for camera_name in CAMERA_NAMES:
cam_server.start(camera_name + "_sp", camera_name + "_sp1") #Start or connect to ScreenPanel pipeline
cam_server.start(camera_name + "_sp", True) #Start or connect to ScreenPanel pipeline
cam_server.stream.waitCacheChange(2000)
for channel in CHANNELS:
Executable → Regular
+1 -1
View File
@@ -25,7 +25,7 @@ bins = 100
panels = OrderedDict()
for camera_name in CAMERA_NAMES:
cam_server.start(camera_name + "_sp", camera_name + "_sp1") #Start or connect to ScreenPanel pipeline
cam_server.start(camera_name + "_sp", True) #Start or connect to ScreenPanel pipeline
cam_server.stream.waitCacheChange(2000)
for channel in CHANNELS:
Executable → Regular
+1 -1
View File
@@ -24,7 +24,7 @@ bins = 100
panels = OrderedDict()
cam_server.start(CAMERA_NAME + "_sp", CAMERA_NAME + "_sp1") #Start or connect to ScreenPanel pipeline
cam_server.start(CAMERA_NAME + "_sp", True) #Start or connect to ScreenPanel pipeline
cam_server.stream.waitCacheChange(2000)
for channel in CHANNELS:
+5
View File
@@ -0,0 +1,5 @@
s1 = Stream("s1", dispatcher)
s1.addScalar("SARFE10-PSSS059:SPECTRUM_Y_SUM", "SARFE10-PSSS059:SPECTRUM_Y_SUM", 1, 0)
s1.addScalar("SARFE10-PBPS053:INTENSITY" , "SARFE10-PBPS053:INTENSITY", 1, 0)
s1.initialize()
bscan(s1, 10, 3.0)
Regular → Executable
View File
+1 -1
View File
@@ -1,6 +1,6 @@
import ch.psi.pshell.device.HistogramGenerator as HistogramGenerator
cam_server.start("SARES20-PROF141-M1_sp", "SARES20-PROF141-M1_sp1")
cam_server.start("SARES20-PROF141-M1_sp", True)
channels = ["intensity",
"x_center_of_mass",