*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit d3861bcc authored by Schabbauer, Johannes's avatar Schabbauer, Johannes
Browse files

ADwin: Fixed error in get_final_values AGAIN

parent f74b41c8
No related branches found
No related tags found
No related merge requests found
......@@ -113,8 +113,10 @@ class ADwinProIIWorker(Worker):
stop_time_quantized = np.round(self.stop_time * CLOCK_T12 / self.PROCESSDELAY)
AO_data = group["ANALOG_OUT/VALUES"]
final_indices = np.nonzero(AO_data["n_cycles"] == stop_time_quantized)[0]
for idx in final_indices[:-1]:
final_values[AO_channel_map[AO_data["channel"][idx]]] = DAC(AO_data["value"][idx])
if final_indices[-1]==AO_data.shape[0]:
final_indices = final_indices[:-1]
for idx in final_indices:
final_values[AO_channel_map[AO_data["channel"][idx]]] = DAC(AO_data["value"][idx])
return final_values
......
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