Added Sensors and Spreadsheet
This commit is contained in:
18
furka.py
18
furka.py
@ -16,7 +16,7 @@ from slic.utils import as_shortcut, Marker
|
||||
|
||||
from spreadsheet import overview, print_overview, print_line_for_spreadsheet
|
||||
from channels import channels, pvs
|
||||
|
||||
from sensors import *
|
||||
|
||||
from undulator import Undulators
|
||||
from undulator import Mono
|
||||
@ -75,7 +75,7 @@ n_unds = [
|
||||
15, 16, 17, 18, 19, 20, 21, 22
|
||||
]
|
||||
chic_fudge_offset = 0
|
||||
Mon2Unds_offset = 1.8
|
||||
Mon2Unds_offset = 3.0
|
||||
|
||||
und = Undulators(n_unds, n_und_ref, chic_fudge_offset, name="z Athos Undulators")
|
||||
#und = Undulators(name="Undulators")
|
||||
@ -128,8 +128,8 @@ TwoTRY=Motor("SATES30-ARES:MOT_2TRY.VAL", name = "Diff 2TRY")
|
||||
|
||||
tth_scan = Coupled_tth(delta=0.3885, name="theta 2theta")
|
||||
|
||||
|
||||
|
||||
GRX = Motor("SATES30-RIXS:MOT_GRX.VAL", name = "Pitch grating")
|
||||
DTZ = Motor("SATES30-RIXS:MOT_DTZ.VAL", name = "DTZ (r2)")
|
||||
|
||||
#fake_mu = HistoryDummy.init_from(mu)
|
||||
#fake_chi = HistoryDummy.init_from(chi)
|
||||
@ -158,25 +158,29 @@ laser_WP = Motor("SLAAT31-LMOT-M801:MOT", name="Laser WavePlate")
|
||||
#overview.Thz_delay = Thz_delay
|
||||
|
||||
|
||||
from spreadsheet import overview, print_overview, print_line_for_spreadsheet, spreadsheet_info
|
||||
from slic.core.acquisition.spreadsheet import Spreadsheet
|
||||
|
||||
spreadsheet = Spreadsheet(spreadsheet_info, placeholders=["comment", "sample"], host="satesf-cons-03", port=9090)
|
||||
|
||||
|
||||
|
||||
|
||||
instrument = "furka"
|
||||
pgroup = "p20452" #Commissioning p group
|
||||
pgroup = "p21162" #Commissioning p group
|
||||
|
||||
#check_intensity = PVCondition("SATFE10-PEPG046:FCUP-INTENSITY-CAL", vmin=5, vmax=None, wait_time=3, required_fraction=0.8)
|
||||
check_intensity = PVCondition("SATBD01-DBPM060:Q2", vmin=5, vmax=None, wait_time=1, required_fraction=0.8)
|
||||
#check_intensity = None
|
||||
|
||||
|
||||
daq = SFAcquisition(instrument, pgroup, default_channels=channels, default_pvs=pvs, rate_multiplicator=1)
|
||||
daq = SFAcquisition(instrument, pgroup, default_channels=channels, default_pvs=pvs, rate_multiplicator=1, spreadsheet=spreadsheet)
|
||||
daq.update_config_pvs()
|
||||
#daq = FakeAcquisition(instrument, pgroup, default_channels=channels, default_pvs=pvs, rate_multiplicator=1)
|
||||
#daq = BSAcquisition .... TBI
|
||||
|
||||
#daqPV = PVAcquisition(instrument, pgroup, default_channels=live_channels)
|
||||
scan = Scanner(default_acquisitions=[daq], condition=check_intensity)
|
||||
scan = Scanner(default_acquisitions=[daq], condition=check_intensity, default_sensor=s3)
|
||||
|
||||
gui = GUI(scan, show_goto=True, show_spec=True, show_run=True)
|
||||
|
||||
|
Reference in New Issue
Block a user