Exemplo n.º 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)
Exemplo n.º 2
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)
Exemplo n.º 3
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)
Exemplo n.º 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)
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 7
0
 def data_recv(self):
     return data.start_data_thread(self.sock, 
             self.cache, 
             self.run_chk, 
             self.low_battry)
Exemplo n.º 8
0
 def data_recv(self):
     return data.start_data_thread(self.sock, self.cache, self.run_chk,
                                   self.low_battry)
Exemplo n.º 9
0
def OpenCsv():

    data.start_data_thread()
    cache = data.data_cache
    return cache
Exemplo n.º 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"
Exemplo n.º 11
0
def OpenCsv():

    data.start_data_thread()
    cache = data.data_cache
    return cache
Exemplo n.º 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)
Exemplo n.º 13
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)