Hello,
I had the same issue until recently. Will post as a reply here even though it is an old thread.
STEPS:
2. Unzip it into a folder on your computer. I unzipped it to a folder in My Documents:
C:\Users\******\Documents\Python\pylsl
3. Go to Psychopy > File > Preferences > General > paths
Insert your folder url in quotes, ie 'C:\Users\******\Documents\Python\pylsl' .
Now, go to your "Compile Script" view where you can see the Python code:
I wish to send markers into my EEG viewer:
from pylsl import StreamInfo, StreamOutlet
import time
import random
print ("Creating a new marker stream info...\n")
info = StreamInfo('PsychoPy','Markers',1,0,'int32','myuniquesourceid23443')
print("Opening an outlet...\n")
outlet =StreamOutlet(info)
print("Sending data...\n")
#Initialize the marker vector:
vec = []
#Inside the loop:
Hope this answers your question. Feel free to reach out to me. I would be happy to help with whatever I know.
Best,
Jithin