use new ESB_MX module and better triggerSync

This commit is contained in:
2022-10-04 17:27:13 +02:00
parent 7a67889992
commit c75c2c1d33
4 changed files with 76 additions and 231 deletions

View File

@@ -82,7 +82,10 @@ class Jungfrau:
app=QApplication.instance()
cfg=app._cfg
run=cfg.value(AppCfg.DAQ_RUN)
self._pulse_id_start=int(self._pv_pulse_id.value)
try:
self._pulse_id_start=int(self._pv_pulse_id.value)
except TypeError as e:
_log.warning(f'failed to get _pulse_id_start: {e}')
if self._daq is not None:
self._daq.acquire(run['prefix'], n_pulses=n_pulses+run['padding'], wait=False)
pass
@@ -90,8 +93,12 @@ class Jungfrau:
cfg.setValue(AppCfg.DAQ_RUN,run)
def gather_upload(self):
self._pulse_id_end=int(self._pv_pulse_id.value)
_log.debug(f'pulse_id: {self._pulse_id_start}..{self._pulse_id_end}')
try:
self._pulse_id_end=int(self._pv_pulse_id.value)
except TypeError as e:
_log.warning(f'failed to get _pulse_id_start: {e}')
else:
_log.debug(f'pulse_id: {self._pulse_id_start}..{self._pulse_id_end}')
if __name__ == "__main__":