This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
I_TARGET_mA=0
|
||||
V_TARGET_V=600
|
||||
T_WAIT_ms=5000
|
||||
|
||||
EPSILON=0.1
|
||||
if abs(fil.read()) > EPSILON:
|
||||
raise Exception("Filament not at 0.0 - Set it to zero using: fil.write(0.)")
|
||||
if abs(bv.read()) > EPSILON:
|
||||
raise Exception("Bombardment voltage not at 0.0 - Set it to zero using: bv.write(0.)")
|
||||
|
||||
fil.write(I_TARGET_mA)
|
||||
time.sleep(float(3500)/1000)
|
||||
bv.write(V_TARGET_V)
|
||||
|
||||
time.sleep(float(T_WAIT_ms)/1000)
|
||||
|
||||
bv.write(0.0)
|
||||
time.sleep(float(500)/1000)
|
||||
fil.write(0.0)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user