Double key responses

What are you trying to achieve?:
I want to participants to make double key responses.
I want to make this through .csv file

What did you try to make it work?:
For the double trials I couldn’t find any guidance. So I tried typing keys on the .csv file.
스크린샷(715)

Is there a way to make double key responses through .csv file?

You could have a column in your CSV called double (1 or 0) and a duplicate routine in your flow to monitor for the repeated key or end early if double is 0

Yes if you have a column called nResps and have it as 0 or 2. You could then add a code component to your routine (find under Custom) and add the following snippet to the End Routine tab:

if len(key_resp.keys) == nResps:
    correct = 1
else:
    correct = 0
thisExp.addData('correct', correct)
1 Like