|
@@ -1272,10 +1272,11 @@ def bk_toggle_wait_on_trigger(board_id, num_of_acquisitions=None, skip=None, tim
|
|
|
read sequentially
|
|
|
:return:
|
|
|
"""
|
|
|
- # FIXME: stops acquisition with external trigger after the next acquisition; signal to toggle function is not delivered instantly, but only after next acquisition?
|
|
|
thread = storage.get_board_specific_storage(board_id).setdefault('TriggerThread', storage.ThreadStorage())
|
|
|
if thread.running:
|
|
|
- # Elements.getElements("acquireTrigger_{}".format(board_id))[0].setText(tr("Button", "Start Acquisition"))
|
|
|
+ Elements.getElements("acquireTrigger_{}".format(board_id))[0].setText(tr("Button", "Stopping Acquisition"))
|
|
|
+ # FIXME: Button not updated otherwise:
|
|
|
+ QtGui.qApp.processEvents()
|
|
|
log(board_id=board_id, additional="Stop wait on trigger on board {}".format(board_id))
|
|
|
thread.quit()
|
|
|
thread.stop()
|
|
@@ -1413,7 +1414,6 @@ def _bif_start_wait_on_trigger(board_id, num_of_acquisitions=None, skip=None, ti
|
|
|
timeout = True
|
|
|
break
|
|
|
if self._quit:
|
|
|
- print('1')
|
|
|
self.finished.emit()
|
|
|
return
|
|
|
if not timeout:
|
|
@@ -1423,8 +1423,7 @@ def _bif_start_wait_on_trigger(board_id, num_of_acquisitions=None, skip=None, ti
|
|
|
board.pci.read_data_to_file(board_id, filename=filename, timeout=(self.timeout*1000000))
|
|
|
# board.pci.write(board_id, '000f0', hex_mask='4F0') # disable transfer
|
|
|
self.countUpdate.emit(copy.deepcopy(num_of_acq+1))
|
|
|
- if self._quit: # is this really the correct position? file is taken but not renamed! and in tests only '1' occurs
|
|
|
- print('2')
|
|
|
+ if self._quit: # is this really the correct position? file is taken but not renamed!
|
|
|
self.finished.emit()
|
|
|
break
|
|
|
|