Task Events - Sending multiple triggers at the same time?

337 views
Skip to first unread message

leonie.balt...@gmail.com

unread,
Aug 30, 2016, 11:40:43 AM8/30/16
to E-Prime
Hi,

I am using Task Events to send triggers to an EEG recording system (ANT Neuro system) through a parallel port. 
I am trying to send different triggers at the exact same time however only some of the triggers are being recorded. For example: I send an '100' for Fixation.Onset and the condition number (which can vary from 1 to 32). So I should receive the trigger '100' and for example '23'. I wonder if I am doing something wrong? I put the signal value back to zero after 50ms.
My question is: Is it possible to send multiple triggers at the same time for the same event?

Many thanks! Leonie

David McFarlane

unread,
Aug 30, 2016, 1:22:08 PM8/30/16
to e-p...@googlegroups.com
Leonie,

Suppose you set up the following Task Events:
Fixaton.OnsetTime
- Delay: 0
- Action: WriteByte
- Custom: 100
Fixaton.OnsetTime
- Delay: 0
- Action: WriteByte
- Custom: 23
Fixaton.OnsetTime
- Delay: 50
- Action: WriteByte
- Custom: 0

This will *not* work well. This would try to output "100" and "23"
simultaneously on the same channel. It would be like writing down "I
love you", and then overwriting that with "I hate you" -- the final,
combined written message would look garbled, sort of like "I lhoavte
you", except with the letters actually overlapping.

Suppose instead you meant to do this:
Fixaton.OnsetTime
- Delay: 0
- Action: WriteByte
- Custom: 100
Fixaton.OnsetTime
- Delay: 50
- Action: WriteByte
- Custom: 23
Fixaton.OnsetTime
- Delay: 100
- Action: WriteByte
- Custom: 0

That should work, you should get two signals just 50 ms apart, which may
be good enough.

Hope that helps.
---------------
David McFarlane
E-Prime training online:
http://psychology.msu.edu/Workshops_Courses/eprime.aspx
Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster)

Leonie Balter

unread,
Aug 30, 2016, 3:35:26 PM8/30/16
to e-p...@googlegroups.com
Thanks for your fast response and clear explanation. If I set the signal value back to zero after 50ms for one and for the other after 100ms, this also means that the trigger is being sent 50ms later? Can I also use a delay of 10 for one trigger and 50 for the second trigger? (I use a sampling rate of 500Hz).

I will immediately try it tomorrow!




On 2016-08-30 11:40 AM, leonie.balter.bioactor@gmail.com wrote:
I am using Task Events to send triggers to an EEG recording system (ANT
Neuro system) through a parallel port.
I am trying to send different triggers at the exact same time however only
some of the triggers are being recorded. For example: I send an '100' for
Fixation.Onset and the condition number (which can vary from 1 to 32). So I
should receive the trigger '100' and for example '23'. I wonder if I am
doing something wrong? I put the signal value back to zero after 50ms.
My question is: Is it possible to send multiple triggers at the same time
for the same event?

Many thanks! Leonie

--
You received this message because you are subscribed to a topic in the Google Groups "E-Prime" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/e-prime/76ZHZYy_C6E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to e-prime+unsubscribe@googlegroups.com.
To post to this group, send email to e-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/57C5C0B2.5030803%40msu.edu.

For more options, visit https://groups.google.com/d/optout.



--
Leonie Balter
Trainee

A: Biopartner Center | Oxfordlaan 70 | 6229 EV Maastricht | The Netherlands

David McFarlane

unread,
Aug 30, 2016, 5:50:07 PM8/30/16
to e-p...@googlegroups.com
Leonie,

Ah, your response reminds me that I made a mistake there! Try something
more like:

Fixaton.OnsetTime
- Delay: 0
- Action: WriteByte
- Custom: 100
Fixaton.OnsetTime
- Delay: 50
- Action: WriteByte
- Custom: 0
Fixaton.OnsetTime
- Delay: 100
- Action: WriteByte
- Custom: 23
Fixaton.OnsetTime
- Delay: 150
- Action: WriteByte
- Custom: 0

You see, I neglected to reset the output to 0 before outputting the
second signal! I fixed that in the above, so that now it would output
the first signal at the OnsetTime, then 50 ms later reset the output to
0, then 50 ms after that output the second signal, and another 50 ms
later reset the output to 0 again. So as you said, the second signal
actually gets output 100 ms after the OnsetTime.

And yes, you might titrate the delay values to see what works with your
equipment. With some equipment I have seen delays as short as 1 ms
work. 10 ms delays seems like a good starting point.

-- David McFarlane

Leonie Balter

unread,
Aug 31, 2016, 1:56:35 PM8/31/16
to e-p...@googlegroups.com
Hi David,

I tried your suggestions today and everything works perfectly now. Thanks!

Leonie

On 2016-08-30 11:40 AM, leonie.balter.bioactor@gmail.com wrote:

I am using Task Events to send triggers to an EEG recording system (ANT
Neuro system) through a parallel port.
I am trying to send different triggers at the exact same time however only
some of the triggers are being recorded. For example: I send an '100' for
Fixation.Onset and the condition number (which can vary from 1 to 32). So
I
should receive the trigger '100' and for example '23'. I wonder if I am
doing something wrong? I put the signal value back to zero after 50ms.
My question is: Is it possible to send multiple triggers at the same time
for the same event?

Many thanks! Leonie
--
You received this message because you are subscribed to a topic in the Google Groups "E-Prime" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/e-prime/76ZHZYy_C6E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to e-prime+unsubscribe@googlegroups.com.
To post to this group, send email to e-p...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages