Commit 2dcadf2b authored by Francesco Tripaldi's avatar Francesco Tripaldi
Browse files

Better loop in TopUp Test

parent 21d7b441
......@@ -100,7 +100,11 @@ def main():
first_time = True
temp_store =0
for mean in range(0, dcct_samples,1):
temp_store += dcct_dev.read_attribute('BCurrent').value
if topup_test_mode == True and (plc_status[9] == True or bool(trigger_gun.read_attribute("gun_trigger_on").value) == False):
dcct_samples = mean+1
break
else:
temp_store += dcct_dev.read_attribute('BCurrent').value
time.sleep(interval)
dcct_value = temp_store/dcct_samples
X.append(x)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment