Logger
Hi,
I have created a quite simple experiment where I present multiple targets one after another in sketchpad. The participant is instructed to type a number on the keyboard and then press the space bar to advance to the next target.
I want to log their response (the number they type on the keyboard before they press the space bar to advance). But am having trouble doing so. I figured out how to log their response time. But I also need to check if they got the number correct. I set up the loop to have a column for the targets and a column for correct_response. I just don't know what I am doing wrong.
The reason I have the target advance after the space bar is pressed is because there is one target that is a double digit number... '10.' So when the participant pressed the '1' it advanced right away to the next target before they could press '0.' Thus I chose the space bar to advance from one target to another.
Mostly need help with seeing what they type in the key board in the logger! Thanks!
Best,
Kiki
Comments
Hi Kiki,
If the correct_response changes from target to target across
sketchpads, you have to provide all the correct_responses beforehand. So, you would need separate columns for each of the targets, i.e.correct_response_tar1,correct_response_tar2, etc...Does this help?
Eduard
Hi Eduard,
Thank you for your time.
As of now, I have one column for the targets and one column for the correct response... I am a little confused still. So do I make separate columns for the targets too? Like tar1, tar2, etc... and then correct_response_tar1, correct_response_tar2, etc.?
-Kiki
I mostly need to know what to type in the logger so I can see what the participant typed between each spacebar click.
Thanks!
Hi Kiki,
No, in this case it is not necessary to have multiple target variables and correct_response variables. I assumed you meant multiple targets within a a single trial iteration, but given your trial structure, this is not the case.
Hm, if you want to know which keys were pressed between
spacepresses, you could access the response history object from within aninline_scriptand select all keypresses since the last space press:http://osdoc.cogsci.nl/3.2/manual/python/responses/
Will you manage?
Alternatively, you could also consider using the form_text_input item instead of the keyboard_response item. This will make it easier to collect multiple key presses, but on the other hand will make it harder to collect response times properly. Btw, how do you currently collect response times in case of double digit responses?
Eduard