[solved] Correcting Response IAT with OpenSesame
I would like to ask a question about creating the IAT with OpenSesame. When participants are pressing the wrong key I want to insert a screen were they can correct themselves. So after the Feedback (which they will see a X) what do I do ?
Comments
Hi Florence,
Welcome to the forum!
I think the best way to give participants a second chance after an incorrect answer is by executing the following steps:
[second_chance] = yes.After applying those suggestions, your overview area and trial_sequence item should look something like this:
An example experiment can be found here (simply download the script, save with the extension .opensesame, and open as normally):
Does this help?
Best,
Lotje
Did you like my answer? Feel free to

Thanks! This was helpful for me at least: I also just implemented an IAT in OpenSesame. Although, I eventually realised it can be even simpler than this. You don't have to use an inline script - you can just use the inbuilt variable "correct" directly in the Run if fields. First I use it directly after the first Response item to see if I need to display the stimuli again but with a red cross (indicating a mistake was made), then directly after that I use it to see whether I need to collect a second response. So I skip the feedback item and the inline item, and just have a conditional second sketchpad item and a conditional second response item.
Dear open Sesame Team & Users,
First of all, thank you very much for opensesame, it is really great!
Yet, I currently have a problem with adjusting the logger.
My experiment contains an implicit association test, which is basically 7blocks (loops) with each running a sequence containing a list of single words (sketchpad Items). Participants are asked to respond to each word with pressing either the “e” or the “i” key (checked via keyboard response “KEY”).
Depending on the valence of the word either the one or the other is correct. If they make a mistake, another sketchpad item appears (“Error”) which also comes along with a keyboard response waiting allowing only for “e” and “I” keys. This so far works fine (see loop structure below).
However, I would need the response time (aka time since the sketchpad item has been displayed till the respective key was pressed) for each of the single words (within each block) plus the time they need to correct their answers (this can be in two variables, I can summarize later in SPSS).
As far as I understood it, the logger does not store the response time not for the single items within. (Currently I have 1 logger as last step in the experiment with the default "check everything").
As I have used the same key for each word within the sequence as well as within all blocks, the “new response_time_KEY” overwrites the former.
I guess I need some kind of inline scripting that creates a new variable called response_time_1 for each row of the cyrcle. Moreover, some of the items are repeatedly shown (cycle repeated 2 times) so it would be great if this variable would also contain the cycle_nr. For instance “response_time_1_1”. I hope my question makes any sense to you and I thank you very much for your help!
Here is the script for the first block:
The sequence than looks like this:
BTW Sorry for the terribly formated post! I
Hi Lena,
The
loggeritem should be placed at the end of the trial sequence, which in your case is called Pos_Neg_Sequence. If you do this, everything should be logged as a normal multirow spreadsheet, which I'm guessing is what you need, right?For examples on how to use the logger, see the tutorials:
For formatting tips, see
I hope this clears things up!
Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Dear Sebastian,
thank you very much for your help and fast answer. Now the recodring of the single items works very good! Thank you!
Hi everyone,
I try to find out an easier way to get a feedback INTO the display on the IAT (when the answer is wrong). In this way, we only have to configure the logger to collect the correct answer, and we don't need to input another display "second chance".
Fort that, I made :
correct answer: [Corr]
allowed answer: [Corr]
Something like that :
My idea is to print the red cross only when the participant press the key associated in the variable [Wron]. Is it possible ?
Thanks for your help !
Hi @loics,
Sure, you can use define a correct-response variable, and use run-if statements to do something only when a preceding response was incorrect. I would recommend following the beginner tutorial, which explains this in detail:
Good luck!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi @sebastiaan,
Thank you for your answer,
I will propose my version of IAT when I finish it !