Radhika,
After properly indenting your code, I do notice one problem. In fact, what happens when you simply respond with the 'G' key? Currently, your 'G' key clause is structured as
Case 71 ' Assuming 'G' key Debug.Print " Foot Pedal g pressed" c.SetAttrib "LLRG.RT" & "RT" , theChronosResponseData.RT 'Add more Cases If needed for Other keys Debug.Print "Unexpected responseCode: " & "theChronosResponseData" Exit Sub
In this case, your task should exit simply by entering a 'G' response.
Instead, you want to add a final "Case Else" to catch any stray responses, thus:
Case 71 ' Assuming 'G' key Debug.Print " Foot Pedal g pressed" c.SetAttrib "LLRG.RT" & "RT" , theChronosResponseData.RT Case Else 'Add more Cases If needed for Other keys Debug.Print "Unexpected responseCode: " & "theChronosResponseData" Exit Sub
See if that makes any difference.
-- David McFarlane
--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/4d24d844-155a-478a-bbae-9d38839ea631%40msu.edu.
Hi Radhika,
Just wondering here, what do you think
c.SetAttrib "LLRG.RT" & "RT" , theChronosResponseData.RT
…does, exactly? Do you think it should do anything more than
C.SetAttrib “LLRG.RTRT”, theChronsResponseData.RT ?
Or do you think it should somehow save the data regarding the pressing of G, or something, as
LLRG.RTG?
The & there simply concatenates the right with the left, so for each of the clauses, it always concatenates LLRG.RT with RT. I don’t even know if E-Prime saves attributes with dot indexing, as attributes are not objects. Try replacing all that with
C.SetAttrib “LLRGRT_G”, theChronosResponseData.RT
For example, if you want to save the RT for the G response to LLR.
Best,
Michiel
To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CAJiSXV4Nz2iViOtikRwX6QROeO1QbAqxKNXZ5-%2Bi3ydYJWwggw%40mail.gmail.com.
Hi Radhika,
You do not answer my question or at least, I don’t see how you do. I don’t have time to go through too much code (and that accounts for most people here – remember we’re not PST), so I’m just explaining to you.
‘&’ simply concatenates text. “LLRG.RT” & “RT” ALWAYS translates to “LLRG.RTRT”; that’s what concatenation means. It doesn’t magically get the reaction time, it’s just the two letters ‘RT’ being added to the letters ‘LLRG.RT’. So you’re storing the reaction time in milliseconds in an attribute (like a list variable) called LLRG.RTRT. It sounds weird that you would want that. Do you want to save the response index? That’d be:
c.setattrib “LLRG” & nindex, theChronosResponseData.RT
or something like that.
What’s the error message anyway? What line of code has the problem?
To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/25bb275b-65ce-427e-a5f0-d307ad003b53n%40googlegroups.com.