Automatic commit. Thu Sep 13 12:00:07 WST 2012
[matches/honours.git] / research / TCS / interface.py
index 9e39fd4..5e8430e 100755 (executable)
@@ -218,10 +218,10 @@ def main():
        # Experiment
        # TODO: Modify data to record here
        sweep = 1
-       for i in range(0,5):
-       #while True:
+       #for i in range(0,5):
+       while True:
                os.system("mkdir -p " + getDate())
-               record_data([5], getDate()+"/"+str(getTime())+".dat", None, 4000)
+               record_data([5], getDate()+"/"+str(getTime())+".dat", None, 4001)
                sweep += 1
        #setDAC(500)
 
@@ -371,7 +371,8 @@ def record_data(ADC_channels, output, pollTime = None, dac_max = None):
                                data[len(data)-1].append(adc[2])
                        out.write("\n") 
        
-       
+               #gnuplot("set yrange [0:1023]")
+               #gnuplot("set xrange [0:4000]")
                gnuplot.plot(Gnuplot.Data(data, title="t = "+str(measure_time), with_="lp", using="2:3"))
        for out in output:              
                if out != sys.stdout:

UCC git Repository :: git.ucc.asn.au