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

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

Bubfix

parent 030569ea
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,7 @@ 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]
if final_indices[-1]+1==AO_data.shape[0]:
if final_indices.size>0 and final_indices[-1]+1==AO_data.shape[0]:
# In the ANALOG_OUT table, there is a termination line. The time (cycle number) of this line
# should be one larger than the last outputs, but sometimes this seemed to be violated. I added
# this check to remove this line in any of those cases from trying to use it for 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