diff --git a/script/Electric_field_twoval.py b/script/Electric_field_twoval.py index 3463088..f6654fc 100644 --- a/script/Electric_field_twoval.py +++ b/script/Electric_field_twoval.py @@ -61,9 +61,8 @@ 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=M1; - ADC2_temp_E1=detector2; - ADC1_temp_E1=detector1; + ADC2_E1=detector2; + ADC1_E1=detector1; @@ -76,9 +75,9 @@ for i in range(0,times): detector2 = keithley_2a.read() #Keithley2 detector4 = caget(OTF_MODE2) #polarization in ID2 M2 = float(detector2)/float(detector1) - temp_tey_E2=temp_tey+M1; - ADC2_temp_E2=ADC2_temp_E2+detector2; - ADC1_temp_E2=ADC1_temp_E2+detector1; + tey_norm=M1/M2; + ADC2_E2=detector2; + ADC1_E2=detector1; filename.write(" %f %f %e %f %e %e %s \n" %(V1, E1, ADC2_E1, E2, ADC2_E2, tey_norm, detector4)); @@ -97,9 +96,8 @@ 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; + ADC2_E1=detector2; + ADC1_E1=detector1; @@ -112,9 +110,9 @@ for i in range(0,times): detector2 = keithley_2a.read() #Keithley2 detector4 = caget(OTF_MODE2) #polarization in ID2 M2 = float(detector2)/float(detector1) - temp_tey_E2=temp_tey+M1; - ADC2_temp_E2=ADC2_temp_E2+detector2; - ADC1_temp_E2=ADC1_temp_E2+detector1; + temp_norm=M1/M2; + ADC2_E2=detector2; + ADC1_E2=detector1; filename.write(" %f %f %e %f %e %e %s \n" %(V2, E1, ADC2_E1, E2, ADC2_E2, tey_norm, detector4));