Sending Multiple EEG triggers for 1 sampler item
Hello Open Sesame Community,
For my latest experiment, I've recently switched to using Open Sesame.
I'm planning to conduct an ERP experiment, in which the participants will be presented with spoken sentences through a sampler item.
I would like to send multiple triggers for each sentence, for example at the start of the sentence, the start of the target word and the end of the sentence. My question is how to arrange this. On the Forum I could only find examples of scripts sending out 1 trigger per stimulus.
Would it be possible to write one single in line script that sends out three triggers, or would I need to create three different inline scripts, each for the trigger in question?
I've been trying to write the code needed for this, but I'm unsure if it would work. This is what I wrote so far (the Trigger and Delay variables would be in my loop item):
trigger = var.Trigger #Is it possible to define multiple triggers here? E.g. Trigger1, Trigger2, Trigger3?
port = 0x378
print 'Failed to send trigger!'
var.Trigger1 = clock.time() #trigger start soundfile
var.Trigger2 = clock.time()+ var.Delay1 #second trigger onset target
var.Trigger3 = clock.time()+ var.Delay2 #third trigger offset target
I hope someone could share some insights on how to send multiple triggers.
Thanks in advance!