It looks like you're new here. If you want to get involved, click one of these buttons!
Is it possible to use multiple values as correct responses for each cycle? I am building an experiment with touch screen but I could not find a way to do that.
You'll want to take a look at this discussion:
There's much bigger issues in the world, I know. But I first have to take care of the world I know.
Thank you Sebastiaan for your reply.
In my case I need to collect the touch screen response rather than keyboard response right ? but I alrealy do not have any experience with that, could you tell please how to get this data?
The touch_response item does quite a few things, so re-implementing it completely in an inline_script is inconvenient. However, what you can do is change the correct value of the last-recorded response. The following script, which should be in the Run phase of an inline_script that immediately follows the touch_response, does that. (Note: This is a hack that directly accesses the internals of OpenSesame. But it does work.)
# Define a list of correct responses
correct_responses = 2, 3
# And then alter the correct value of the last response. This is a hack!
last_response = responses._responses
last_response.correct = last_response.response in correct_responses
You can also define your correct responses in the loop table, in which case you would do something like:
# Define a list of correct responses based on the loop table
correct_responses = var.correct_response_1, var.correct_response_2
Thank you for your reply. I tried your suggested solutions but it is not working with my experiment, I checked the log file many variables such as correct, correct_new_touch_response and correct_response are "undefined". Do you know why?
I am using OpenSesame 3.1.9 in Windows 10
Could you upload your experiment? Then I'll have a quick look at can check what is going on there.
Thanks eduard for your reply. I have attached my experiment.
To get a working var.correctvariable. You have to change the line:
correct_response = 2,3 to correct_response = [2,3]
correct_response = 2,3
correct_response = [2,3]
and add the line var.correct = last_response.correct at the end of the inline_script.
var.correct = last_response.correct
Hope this helps,
Many thanks eduard, it is working fine now.
I have a small issue, I could not find user's responses for each cycle. It was recorded under correct_new_touch_response column but now it shows "undefined" value. Do you know how can I fix that?
Does the variable response have the information yo need? I bet the data is somewhere, just look through your file and see whether you can find it.