def on_ButtonStart_clicked(self, checked): global Cache global startTime """ Slot documentation goes here. """ # TODO: not implemented yet self.hide() DlgHolter.show() global startTime global allTime startTime = time.time() # allTime to use here allTime = init_An24.battry(init_An24.sock) DlgHolter.timerCount.start(1000) DlgHolter.timerSound.start(500) #Cache = OpenCsv() data.start_data_thread(init_An24.sock) #!!!!!!!!!!!!!! startTime = int(time.time()) Cache = data.data_cache DlgHolter.timerPaint.start(1000) #!!!!!!!!!!!!!! DlgPregSim.timer.start(250)
def on_ButtonStart_clicked(self, checked): global Cache global startTime """ Slot documentation goes here. """ # TODO: not implemented yet self.hide() DlgHolter.show() global startTime global allTime startTime=time.time() # allTime to use here allTime = init_An24.battry(init_An24.sock) DlgHolter.timerCount.start(1000) DlgHolter.timerSound.start(500) #Cache = OpenCsv() data.start_data_thread(init_An24.sock) #!!!!!!!!!!!!!! startTime = int(time.time()) Cache = data.data_cache DlgHolter.timerPaint.start(1000) #!!!!!!!!!!!!!! DlgPregSim.timer.start(250)
def data_recv(self,handle): data.start_data_thread(self.sock, self.cache, self.run_chk, self.low_battry, self.stop, self._addr, self._count_pos, self.out_of_range, handle)
def OpenCsv(): #file=open(path,'r') #reader=csv.reader(file) data.start_data_thread() cache = data.data_cache ''' for line in reader: if line[0]!='Time': data=[5, 5, 5, 5, 5, 5] data[0]=float(line[2]) #FHR data[1]=float(line[1]) #MHR data[2]=int(line[5]) #EHG data[3]=int(line[3]) #MMov data[4]=float(0) #SNR data[5]=int(line[4]) #Event cache.append(data) ''' return cache
def OpenCsv(): # file=open(path,'r') # reader=csv.reader(file) data.start_data_thread() cache = data.data_cache """ for line in reader: if line[0]!='Time': data=[5, 5, 5, 5, 5, 5] data[0]=float(line[2]) #FHR data[1]=float(line[1]) #MHR data[2]=int(line[5]) #EHG data[3]=int(line[3]) #MMov data[4]=float(0) #SNR data[5]=int(line[4]) #Event cache.append(data) """ return cache
def data_recv(self): return data.start_data_thread(self.sock, self.cache, self.run_chk, self.low_battry)
def OpenCsv(): data.start_data_thread() cache = data.data_cache return cache
import data # import threading addr = "00:80:98:0E:39:77" print "0000000000" """ threading.Thread(target=data.data_recv_An24, args=(addr,) ).start() """ data.start_data_thread() print "1111" data_cache = data.data_cache import time while 1: time.sleep(1) print data_cache print "2222"
def data_recv(self): data.start_data_thread(self.sock, self.cache, self.run_chk, self.low_battry, self.stop, self._addr, self._count_pos)
def data_recv(self): data.start_data_thread(self.sock,self.cache,self.run_chk,self.low_battry,self.stop,self._addr,self._count_pos)