Skip to content
Snippets Groups Projects
Commit 85c9b3b6 authored by Sander Snoo's avatar Sander Snoo
Browse files

Fixed wait time for acquire with n_repeat

parent 309fa415
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,8 @@ class acquisition_data(parent_data):
if acquisition.t_measure is None:
raise Exception('t_measure must be specified when wait is not None in acquire()')
end_time += acquisition.t_measure
if acquisition.n_repeat:
end_time += (acquisition.n_repeat-1) * acquisition.interval
if end_time > self.end_time:
self.end_time = end_time
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment