From c1be189f5c3fb49dbebc885c2e29f78641612d9d Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Mon, 5 Jul 2021 15:07:32 +0200 Subject: [PATCH] added template for the start-up script --- furka.py | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 furka.py diff --git a/furka.py b/furka.py new file mode 100644 index 0000000..f66017b --- /dev/null +++ b/furka.py @@ -0,0 +1,49 @@ +#!/usr/bin/env python + +# just a precaution: +from pathlib import Path +filepath = Path(__file__).absolute() +raise SystemExit(f"Please adjust pgroup and channels in {filepath}") + + +from slic.core.acquisition import SFAcquisition +from slic.core.adjustable import PVAdjustable, DummyAdjustable +from slic.core.condition import PVCondition +from slic.core.scanner import Scanner +from slic.devices.general.delay_stage import Delay +from slic.devices.general.motor import Motor +from slic.devices.general.smaract import SmarActAxis +from slic.gui import GUI +from slic.utils import devices + + +dummy = DummyAdjustable(units="au") + + +channels = [ + "SOME:CHANNEL", + "SOMETHING:ELSE" +] + +pvs = [ + "SOME:CHANNEL", + "SOMETHING:ELSE" +] + + +instrument = "furka" +pgroup = "p19???" + +#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) +gui = GUI(scan) + + + +print("To start the GUI, run: gui()") + + +