Hi all.
I am using Psychopy in conjunction with NIRx to collect fNIRS data, using LSL triggers to event-label the data.
I have successfully used “Begin Routine”: outlet.push_sample(x=[marker])
and “End Routine” for the end of the trial.
Ideally, I would like to be able to send multiple LSL triggers in the same trial, trigger by keyboard responses, using the “Each Frame” section. However, I am unsure of the specific custom code for this. I have built the keyboard responses into the trial but just don’t know how to code the LSL trigger component.
Many thanks in advance!