added undulator
This commit is contained in:
22
furka.py
22
furka.py
@ -1,11 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
# just a precaution:
|
||||
from pathlib import Path
|
||||
filepath = Path(__file__).absolute()
|
||||
raise SystemExit(f"Please check {filepath} before going on ...")
|
||||
|
||||
|
||||
from slic.core.acquisition import SFAcquisition
|
||||
from slic.core.adjustable import PVAdjustable, DummyAdjustable
|
||||
from slic.core.condition import PVCondition
|
||||
@ -16,6 +10,8 @@ from slic.devices.general.smaract import SmarActAxis
|
||||
from slic.gui import GUI
|
||||
from slic.utils import devices
|
||||
|
||||
from undulator import Undulators
|
||||
|
||||
|
||||
dummy = DummyAdjustable(units="au")
|
||||
|
||||
@ -24,22 +20,28 @@ mot_y = Motor("SATES30-RETRO:MOT_Y", name="Retro Y")
|
||||
mot_z = Motor("SATES30-RETRO:MOT_Z", name="Retro Z")
|
||||
mot_theta = Motor("SATES30-RETRO:MOT_RY", name="Retro Theta")
|
||||
|
||||
und = Undulators(name="Undulators")
|
||||
|
||||
|
||||
channels = [
|
||||
# "SATES30-CAMS182-GIGE1:FPICTURE",
|
||||
"SATES30-CAMS182-GIGE1:FPICTURE",
|
||||
"SATES30-LSCP10-FNS:CH0:VAL_GET",
|
||||
"SATES30-LSCP10-FNS:CH1:VAL_GET",
|
||||
"SATES30-LSCP10-FNS:CH4:VAL_GET"
|
||||
]
|
||||
|
||||
pvs = []
|
||||
pvs = [
|
||||
"SATES30-LSCP10-FNS:CH0:VAL_GET",
|
||||
"SATES30-LSCP10-FNS:CH1:VAL_GET",
|
||||
"SATES30-LSCP10-FNS:CH4:VAL_GET"
|
||||
]
|
||||
|
||||
|
||||
instrument = "furka"
|
||||
pgroup = "p19197"
|
||||
|
||||
#check_intensity = PVCondition("SATFE10-PEPG046:FCUP-INTENSITY-CAL", vmin=5, vmax=None, wait_time=3, required_fraction=0.8)
|
||||
check_intensity = None
|
||||
check_intensity = PVCondition("SATFE10-PEPG046:FCUP-INTENSITY-CAL", vmin=5, vmax=None, wait_time=3, required_fraction=0.8)
|
||||
#check_intensity = None
|
||||
|
||||
daq = SFAcquisition(instrument, pgroup, default_channels=channels, default_pvs=pvs, rate_multiplicator=1)
|
||||
scan = Scanner(default_acquisitions=[daq], condition=check_intensity)
|
||||
|
Reference in New Issue
Block a user