basically I want it to go something like this:<br><br>at stimulus display, read the clock and get the time (will name this variable T1)<br>after key release, read the clock and get that time (will name this variable T2)<br>at key press (final response), read the clock and get that time (will name variable T3)<br><br>RT (reaction time) = T2-T1<br>MT (movement time) = T3-T1<br><br><br>On Tuesday, October 30, 2012 2:26:31 PM UTC-4, Courtney Griffin wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><span><span><span><span><span>Hello all,<br>
<br>
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. </span></span></span></span></span><span><span><span><span><span><span><span><span><span><span>
Any assistance with this would be TRULY appreciated. </span></span></span></span></span>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:<br>
<br>
Dim kbState As Integer<br>
<br>
Do<br>
<br>
If Keyboard.GetKeyState("u") = ebStatePress And _<br>
Keyboard.GetKeyState("o") = ebStatePress Then <br>
<br>
If kbState = Keyboard.GetKeyState ("{END}")= 0 Then<br>
Clock.Read<br>
<br>
ElseIf kbState = Keyboard.GetKeyState ("{TAB}") = 1 Then<br>
Clock.Read - Stimulus.OnsetTime<br></span></span></span></span></span></blockquote>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br />
To post to this group, send email to e-prime@googlegroups.com.<br />
To unsubscribe from this group, send email to e-prime+unsubscribe@googlegroups.com.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msg/e-prime/-/yCf3l99sWIYJ">https://groups.google.com/d/msg/e-prime/-/yCf3l99sWIYJ</a>.<br />
For more options, visit <a href="https://groups.google.com/groups/opt_out">https://groups.google.com/groups/opt_out</a>.<br />
<br />
<br />