diff --git a/script/Electric_field_twoval.py b/script/Electric_field_twoval.py index 6523489..3463088 100644 --- a/script/Electric_field_twoval.py +++ b/script/Electric_field_twoval.py @@ -13,7 +13,7 @@ caput ("X11PHS-E:OPT","PGM+ID2") #set ID2 to C+ -caput(OTF_MODE2,2) +caput(OTF_MODE2,1) caput(OTF_OFF2,OFFSETp) E1 = 778 # Edge @@ -61,9 +61,9 @@ for i in range(0,times): detector2 = keithley_2a.read() #Keithley2 detector4 = caget(OTF_MODE2) #polarization in ID2 M1 = float(detector2)/float(detector1) - temp_tey=temp_tey+M1; - ADC2_temp_E1=ADC2_temp_E1+detector2; - ADC1_temp_E1=ADC1_temp_E1+detector1; + temp_tey=M1; + ADC2_temp_E1=detector2; + ADC1_temp_E1=detector1;