Michiel, thanks for your input. I had not considered the time it would take to write things. I will look into this.<br><br>On Tuesday, November 6, 2012 6:19:03 AM UTC-5, Michiel Sovijärvi-Spapé wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Hi,
<br>Just to add, that depends on whatever she means with "basic text" - I'd
<br>agree with you that normally, you'd think this is a textdisplay, but what if
<br>she meant "some text displayed using e-basic"? In other words, canvas,
<br>right?
<br>Generally, the point is that the vertical sync is messed up if you'd just
<br>say
<br>10 c.setattrib textonsettime, clock.read
<br>20 write text to canvas
<br>Because it can take long and short to write things actually to the screen
<br>(also depending on how much you put there). Now, there's two tricks:
<br>1) Display.waitforverticalblank makes sure you have the synchronisation
<br>working (i.e. things aren't appearing halfway)
<br>2) use a second canvas first to write everything to, then copy this canvas
<br>to the active display. The first bit (writing stuff) takes much longer than
<br>just copying the already made pictures.
<br>
<br>Does that help? All in all, once upon a time, I loved doing everything in
<br>canvas things, but nowadays (perhaps with less time on my hands), I have as
<br>a rule of thumb: if it CAN be done without code, then do that instead; if it
<br>CAN'T be done without LOTS OF code, there might be better software around
<br>for the purposes. I think this is also a pretty good rule for those with
<br>questions regarding dragging and dropping and whatnot.
<br>Best,
<br>
<br>Michiel
<br>
<br>-----Original Message-----
<br>From: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="oZwxEZLLlmQJ">e-p...@googlegroups.com</a> [mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="oZwxEZLLlmQJ">e-p...@googlegroups.<wbr>com</a>] On Behalf
<br>Of David McFarlane
<br>Sent: 02 November 2012 22:57
<br>To: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="oZwxEZLLlmQJ">e-p...@googlegroups.com</a>; <a href="javascript:" target="_blank" gdf-obfuscated-mailto="oZwxEZLLlmQJ">e-p...@googlegroups.com</a>
<br>Subject: Re: key press/release & RT
<br>
<br>Please do not use Clock.Read to get the starting time of your stimulus, this
<br>will almost never be exact, and is in any case superfluous. Suppose your
<br>text stimulus is named StimText. Then StimText.OnsetTime already tells you
<br>the onset time of the stimulus, you should use that (see
<br><a href="http://groups.google.com/group/e-prime/browse_thread/thread/39e899d3457d4917" target="_blank">http://groups.google.com/<wbr>group/e-prime/browse_thread/<wbr>thread/39e899d3457d4917</a>
<br>).
<br>
<br>If you think further, you might not even need to do that. If you have
<br>StimText start after the key is pressed down, and have StimText launch its
<br>own "release" input mask, then StimText.RT will already be the appropriate
<br>RT for the release response relative to the onset of StimText.
<br>
<br>-----
<br>David McFarlane
<br>E-Prime training
<br>online: <a href="http://psychology.msu.edu/Workshops_Courses/eprime.aspx" target="_blank">http://psychology.msu.edu/<wbr>Workshops_Courses/eprime.aspx</a>
<br>Twitter: @EPrimeMaster (<a href="https://twitter.com/EPrimeMaster" target="_blank">https://twitter.com/<wbr>EPrimeMaster</a>)
<br>
<br>
<br>
<br>
<br>At 11/2/2012 01:24 PM Friday, Courtney Griffin wrote:
<br>>David, thank you so much for your help. I was able to read through
<br>>the Help section and get an idea of how to accomplish what I wanted.
<br>>
<br>>Would you happen to know how to use the Clock.Read function to start
<br>>as soon as the stimulus is presented (I'm using basic text as my stimulus)?
<br>>
<br>>On Tuesday, October 30, 2012 4:19:40 PM UTC-4, McFarlane, David wrote:
<br>>Don't know about specifics in this case, just a couple hints for
<br>>now. Take a look at the "{key} nomenclature" topic in the E-Basic
<br>>Help facility for hints on how to get RTs using key releases with
<br>>ordinary stimulus objects. That might get you most of the way, and
<br>>if needed you could supplement this with some simple computations in
<br>>inline code.
<br>>
<br>>-----
<br>>David McFarlane
<br>>E-Prime training
<br>>online:
<br>><<a href="http://psychology.msu.edu/Workshops_Courses/eprime.aspx" target="_blank">http://psychology.msu.edu/<wbr>Workshops_Courses/eprime.aspx</a>><a href="http://psychology" target="_blank"><wbr>http://psychology</a>.
<br><a href="http://msu.edu/Workshops_Courses/eprime.aspx" target="_blank">msu.edu/Workshops_Courses/<wbr>eprime.aspx</a>
<br>>
<br>>Twitter: @EPrimeMaster
<br>>(<<a href="https://twitter.com/EPrimeMaster" target="_blank">https://twitter.com/<wbr>EPrimeMaster</a>><a href="https://twitter.com/EPrimeMaster" target="_blank">https://twitter.<wbr>com/EPrimeMaster</a>)
<br>>
<br>>/----
<br>>Stock reminder: 1) I do not work for PST. 2) PST's trained staff
<br>>take any and all questions at
<br>><<a href="http://support.pstnet.com/e%2Dprime/support/login.asp" target="_blank">http://support.pstnet.com/e%<wbr>2Dprime/support/login.asp</a>><a href="http://support.pstne" target="_blank">http<wbr>://support.pstne</a>
<br><a href="http://t.com/e%2Dprime/support/login.asp" target="_blank">t.com/e%2Dprime/support/login.<wbr>asp</a>
<br>>, and they
<br>>strive to respond to all requests in 24-48 hours -- this is pretty
<br>>much their substitute for proper documentation, so make full use of
<br>>it. 3) In addition, PST takes questions at their Facebook page
<br>>(<<a href="http://www.facebook.com/pages/Psychology-Software-Tools-Inc/241802160683" target="_blank">http://www.facebook.com/<wbr>pages/Psychology-Software-<wbr>Tools-Inc/241802160683</a>>
<br><a href="http://www.facebook.com/pages/Psychology-Software-Tools-Inc/241802160683" target="_blank">http://www.facebook.com/pages/<wbr>Psychology-Software-Tools-Inc/<wbr>241802160683</a>
<br>>
<br>>), and offers several instructional videos there and on their YouTube
<br>>channel
<br>>(<<a href="http://www.youtube.com/user/PSTNET" target="_blank">http://www.youtube.com/<wbr>user/PSTNET</a>><a href="http://www.youtube.com/user/PSTNET" target="_blank">http://www.<wbr>youtube.com/user/PSTNET</a>
<br>>) (no Twitter feed yet,
<br>>though). 4) If you do get an answer from PST staff, please extend
<br>>the courtesy of posting their reply back here for the sake of others.
<br>>\----
<br>>
<br>>
<br>>At 10/30/2012 04:08 PM Tuesday, Courtney Griffin wrote:
<br>> >basically I want it to go something like this:
<br>> >
<br>> >at stimulus display, read the clock and get the time (will name this
<br>> >variable T1)
<br>> >after key release, read the clock and get that time (will name this
<br>> >variable T2)
<br>> >at key press (final response), read the clock and get that time
<br>> >(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:
<br>> >Hello all,
<br>> >
<br>> >I am programming my first experiment with E-Prime and have run into
<br>> >some issues I was hoping that someone might be able to help with.
<br>> >For my experiment I will be having subjects simultaneously hold down
<br>> >two keys (u and o), a stimulus is presented and they are to respond
<br>> >to it by releasing one of the two keys and making a movement to
<br>> >another to respond ({TAB} or {END}). Additionally, I would also like
<br>> >to record movement time (time from release of key to response) and
<br>> >reaction time (time of release of one of the initial keys). So far I
<br>> >have already gone in and allowed both Key Presses and Releases. My
<br>> >issue is actually how to get the program to recognize the release of
<br>> >the key and start recording the time, so I decided to use the
<br>> >Clock.Read function, but I'm not sure exactly how to implement it.
<br>> >Any assistance with this would be TRULY appreciated. Here is a bit
<br>> >of the code I have come up with, but I know that I am probably
<br>> >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>>
<br>>--
<br>>You received this message because you are subscribed to the Google
<br>>Groups "E-Prime" group.
<br>>To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="oZwxEZLLlmQJ">e-p...@googlegroups.com</a>.
<br>>To unsubscribe from this group, send email to
<br>><a href="javascript:" target="_blank" gdf-obfuscated-mailto="oZwxEZLLlmQJ">e-prime+u...@<wbr>googlegroups.com</a>.
<br>>To view this discussion on the web visit
<br>><<a href="https://groups.google.com/d/msg/e-prime/-/qqFBuuTyZowJ" target="_blank">https://groups.google.com/d/<wbr>msg/e-prime/-/qqFBuuTyZowJ</a>><a href="https://groups.goog" target="_blank">htt<wbr>ps://groups.goog</a>
<br><a href="http://le.com/d/msg/e-prime/-/qqFBuuTyZowJ" target="_blank">le.com/d/msg/e-prime/-/<wbr>qqFBuuTyZowJ</a>.
<br>>For more options, visit
<br>><<a href="https://groups.google.com/groups/opt_out" target="_blank">https://groups.google.com/<wbr>groups/opt_out</a>><a href="https://groups.google.com/groups/" target="_blank">https://groups.<wbr>google.com/groups/</a>
<br>opt_out.
<br>>
<br>>
<br>
<br>--
<br>You received this message because you are subscribed to the Google Groups
<br>"E-Prime" group.
<br>To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="oZwxEZLLlmQJ">e-p...@googlegroups.com</a>.
<br>To unsubscribe from this group, send email to
<br><a href="javascript:" target="_blank" gdf-obfuscated-mailto="oZwxEZLLlmQJ">e-prime+u...@<wbr>googlegroups.com</a>.
<br>For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank">https://groups.google.com/<wbr>groups/opt_out</a>.
<br>
<br>
<br></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/-/7yQu8D9R02YJ">https://groups.google.com/d/msg/e-prime/-/7yQu8D9R02YJ</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 />