[open] where is the dot?
Hello.
Thank you for being there always when needed.
I'm currently conducting a new experiment that need to present the following sequence:
1. buffer - a blank image for 150 ms 2. priming - image for 16 ms 3. mask - varied image for 300: 4 stimuli that each have a correct response, either 2;4;6;8, this image represent the independent variable 4. question - "what is your answer?", set duration as 0 5. keyboard response, set as 2;4;6;8 6. feedback when wrong - set as: run if [correct_key]=0. in this case X should be presented until correct answer is typed (I need to freeze this screen until correct response).
So, in this case the keyboard response refers to the mask, since this is the variable, and not to the question which is constant. But, it doesn't work
something is wrong. No matter what the response is, it always indicate X. I think that the problem occurs because the keyboard response is set after the question, and not directly after the mask (the variable), but I can not change the order of the presented images.
Can you please help me to find out what went wrong in this case?
I also wanted to add a PrnScr of the experiment but somehow couldn't.
Thank you much,
Shire
Comments
Hi Shire,
Just to make sure we're on the same page: The participant has to respond, with a single keypress, to the stimulus that is presented in the mask item. Do I understand that correctly?
If that's indeed everything, this should be very simple and the error is probably something trivial. Is the
keyboard_responseitem indeed called key (because you are using the variablecorrect_key)? Have you specified thecorrect_responsevariable in your block loop?Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
EDIT: woops! Sebastiaan was quicker.
Hi,
Two questions, to further specify your broad problem description:
1) Do you have a variable that indicates what the correct answer is?
2) Did you specify this variable as the correct response in your keyboard_response item?
If the answer to both questions is yes, and it still does not work, could you perhaps paste the script of your experiment?
Thanks,
Edwin
Hi guys, thank you so much.
I will try to answer you both by attaching the script of the sequence:
Sebastiaan, as you can see below the allowed_responses are "8;6;4;2", but I need them to be the arrows, meaning up (8), down (2), left (6) or right (4). for each "mask" (there are 4 masks) there is only one correct answer. Even though, they need to see the "X" until they press on the correct arrow, so they can answer with more than single keypress, but they can not see the stimulus again (meaning the sequence can not repeat it self again and again).
Edwin, to your 1st question I will say yes, but I'm not sure what you have referred to in the 2nd question. This is the script of the keyboard_response item:
Thank you, guys.
If you have a variable that specifies the correct response, as you say you do, you can do the following:
Adjust the script of your keyboard_response to the following, but change
correspto the name of the variable in which you have defined the correct response.Hi, thank you. now it works.
can you help me with my other problem:
The "X" screen (defined as 'wrong_mask') need to be shown, or to be freeze, until the correct arrow is pressed (as you defined it above 'corresp'), so they can answer with more than single keypress, but they can not see the stimulus again (meaning the sequence can not repeat it self ).
I had tried to use this inline script, but it doesn't work. In this case it freezes the "x" but it doesn't move foreword to the next trial when I pressed on the correct response:
Do you need to see the full script?
Thank you,
Shira
Hi Shira,
You might want to repeat the other items as well, if you want participants to be able to do more button presses:
Change the names of the items to the appropriate names in your experiment.
Hi, thank you soooooo much. Now it works.
The last thing I need to add to this experiment is a feedback that will appear if the participant work to slow, meaning that if they do not response after 1200 ms, only after they type the correct response, they will receive a message that will asks them to: "please work faster", that will appear for about 2500ms.
It is important that this feedback will not be considered in the result at the logger.
I hope you can assist me.
kind regards, Shira
Hi Shira,
To do so, you will need to check the time of the onset of the mask (conveniently captured by OpenSesame in the
time_maskvariable), and compare this to the current time, like so:Note that for this to work, you will have to set the timeout of your keyboard_response to a low number (1 - 10 ms), and turn the "flush keyboard input" option off.
Next, add a sketchpad to your sequence, which shows your timeout message, and set its Run if to
timeout = 1.