|
@@ -1308,6 +1308,7 @@ def _bif_start_wait_on_trigger(board_id, num_of_acquisitions=None, skip=None, ti
|
|
|
read sequentially
|
|
|
:return: -
|
|
|
"""
|
|
|
+ board.flush_dma(board_id) # TODO: really at beginning and end of function necessary?
|
|
|
thread = storage.get_board_specific_storage(board_id).setdefault('TriggerThread', storage.ThreadStorage())
|
|
|
if thread.running:
|
|
|
logging.info("Wait already running on board {}".format(board_id))
|
|
@@ -1449,6 +1450,7 @@ def _bif_start_wait_on_trigger(board_id, num_of_acquisitions=None, skip=None, ti
|
|
|
board.pci.write(board_id, '0', '902C')
|
|
|
time.sleep(0.1)
|
|
|
board.pci.write(board_id, '3f0', hex_mask='ff0') # TODO: This writes t/h 3/4 but enable_transfer etc do not
|
|
|
+ board.flush_dma(board_id)
|
|
|
|
|
|
def finished():
|
|
|
'''Handle the end of the thread'''
|
|
@@ -1457,6 +1459,7 @@ def _bif_start_wait_on_trigger(board_id, num_of_acquisitions=None, skip=None, ti
|
|
|
board.pci.write(board_id, '0', '902C')
|
|
|
time.sleep(0.1)
|
|
|
board.pci.write(board_id, '3f0', hex_mask='ff0') # TODO: This writes t/h 3/4 but enable_transfer etc do not
|
|
|
+ board.flush_dma(board_id)
|
|
|
|
|
|
thread.stop()
|
|
|
board.get_board_status(board_id).wait = False
|