Hello, everyone,
I am currently using Wearable Sensing’s DSI-24 system to collect EEG data in an experiment organized and run through PsychoPy.
While I can successfully send trigger signals during the experiment (e.g., events numbered 1–16), I noticed that no annotations or comments are being logged alongside the triggers in the EDF+ file. This causes issues during analysis.
For instance, when I attempt to analyze the data using MNE-Python or EEGLAB in MATLAB, I encounter errors that prevent me from importing either the events or the entire dataset.
My goal is to include additional annotations or labels (e.g., specific event descriptions) along with the trigger numbers in the EDF+ file.
Is there a way to log these additional annotations alongside the triggers?
Here is the relevant portion of my trigger-sending code. If needed, I can share the full experimental code for better context.
def setup_trigger():
mmbts = serial.Serial()
mmbts.port = 'COM8'
mmbts.open()
return mmbts
def send_trigger(mmbts, trigger_code=1):
try:
mmbts.write(bytes(bytearray([trigger_code])))
except Exception as e:
print(f"trigger sending error: {e}")
Thank you in advance for your help and insights!