key press/release & RT
Courtney Griffin
ianajcxcx at gmail.com
Tue Nov 13 17:36:39 UTC 2012
Still working on getting this experiment running. I have run into a bit of
an issue. I now have two separate programs: 1) my actual
stimulus/experiment etc, for the experiment and 2) the simultaneous button
pressing portion (see experiment). when i try to merge the two, i.e. after
the instructions are presented, I want the the subject to hold down the two
buttons simultaneously and then move on to the actual experiment portion
for each trial. (so simultaneous button -> stimulus response, simultaneous
button -> stimulus response, etc) However, I cannot figure out how order
them correctly so that it will do one process first and then the other.
Either I keep getting these weird recursive loops or when I try to run the
program I think will work, E-Prime force closes. Any assistance would be
TRULY appreciated.
Please see links to attachments (get an error when trying to attach to this
post directly).
actual experiment:
https://docs.google.com/open?id=0B56AfyN3uE-FUUVxMERVYXYxeXM
button press: https://docs.google.com/open?id=0B56AfyN3uE-FV0piRzJGUTNLazA
On Tuesday, October 30, 2012 2:26:31 PM UTC-4, Courtney Griffin wrote:
>
> Hello all,
>
> I am programming my first experiment with E-Prime and have run into some
> issues I was hoping that someone might be able to help with. For my
> experiment I will be having subjects simultaneously hold down two keys (u
> and o), a stimulus is presented and they are to respond to it by releasing
> one of the two keys and making a movement to another to respond ({TAB} or
> {END}). Additionally, I would also like to record movement time (time from
> release of key to response) and reaction time (time of release of one of
> the initial keys). So far I have already gone in and allowed both Key
> Presses and Releases. My issue is actually how to get the program to
> recognize the release of the key and start recording the time, so I decided
> to use the Clock.Read function, but I'm not sure exactly how to implement
> it. Any assistance with this would be TRULY appreciated. Here is a bit of
> the code I have come up with, but I know that I am probably nowhere near
> where I need to be:
>
> Dim kbState As Integer
>
> Do
>
> If Keyboard.GetKeyState("u") = ebStatePress And _
> Keyboard.GetKeyState("o") = ebStatePress Then
>
> If kbState = Keyboard.GetKeyState ("{END}")= 0 Then
> Clock.Read
>
> ElseIf kbState = Keyboard.GetKeyState ("{TAB}") = 1 Then
> Clock.Read - Stimulus.OnsetTime
>
--
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.
To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/-1VzCQIbIm0J.
For more options, visit https://groups.google.com/groups/opt_out.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20121113/546e1164/attachment.htm>
More information about the Eprime
mailing list