Three sketchpads to show different stimuli, depending on the reaction
Hello,
I'm trying to build an experiment which causes some issues for me.
There are six positions and in every trial you see two stimuli at two of those six positions. One stimulus is a number, the other one is a symbol and you should react with certain keys on the keybaord to those stimuli. If you press the key for the number, it should disappear and only the symbol should be left on the sketchpad. If you react on the symbol, the number should be left on the screen.
My first idea was to create three sketchpads. The first one shows both stimuli. The other two sketchpads show either the number or the symbol, depending on the reaction. But what should be the condition for the second and third sketchpad? If I choose "show if [correct]=1" it won't work, because both reactions (number and symbol) would be correct.
To see if this idea with three sketchpads could work at all, I set the reaction on the number as "correct" and everything else as "wrong". The first trial shows the first sketchpad with both, the number and the symbol. When I react on the number, the sketchpad, which shows the symbol only, appears. So everything's fine so far. But then I react on this symbol and when the second trial starts, the first sketchpad will be skipped and the second sketchpad will be shown immediately with only the number.
Is it even possible to do this with multiple sketchpads or is an inline script necessary for this experiment?
I hope the problem is clear, but if further explanation is needed, I'll give some more details about the experiment.
Rex
Comments
Hi Rex,
I believe you only need two sketchpads. You can define the condition directly in the lets call it letter that you insert. So in the second you put again the number and the letter, but now you define the conditions.
I do not know how the variables in your loop are called. However, your definition within the sketchpad may be based on that. For instance, you may have a variable called 'keyboard' that contains the 'x' for letters and the 'y' for numbers. Hence your if condition [keyboard]==[response].
Hope this helps you out,
Stephan
PS: For every discussion i open myself, i try to answer another. Now its up to you to answer my question ;)
Hi Stephan,
thanks for your help. I'll try this out later today and tomorrow and I'll tell you if it worked.
PS: I try to help, but I still have to learn a lot of stuff, so at this time there are not so many problems that I could solve. :-/ But if I see a post where I can help, I'll do it. :)
So, I tried this and the goods news is, that your idea of using two sketchpads does work. :)
So first of all thanks a lot for your help.
But I have problems with defining two different "correct" responses, one for the number and one for the symbol. To test this "Two Sketchpad"-method, I used the "correct_response" variable for the position of the number. So every time I pressed the key of the symbol position, OpenSesame logged it as a "wrong" response. The keys are assigned two the six positions. For example key "a" is assigned to the first position, "s" for the second and so on. So with every trial, there is a different correct response for the number and the symbol.
I am going to define two different resonse variables in the loop-table. Can I just write an if-statement in the second sketchpad that says "if the key equals the one for the number in the loop-table for this trial, just show the symbol and the other way around"?
Or is it more complicated to define two different "correct_response"-variables?
Rex
Hi @Rex86,
you're on the right track. You can either use the
run-if
fields of the sketchpad in the sequence item om which they are placed to determine which sketchpad needs to be shown, depending on the value of the correct_response. You can also make elements on the sketchpad conditional, that is only show them if a certain condition is true, by adding this condition in the `show if` field that appears after you select the sketchpad element.I don't understand why your define correct_response is being picked up as wrong though. Did you use the
correct_response
name exactly like that for the column in the loop that defines the responses? If so, your keyboard_response item should automatically pick it up.