Commit 6fb754f0 authored by Francesco Tripaldi's avatar Francesco Tripaldi
Browse files

Fix Topup interlock 0,5mA

parent 1a0dbd20
......@@ -85,10 +85,10 @@ def main():
selfseq_dev.write_attribute("ScriptErr","Grid disabled or zero voltage during scan")
gun_dev.write_attribute('FastGridVoltage',starting_gun)
sys.exit(1)
# if topup_test_mode == True and (plc_status[9] == True or bool(trigger_gun.read_attribute("gun_trigger_on").value) == False):
# #print("Interlock dcct booster, stop")
# scan_stop = x
# break
if topup_test_mode == True and (plc_status[9] == True or bool(trigger_gun.read_attribute("gun_trigger_on").value) == False):
#print("Interlock dcct booster, stop")
scan_stop = x
break
#print("valore gun: " + str(x))
gun_dev.write_attribute('FastGridVoltage',x)
......@@ -133,7 +133,7 @@ def main():
selfseq_dev.write_attribute("topup_voltage",topup_grid)
except:
pass
print(topup_grid)
#print(topup_grid)
# calculate second order deriv.
y_conv = np.convolve(y1, yp, mode="same")
# best_vgrid = xp[np.where(y_conv == np.amin(y_conv))[0][0]]
......
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