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

Fixed set_acquisition with t_measure and sample_rate

parent dcf4d0f7
No related branches found
No related tags found
No related merge requests found
......@@ -322,12 +322,15 @@ class sequencer():
raise Exception('Acquisition parameters cannot be changed after calling '
'get_measurement_results or get_measurement_param')
conf = self._acquisition_conf
update_num_samples = False
if t_measure:
conf.t_measure = t_measure
if sample_rate or conf.sample_rate:
self._set_num_samples()
update_num_samples = True
if sample_rate:
conf.sample_rate = sample_rate
update_num_samples = True
if update_num_samples:
self._set_num_samples()
if channels != []:
conf.channels = channels
......
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