Trigger (stimulus) codes sent on response to EEG recording

David McFarlane mcfarla9 at msu.edu
Thu Mar 22 20:32:25 UTC 2012


If you use EP2.0.10.182 *Professional* or later then you are in luck 
-- see the new Task Events feature documented at 
http://www.pstnet.com/support/kb.asp?TopicID=4803 .  (Remember, I 
have uniformly advised everyone to spend the extra money for 
Professional, no matter what PST advises.)

If you do not have EP2.0.10.182 Pro, then you might look at 
http://groups.google.com/group/e-prime/browse_thread/thread/cfc3d0307d5c7fbd 
and 
http://groups.google.com/group/e-prime/browse_thread/thread/ef0e5a8d8b87aa0c 
for hints.  Or, of course, take this up with PST Web Support at 
http://support.pstnet.com/e%2Dprime/support/login.asp , where they 
strive to respond to all requests in 24-48 hours.  And if you do get 
an answer from PST staff, please extend the courtesy of posting their 
reply back here for the sake of others.

BTW, although your particular inline code for the stimulus signal 
works well enough (which is a virtue), it suffers in efficiency.  I 
have an entire lesson about handling these sorts of things in my 
online course (although that lesson does not address your precise 
response signal question).

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


At 3/22/2012 03:52 PM Thursday, you wrote:
>I'm working on a project that involves interfacing an E-Prime
>experiment with the ActiView/Biosemi interface for EEG recording.
>
>I have this in the UserScript:
>Const Sport as Integer = &H378
>
>Every time an image appears, this code is sent immediately before:
>
>InLine:
>Intermediary.OnsetSignalEnabled = True
>Intermediary.OnsetSignalPort = Sport
>Intermediary.OnsetSignalData = c.GetAttrib("IntermediaryCode")
>
>Intermediary.OffsetSignalData = 0
>Intermediary.OffsetSignalPort = Sport
>Intermediary.OffsetSignalEnabled = True
>
>This works fine. The task then presents the participant with images,
>to one of which they respond; the image is on-screen for 500ms,
>followed by a fixation cross for another 500ms. They can respond at
>any point, but the image & cross are on-screen for a set amount of
>time. What I'd like is for the stimcode to be sent as soon as possible
>after the response. I've been successful in sending a response code
>after fixation cross goes away, using the following code:
>
>InLine:
>If TaskImage.RESP = "l" Then
>         resp = 55
>     ElseIf TaskImage.RESP = "s" Then
>         resp = 56
>     ElseIf TaskImage.RESP = "o" Then
>         resp = 57
>     ElseIf TaskImage.RESP = "w" Then
>         resp = 58
>     ElseIf TaskImage.RESP = "" Then
>         resp = 59
>     Else resp = 60
>End If
>
>FixationCross2.OnsetSignalEnabled = True
>FixationCross2.OnsetSignalPort = Sport
>FixationCross2.OnsetSignalData = resp
>
>FixationCross2.OffsetSignalEnabled = True
>FixationCross2.OffsetSignalPort = Sport
>FixationCross2.OffsetSignalData = 0
>
>However, this only works by sending itself at the beginning of a new
>fixation cross. Ideally, subject responses would be sent WHEN they
>respond. But I can't figure out how to do that. Is there some function
>equivalent to "OnResponse"? It seems like it should be possible, but
>I'm not sure how to do it.
>
>Thanks for your help!

-- 
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.



More information about the Eprime mailing list