Sprint Dez/2020

This commit is contained in:
gac-x11ma
2020-12-18 11:39:10 +01:00
parent d1f7bad75d
commit 2a19fdf783
10 changed files with 596 additions and 115 deletions

View File

@@ -12,6 +12,22 @@ CONTINOUS_MODE_MIN_TIME = 4000
# ROI Integration
###############################################################################
def start_eiger_ioc():
cmd= "cd /sls/X11MA/data/X11MA/SW/Eiger/;launch"
return run("sshutils", {"USR": "gac-x11ma", "PWD": "", "HOST": "x11ma-softioc","PORT": 22, "CMD": cmd})
def stop_eiger_ioc():
try:
caputq("X11MA-ES1-SD1:SYSRESET", 1);
print "IOC stopped"
except:
print "IOC not running"
cmd= "proc=$(ps aux | grep 'Eiger Receiver' | awk -F ' ' '{print $2}' | xargs); kill $proc"
return run("sshutils", {"USR": "gac-x11ma", "PWD": "", "HOST": "x11ma-softioc","PORT": 22, "CMD": cmd})
def integrate_roi(source, x,y, w, h):
if source.data is None:
source.update()
@@ -346,6 +362,8 @@ def get_outliers_mask(data_type='f'):
eiger.setDataType(DataType.Float32)
eiger.getDataArray().monitored=True
if False:
integrate_roi(image, 10, 5, 20, 10)
@@ -366,5 +384,4 @@ if False:

View File

@@ -2,7 +2,13 @@ try:
if not eiger.isInitialized():
eiger.initialize()
run("devices/eiger")
eiger_channels = eiger_bit_depth_rbv, eiger_mode_rbv, \
eiger_exposure_rbv,eiger_status,eiger_bit_depth,eiger_mode, \
eiger_exposure
for ch in eiger_channels:
ch.initialize()
log("Eiger initialized", False)
stop_task("tasks/CheckEiger")
stop_task("tasks/CheckEiger")
except:
log("Error initializing Eiger: " + str(sys.exc_info()[1]), False)