You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have tried to plot the channel data through EEGLAB, but however, the event markers are all at time = 0.
The data was EEG data from Muse2 Headband and the events were from python (pylsl) as a marker stream.
This is the python code :
import serial
from pylsl import StreamInfo, StreamOutlet, local_clock
serial_port = 'COM4'
baud_rate = 9600
ser = serial.Serial(serial_port, baud_rate)
info = StreamInfo('MyMarkerStream', 'Markers', 1, 0, 'string', 'myuid34234')
outlet = StreamOutlet(info)
while True:
try:
line = ser.readline().decode('utf-8').strip()
timestamp = local_clock()
print(type([line]))
outlet.push_sample([line], timestamp)
print(f"Sent data: {line} hz at time: {timestamp}")
except KeyboardInterrupt:
print("Exiting...")
ser.close()
break
except Exception as e:
print(f"An error occurred: {e}")
The text was updated successfully, but these errors were encountered:
Please put triple-backticks before and after your code block so it is more legible.
But, as I mentioned in xdf-modules/xdf-Matlab#18, there's no problem with your Python code. The problem is either in how you're loading the data into EEGLAB or it's originating from the Muse source. I think the latter is more likely.
Can you please provide details about how you're getting an LSL stream from your Muse device?
Hi, I have tried to plot the channel data through EEGLAB, but however, the event markers are all at time = 0.
The data was EEG data from Muse2 Headband and the events were from python (pylsl) as a marker stream.
This is the python code :
The text was updated successfully, but these errors were encountered: