Improved snapshot interface with saving snapshot files in the OP configuration. Added app support for stabilizing XTCAV. Added a BSacquisition based on BSCache
This commit is contained in:
@ -9,6 +9,7 @@ from slic.core.adjustable import PVAdjustable
|
||||
from slic.core.acquisition import BSAcquisition, PVAcquisition
|
||||
from slic.core.scanner import Scanner
|
||||
from sfbd.ext import CounterAdjustable
|
||||
from sfbd.ext import BSCAcquisition
|
||||
|
||||
def getAux(pvs=None):
|
||||
if not pvs:
|
||||
@ -95,7 +96,7 @@ class Dispersion:
|
||||
sensor1 = getBSChannels('SATBD02-DBPM.*:Y2$')
|
||||
sensor2 = getBSChannels('SATCB.*-RLLE-DSP:.*-VS$')
|
||||
self.sensor = sensor1+sensor2
|
||||
self.acq = [BSAcquisition(".",pgroup, default_channels=self.sensor)]
|
||||
self.acq = [BSCAcquisition(".",pgroup, default_channels=self.sensor)]
|
||||
# auxiliar data to be read one
|
||||
self.aux = self.getRFCalibrationChannels(sensor2,'SATCL01-MBND100:ENERGY-OP')
|
||||
|
||||
@ -159,7 +160,7 @@ class Dispersion:
|
||||
def setup(self,scl = 1, Nsteps=5, Nsamples=5):
|
||||
val = self.adj.get_current_value(readback=False)
|
||||
dval = self.amp*scl
|
||||
dval = 0
|
||||
dval = 0 ######## edit this
|
||||
self.N = Nsteps
|
||||
self.Ns= Nsamples
|
||||
self.values=np.linspace(val-dval,val+dval,num=self.N)
|
||||
@ -179,10 +180,10 @@ class Dispersion:
|
||||
self.sc=self.scanner.ascan_list(self.adj,self.values,
|
||||
filename=self.branch,start_immediately = False,
|
||||
n_pulses=self.Ns,return_to_initial_values=True)
|
||||
self.preaction()
|
||||
# self.preaction() ######
|
||||
self.sc.run()
|
||||
self.auxdata = getAux(self.aux)
|
||||
self.postaction()
|
||||
# self.postaction() #######
|
||||
|
||||
|
||||
def stop(self):
|
||||
|
Reference in New Issue
Block a user