/Designs/Measuring_instruments/ISMS01A/SW/test.csv
File deleted
/Designs/Measuring_instruments/ISMS01A/SW/ISMS_read.py
69,7 → 69,7
before = time.time()-interval
while True:
filename = path + time.strftime("%Y%m%d%H", time.gmtime()) +"_"+ stationName + "_data.csv"
filename = path + time.strftime("%Y%m%d%H", time.gmtime()) +"0000_"+ stationName + "_data.csv"
now = time.time()
if (now - before >= interval - 2.5): # 0.5*5 channels= 2.5s
98,7 → 98,7
 
sys.stdout.write("%s \t %0.3f \t %0.3f \t %0.3f \t %0.3f \t %0.3f \n" % (datetime.datetime.now().isoformat(), channel1, channel2, channel3, channel4, channel5))
 
f.write("%d\t%0.3f\t%0.3f\t%0.3f\t%0.3f\t%0.3f\n" % (time.time(), channel1, channel2, channel3, channel4, channel5))
f.write("%d;%0.3f;%0.3f;%0.3f;%0.3f;%0.3f\n" % (time.time(), channel1, channel2, channel3, channel4, channel5))
f.flush()
 
sys.stdout.flush()