Keyboard response and advanced loop operations
Hi, I am new to Open Sesame, thank you for this forum which is most helpful. I am currently designing an experiment and with grateful thanks to a lot of help from @Daniel, I am almost there.
I have two questions which I would be grateful for any advice esp. as I do not have programming experience.
Keyboard response
I have set up my keyboard response to:
- correct response (blank)
- allowed response (a;b)
- timeout (2000)
- event type (keypress)
My questions are:
- Is this the correct format? It does not seem to be picking up the responses, despite me setting up a variable in my sequence called correct_response. I have tried to define this in allowed response, but when I do this I get an error message.
- Is there a way to set up a forced response? at present, if no answer is given, the experiment moves on.
My second question is with regards to:
Weight
I have a section of the experiment where some images are shown more than others. These are now defined under the 'w' variable. I have added 'shuffle' to my inline script, however I note that my rows are still coming up as a block despite order being selected as 'random'.
If anyone has the time to help with these questions, I would be most grateful. Thank you.
Comments
Hi, I've solved some answers. However, please may I ask if it is possible to force a participant to give a response? I have my keyboard response set to 2000 at present.
I am also still trying to solve the weight issue where my items still come up as a block?
Thanks in advance.
Hi,
What do you mean with force? You can stall the experiment until a keypress has been made. To do so, you need to set duration of the stimulus to
keypress. If you still need to stimulus to be on screen for only 2 seconds, you can use 2 sketchpads presented one after another. The first one has a duration of 2 seconds and shows the stimulus, the second is blank and has a duration of keypress.Does that make sense?
@eduard thanks for your help, it makes total sense and that has solved it. Thank you!
My other question is with regards to using the weight function in my loop. I have some stimuli (images) where some images are repeated more than others. To explain this better, I have a loop where 4 rows are repeated 18 x each and other rows have an image which is repeated twice in a row as well as the row being repeated 2 x each. The whole loop is set to 'random' order. With Daniels' help, I used a weight variable. I have also added shuffle to the inline text but find that I am still getting blocks of stimuli which are repeated and not coming up in random order. (if this doesn't make sense, I can send you the script for the loop).
Thanks again, your help is much appreciated.
Hi,
Yes, please, send the script. As a disclaimer, if you prepare this experiment for an online study, I won't be help you much as I have not worked with osweb yet.
Eduard