If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. Win10): WIN11
PsychoPy version: 2025.1.1:
Standard Standalone Installation? yes
Do you want it to also run online? no
What are you trying to achieve?:
I want to send triggers (video_on, video_off) from PsychoPy (builder) to an EOG recording software via lab streaming layer (turned on in the EOG recording software).
What did you try to make it work?:
Tried a solution proposed by gemini:
Begin experiment tab in a code component before video routine (e.g. instructions routine)
from pylsl import StreamInfo, StreamOutlet
info = StreamInfo(name='PsychoPy_Markers', type='Markers', channel_count=1, nominal_srate=0, channel_format='string', source_id='PsychoPy_LSL_Source')
global outlet
outlet = StreamOutlet(info)
In the video routine in the beginn routine tab of a code component
if 'outlet' in globals():
outlet.push_sample(['video_on'])
In the end routine tab
if 'outlet' in globals():
outlet.push_sample(['video_off'])
What specifically went wrong when you tried that?:
PsychoPy breaks immediately after pressing the run button without the possibilty to check the error message.
Thank you for any help!
