-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEMG.py
39 lines (38 loc) · 1.17 KB
/
EMG.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
class EMG:
channel_one=[]
channel_two=[]
channel_three=[]
channel_four=[]
channel_five=[]
channel_six=[]
channel_seven=[]
channel_eight=[]
channel_nine=[]
channel_ten=[]
channel_eleven=[]
channel_twelve=[]
channel_thirteen=[]
channel_fourteen=[]
channel_fifteen=[]
channel_sixteen=[]
all_channel_data=[]
time=[]
def update_emg_data(self,data,time):
self.all_channel_data.append(data)
self.channel_one.append(data[0])
self.channel_two.append(data[1])
self.channel_three.append(data[2])
self.channel_four.append(data[3])
self.channel_five.append(data[4])
self.channel_six.append(data[5])
self.channel_seven.append(data[6])
self.channel_eight.append(data[7])
self.channel_nine.append(data[8])
self.channel_ten.append(data[9])
self.channel_eleven.append(data[10])
self.channel_twelve.append(data[11])
self.channel_thirteen.append(data[12])
self.channel_fourteen.append(data[13])
self.channel_fifteen.append(data[14])
self.channel_sixteen.append(data[15])
self.time.append(time)