use new ESB_MX module and better triggerSync
This commit is contained in:
@@ -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__":
|
||||
|
||||
Reference in New Issue
Block a user