Sending Keyboard responses to OnsetSignalPort

226 views
Skip to first unread message

semeon...@gmail.com

unread,
Sep 25, 2014, 10:51:15 PM9/25/14
to e-p...@googlegroups.com
Hello,

I'm attempting to have participant keyboard responses sent as an OffsetSignalPort per trial, but I need some help developing the inline statement to run to generate this.

This is an example of the inline I'm working with so far.

Stimulus.OnsetSignalEnabled = True
Stimulus.OnsetSignalPort = SPort
Stimulus.OnsetSignalData = c.GetAttrib("Trigger")

Stimulus.OffsetSignalEnabled = True
Stimulus.OffsetSignalPort = SPort
Stimulus.OffsetSignalData = 0

- Semeon

David McFarlane

unread,
Sep 26, 2014, 10:02:45 AM9/26/14
to e-p...@googlegroups.com
Semeon,

That would be nice wouldn't it? But I do not see any way to use the
stimulus OffsetSignal to output a response measure. OffsetSignal
values are set statically before the stimulus object runs, so it does
not have any mechanism for outputting a value determined dynamically
during the stimulus.

But for other ideas on this, see the threads at
https://groups.google.com/d/topic/e-prime/z8PQMH1cf70 ,
https://groups.google.com/d/topic/e-prime/7w5ajYuHqgw , and
https://groups.google.com/d/topic/e-prime/OeiZ00V9SRc . A few more comments:

- These threads boil down to using WritePort at the time of response.
- Alternatively, you could follow the stimulus with inline code to
set the OnsetSignalData of the next object, and let the next object
(e.g., a Wait object with Duration 0) output the signal.
- With Task Events, you could skip all the inline code and use an
object after your stimulus to output the response measure (see, e.g.,
https://groups.google.com/d/topic/e-prime/fAHqIoYiW1A ).

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

/----
Stock reminder: 1) I do not work for PST. 2) You may reach PST's
trained staff (and other support facilities) at
https://support.pstnet.com . 3) If you do get an answer from PST
staff, please extend the courtesy of posting their reply back here
for the sake of others.
\----

semeon...@gmail.com

unread,
Sep 28, 2014, 11:00:41 AM9/28/14
to e-p...@googlegroups.com
The links did help actually. Thanks!

- Semeon
Reply all
Reply to author
Forward
0 new messages