Sending second trigger code to EEG system

124 views
Skip to first unread message

Jaclyn Dell

unread,
Jun 7, 2019, 8:20:10 AM6/7/19
to E-Prime
Greetings!

I need to send response triggers to my EEG software and cannot figure out how to do it. I wrote inline code using the "Writeport" function, exactly as I did with the event trigger codes, but it does not recognize it the second time. Ideas?

Thank you in advance!

Jaclyn Dell

McFarlane, David

unread,
Jun 7, 2019, 12:05:47 PM6/7/19
to e-p...@googlegroups.com
Jaclyn,

First of all, if you use EP2.0.10 Professional or later, then you would
do better to use either Task Events (no inline code needed) or something
like ParallelPort.WriteByte (in inline code) instead of WritePort.

Second, however you do it, make sure that you output your signal or
trigger for long enough for your external equipment to detect it (say,
10 ms), and then to reset (i.e., rezero) the signal/trigger before
outputting another one. If you use Task Events, you could add two Task
Events to the same object -- set one Task Event with delay 0 to output
whatever signal/trigger you want, then add a second Task Event with a
delay of, say, 10 and use that to set the output back to 0.

-- David McFarlane

Jaclyn Dell

unread,
Jun 10, 2019, 11:53:48 AM6/10/19
to E-Prime
Thank you, David. I am pretty sure I am using an older version. I tried to add Sleep(10) between the trigger codes, but to no avail. It sends my original trigger codes using the Writeport function, but not the accuracy codes.
Reply all
Reply to author
Forward
0 new messages