Triggers for oddball task

Hi, guys.

I’m programmin an oddball task to collect P300 erps for my motivation study. I programmed the stimuli presentation in such a way that my oddball can appear at the 7th, 8th, 9th or 10th position. I programmed the oddball task easily with the builder. But now, I’m figuring out whether I can use the builder stuff for sending triggers. The program must send a trigger as soon as the oddball is presented. I’m thinking of using the code component and write out a small “if” instruction. Does anyone have another clue?

It would need to be tied to the method you use to determine what trial the oddball appears on. So show us how you do that, and we can give some suggestions.