Files
x10da/script/local.py
2017-02-28 15:15:36 +01:00

29 lines
960 B
Python

###################################################################################################
# Deployment specific global definitions - executed after startup.py
##################################################################################################
import ch.psi.pshell.crlogic.CrlogicPositioner as CrlogicPositioner
import ch.psi.pshell.crlogic.CrlogicSensor as CrlogicSensor
crlogic_config = {}
crlogic_config["class"] = "ch.psi.pshell.crlogic.CrlogicScan"
crlogic_config["prefix"] = "X10DA-ES1-CRL"
crlogic_config["ioc"] = "X10DA-VME-ES1"
crlogic_config["integrationTime"] = 0.2
crlogic_config["additionalBacklash"] = 0.01
crystal.setTrustedMonitor(True)
def setup_brag_plot(auto=True)
if auto:
setup_plotting(range = "auto")
else:
offset = bragg.read() - bragg.readback.read()
setup_plotting(range = [scan_start - offset, scan_stop - offset])
#add_device(bragg.getExtEncoder(), True)