Debug Dispersion measurement and added first support for XTCAV stabilizer
This commit is contained in:
12
app/hero.py
12
app/hero.py
@ -3,6 +3,7 @@ import numpy as np
|
||||
|
||||
from slic.core.acquisition import PVAcquisition
|
||||
from slic.core.acquisition import BSAcquisition
|
||||
from slic.core.adjustable import PVAdjustable
|
||||
from slic.devices.general import motor
|
||||
from slic.core.scanner import Scanner
|
||||
from sfbd.ext import CamAcquisition
|
||||
@ -17,7 +18,8 @@ class LaserScanBase:
|
||||
print('Init Base Class')
|
||||
self.SV= 'SSL-LMOT-M1104:MOT'
|
||||
self.pol = motor.Motor(self.SV)
|
||||
|
||||
# self.pol = PVAdjustable(self.SV)
|
||||
|
||||
def stop(self):
|
||||
if self.sc is None:
|
||||
return
|
||||
@ -36,11 +38,13 @@ class LaserScanBase:
|
||||
def info(self):
|
||||
return self.sc.scan_info.to_dict()
|
||||
|
||||
def setup(self,amax=21,Nsteps=5,Nsamples=5):
|
||||
def setup(self,amax=45,Nsteps=5,Nsamples=5):
|
||||
amin = 0
|
||||
self.N = Nsteps
|
||||
self.Ns= Nsamples
|
||||
self.values=np.linspace(19,21,num=self.N) # needs a change
|
||||
amin = 15
|
||||
amax = 22
|
||||
self.values=np.linspace(amin,amax,num=self.N) # needs a change
|
||||
|
||||
# measuring the pulse energy as a function of the controling PV. Note that the power should be limited to 300 uJ
|
||||
# thus limiting the value of the actuaor defining the lase rpulse energy in the EnergyModulaiton class.
|
||||
@ -54,7 +58,7 @@ class LaserPower(LaserScanBase):
|
||||
self.scandir='%s/%s' % (dirpath,self.scanname)
|
||||
|
||||
self.RB = 'SSL-LENG-SLNK1:VAL_GET'
|
||||
self.erg = PollingPVAcquisition("machine","sfbd", default_channels=[self.RB])
|
||||
self.erg = PVAcquisition("machine","sfbd", default_channels=[self.RB])
|
||||
|
||||
self.scanner = Scanner(data_base_dir=self.scandir,scan_info_dir=self.scandir,make_scan_sub_dir=True,
|
||||
default_acquisitions=[self.erg])
|
||||
|
Reference in New Issue
Block a user