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

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

ADwin: Bugfix for PID error check (we I set output at end, I still got the error)

parent b29d6ee4
No related branches found
No related tags found
No related merge requests found
......@@ -379,7 +379,7 @@ class ADwinAO8(_ADwinCard):
# - at least once in the end the output is (re)set, otherwise the get_final_values() in the Worker is wrong,
# - don't try to also set the target value at the same time, as this would overwrite the target in the ADwin with the PID output.
if PID[t]["start"]=="last":
if i_out+1==len(output.all_times):
if i_out+1==len(output.all_times) and output.raw_output[i_out]==100_000:
raise LabscriptError(f"{output.name}: You must set the output at the end after turning off PID with 'last'.")
elif output.all_times[i_out] == t:
raise LabscriptError(f"{output.name}: Don't turn off PID with persitent value ('last') and also set new value.")
......
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