예제 #1
0
    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)
예제 #2
0
파일: main.py 프로젝트: dizhipeng/Project-1
 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)
예제 #3
0
파일: AN24.py 프로젝트: dizhipeng/Project-1
 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)
예제 #4
0
 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)
예제 #5
0
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
예제 #6
0
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
예제 #7
0
파일: AN24.py 프로젝트: dizhipeng/Project-1
 def data_recv(self):
     return data.start_data_thread(self.sock, 
             self.cache, 
             self.run_chk, 
             self.low_battry)
예제 #8
0
 def data_recv(self):
     return data.start_data_thread(self.sock, self.cache, self.run_chk,
                                   self.low_battry)
예제 #9
0
def OpenCsv():

    data.start_data_thread()
    cache = data.data_cache
    return cache
예제 #10
0
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"
예제 #11
0
def OpenCsv():

    data.start_data_thread()
    cache = data.data_cache
    return cache
예제 #12
0
 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)
예제 #13
0
파일: AN24.py 프로젝트: dizhipeng/Project-1
 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)