Sending triggers: how to best invoke them?
J. Scott Saults
saultsj at missouri.edu
Mon Oct 2 19:29:44 UTC 2006
Since I don't see it, I'm afraid that I failed to send the message
with my code to the group , as I'd intended. (I might have just sent
it to Fabrizio.) Anyway, my initial idea for sending a realtime
response code was to run the following inline code (below)
immediately after presentation of a 200 ms Target (with a 150 ms
prerelease and a 2000 ms response interval.), which is then followed
by a 500 ms mask. I'm wondering whether the write port on termination
is better.
---------------------------
Dim keyboardMask As InputMask
Dim keyPending As Boolean
Dim responseOutData as Integer
Dim responseAccData as Integer
Dim kACC As Integer
WritePort &H378, 0
keyPending = True
sleep 10 'To reset the port - Could be done earlier elsewhere)
Set keyboardMask = Target.InputMasks(1)
Do While keyPending = keyboardMask.IsPending()
Loop
kACC = keyboardMask.ACC
responseOutData = c.GetAttrib("responseOutData")
responseAccData = kACC + responseOutData
WritePort &H378, responseAccData
----------------------------------------------------
Thanks.
J scott Saults
At 05:19 AM 10/2/06, you wrote:
>Hi all!
>
>Now that I've discovered how to send triggers, I'm trying to figure
>out the best way to place them inside the experiment. Placing small
>InLine scripts with a "WritePort" call is a straightforward, but
>unsatisfying solution, due to the delay between the InLine
>processing and the OnSet of the stimulus.
>
>Apparently, placing an InLine with OnSet instructions just before
>the target object, would do part of the trick (see E-Basic help for
>the RteRunnableInputObject.OnsetSignalEnabled property). But what if
>I want to send triggers when a subject answer? I've read a message
>of Paul Groot, posted not so long ago
>(http://listserv.linguistlist.org/cgi-bin/wa?A2=ind0605d&L=eprime&D=1&P=670)
>but I wonder whether waiting for a slide to terminate is reliable or
>not for timing issues. Could I profit the OffSet instructions
>instead? I'll try...
>.........................clip............
> Fabrizio Ferri Benedetti
> University of Valencia
> http://www.uv.es/fafebe
More information about the Eprime
mailing list