samplepoints = int(sys.argv[1]) else: samplepoints = Fs * lamdalength print( 'Please remove the VGA connection that sometimes interfere with Mindwave') import numpy as np import mindwave, time import matplotlib.image as mpimg from Plotter import Plotter #headset = mindwave.Headset('/dev/tty.MindWaveMobile-DevA','ef47') filename = 'blinking.dat' headset = mindwave.OfflineHeadset(filename) time.sleep(2) plotter = Plotter(500, -500, 500) attention = 0 meditation = 0 eeg = 0 ts = time.time() st = datetime.datetime.fromtimestamp(ts).strftime('%Y-%m-%d-%H-%M-%S') logfilename = './data/eeg.' + st + '.dat' f = open(logfilename, 'w') window = []
# print (o1, o2) # features.append( [o1, o2] ) # # Slide window # window = window[N/2:N] # #window = window[1:N] print 'Please remove the VGA connection that sometimes interfere with Mindwave' import numpy as np import mindwave, time #headset = mindwave.Headset('/dev/tty.MindWaveMobile-DevA','ef47') headset = mindwave.OfflineHeadset() time.sleep(2) plotter = Plotter(500, -500, 5000) attention = 0 meditation = 0 eeg = 0 ts = time.time() st = datetime.datetime.fromtimestamp(ts).strftime('%Y-%m-%d-%H-%M-%S') filename = './data/eeg.' + st + '.dat' f = open(filename, 'w') window = []