This commit is contained in:
x10daop
2017-01-19 08:38:30 +01:00
parent c946346ebb
commit 287131c3ed
4 changed files with 60 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
crystal=ch.psi.pshell.epics.ChannelDouble|X10DA-OP-MO3:Bragg2dSpacAO|||true
+11
View File
@@ -0,0 +1,11 @@
#Tue Jan 10 16:17:44 CET 2017
ch.psi.jcae.ContextFactory.addressList=
ch.psi.jcae.ContextFactory.serverPort=
ch.psi.jcae.ContextFactory.maxArrayBytes=20000000
ch.psi.jcae.ChannelFactory.retries=1
ch.psi.jcae.ChannelFactory.timeout=500
ch.psi.jcae.impl.DefaultChannelService.retries=
ch.psi.jcae.impl.DefaultChannelService.timeout=
ch.psi.jcae.ContextFactory.autoAddressList=false
ch.psi.jcae.ContextFactory.useShellVariables=true
ch.psi.jcae.ContextFactory.addLocalBroadcastInterfaces=false
+35
View File
@@ -0,0 +1,35 @@
caput("X10DA-ES-SCALER.CNT", 0)
caput("X10DA-ES-SCALER.G1", 0)
caput("X10DA-ES-SCALER.CONT", 0)
caput("X10DA-ES1:START-CSMPL", 1)
caput("X10DA-ES1:TOTAL-CYCLES", 5)
caput("X10DA-ES1:SMPL-BTN", 1)
bragg = CrlogicPositioner("bragg", "X10DA-OP-MO3:ROX", None);
i0 = CrlogicSensor("I0", "SCALER12", True)
i1 = CrlogicSensor("I1", "SCALER13", True)
i2 = CrlogicSensor("I2", "SCALER14", True)
ref = CrlogicSensor("ScalerRef", "SCALER15", True)
class AbsCalc(Readable):
def read(self):
return math.log(math.fabs(i0.take()) /math.fabs(i1.take()))
abs_calc = AbsCalc()
class ECalc(Readable):
def read(self):
return 12.39842 / ( crystal.take() * math.sin( math.radians(bragg.take())) )
e_calc = ECalc()
sensors = [crystal, i0, i1, i2, ref, abs_calc, e_calc]
pos.initialize()
pos.move(10.3)
try:
r1 = hscan(crlogic_config, bragg, sensors, 10.3, 10.6, 0.002, 1, False)
finally:
pos.close()
+13 -1
View File
@@ -1,4 +1,16 @@
###################################################################################################
# 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.01
crlogic_config["additionalBacklash"] = 0.0