# Triggers for oddball task

**URL:** https://discourse.psychopy.org/t/triggers-for-oddball-task/8183
**Category:** Builder
**Created:** [June 19, 2019, 7:07pm UTC](https://discourse.psychopy.org/t/triggers-for-oddball-task/8183 "2019-06-19T19:07:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Marcelo\_Silveira](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/marcelo_silveira/32/2990_2.png) [@Marcelo\_Silveira](https://discourse.psychopy.org/u/Marcelo_Silveira)
#### Post date: [June 19, 2019, 7:07pm UTC](https://discourse.psychopy.org/t/triggers-for-oddball-task/8183/1 "2019-06-19T19:07:34Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![Michael](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/michael/32/16_2.png) [@Michael](https://discourse.psychopy.org/u/Michael)
#### Post date: [June 20, 2019, 1:10am UTC](https://discourse.psychopy.org/t/triggers-for-oddball-task/8183/2 "2019-06-20T01:10:33Z")

</div>

> [@Marcelo\_Silveira](#):
>
> 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.
