various fixes

This commit is contained in:
2022-09-16 12:25:36 +02:00
parent 6a7b5ab91e
commit ba4f5feecb
7 changed files with 141 additions and 87 deletions

View File

@@ -15,7 +15,7 @@ _log=logging.getLogger(__name__)
from PyQt5.QtWidgets import (QApplication,)
from app_config import AppCfg #settings, option, toggle_option
import epics
from pbtools.misc.pp_comm import PPComm
from pbtools.misc.gather import Gather
import shapepath
@@ -25,6 +25,7 @@ try:
except ImportError as e:
_log.warning(e)
class Deltatau:
def __init__(self):
app=QApplication.instance()
@@ -83,7 +84,14 @@ class Jungfrau:
except NameError as e:
_log.warning(f'Jungfrau not connected: {e}')
self._daq=None
self._pv_pulse_id=epics.PV('SAR-EXPMX-EVR0:RX-PULSEID')
def acquire(self,run_name, n_pulses, wait=False):
if self._daq is not None:
self._pulse_id_start=self._pv_pulse_id.value
self._daq.acquire( run_name, n_pulses=n_pulses, wait=False)
def gather_upload(self):
self._pulse_id_end=self._pv_pulse_id.value