PRESENTING STIMULI BASED ON RESPONSE
in OpenSesame
is it possible to present stimuli based on response in open sesame? e.g say, if the image is coded as A1B1, if the user enters the code A1B1 and it will show the corresponding stimuli which is tagged with that code.
Comments
Hi Ram_92.
You can use the run_if functionalities for this. See https://osdoc.cogsci.nl/3.2/manual/structure/sequence/ and https://osdoc.cogsci.nl/3.2/manual/prepare-run/#conditional-statements-run-if-and-show-if
@is there a plugin which lets the user to input a keyboard response. I want to use that keyboard response to set the conditions for the trial sequence.
Hi,
Yes, for single keypress, use the the keyboard_response item. The response is stored in the variable var.response which you can then use to set conditions.
If you have multi-character responses you should use the text input form: https://osdoc.cogsci.nl/3.2/manual/forms/widgets/#text_input-textinput
Eduard
Hi Eduard,
I'm having a similar problem as Ram_92. My experiment entails listening to 9 different voices, and I want to include an option which allows the participant to listen to a specific voice again if they want to, and if not, to continue to the next phase. I've included a keyboard response with allowed responses being numerical keys (1-9), but how do I link those key responses with a sampler item? I have had a look at the links you provided above, but still not quite sure how to implement it.
Any help would be very much appreciated.
Figured it out: needed to have a [correct] column in the sequence with corresponding numerical responses!
Actually, that didn't work. If anyone can help, please let me know.
Hi,
After the keypress, you will have a variable called
response.This variable can then be used in the sampler by accessing like this:[response]in the field that you need to access. For example, if they keypress is indicating which sound to listen to again, you can feed the response into the filename field of the sampler (if the response and filename don't match up, you have to run a mapping in between, e.g. if response == 1, play sound "a").The only thing to keep in mind is that Opensesame runs sequentially, therefore you have to make sure that you response is led back to the sampler, or add a new sampler right after. Going backwards in the experiment is not possible in the obvious way.
Does that help? If not, try to specify what you need to accomplish, and/or share your experiment here, then we can try to help you with more detail.
Good luck,
Eduard