Sign in with your CogSci, Facebook, Google, or Twitter account.

Or register to create a new account.

We'll use your information only for signing in to this forum.

Supported by



Last Active
Member, Moderator


  • Fixed. It was actually quite easy. You should try to figure these things out yourself. Make a backup of the experiment, and then play around with the order of lines, etc. and see how the behaviour changes. Good luck, Eduard
  • Hi, Instead of show_cursor(show=True) try, set_visible(show=True) Eduard
  • Hi Eva, Every time you collect a respond, you have to add a logger to log it. If the tasks are similar (use the same variable names), you should use the same logger multiple times. If the tasks are really different, or if you can't think of how to …
  • Hi dario, Attached the (hopefully finished) experiment. I changed the inline_scripts and also the general structure a bit, primarily to make things easier. Now there is only a single trial loop and a single stimulus canvas inline_script. (The only…
  • It this fits what you pressed, then you're fine.
  • No, the answers participants give are stored under response.
  • There you go.
  • Yes, that is what I mean.
  • Sorry, but I can't say anything else. Your experiment works. If I press, 1s and 2s they appear in the logfile right where they should and where I told you.
  • Hi Johanna, A loop iterates through all items in the loop table. you have 6 things there (S1M1-S3M2). So the loop will run 6 times. In the sequence however, you have coded each question separately. So on every iteration, each question is executed. …
  • 3)Why Cursor_x and (x,y), timestamp = my_mouse.get_pos() = why they give different output? Ok, cursor_x is written by the mouse response item, and is the mouse position's x coordinate in the moment of a mouse click. my_mouse.get_pos() however, retu…
  • You don"t need to add a mouse response item if you use inline_scripts to sample a mouse response (or the other way around). So delete whichever you don't need, (probably the mouse response item). Eduard
  • What do you mean consistent pattern? There is always variability, and depending on the task, there can be even a lot of variability (particularly with very difficult tasks). Well, in general you should test your script before recording a full sampl…
  • Not sure what the problem is, your experiment works. In your log file there is a column called response, which will carry the information which key was pressed. In the log file you attached, the variable response suggests that no keys were pressed. …
  • print is not showing anything on a canvas, but only in the debug window. You have to use canvas.text() to present a word on a canvas: http://osdoc.cogsci.nl/3.1/manual/python/canvas/#function-canvas46text40text-centertrue-xnone-ynone-max95widthnone-…
  • Hi, After the response was given, you can add this code: if r
  • On separate notes how do you make it so that the array generated in the inline_script only appears for a certain amount of time. would it be the clock function? Yes. clock.sleep(1000) # sleeps for 1 seconds Also, can you use inline_script t…
  • Hi, 1) time = ms.get_click() That is not correct. ms.get_click() returns the button that wa spressed, the current position and then the time from experiment start on. So the correct way to get the time is button, pos, time = ms.get_click(). …
  • Hi, the variable response contains the key that was pressed. So, in your case "0" doesn't seem to make a lot of sense, it should really be 1 or 2. Could you upload your experiment?
  • Hi, Yes, this sounds like the experimental sequence is a little messed up. Basically, Sequences are repeated as often as indicated in the loop table. Only after that it will proceed with the next item in the next outer sequence. The indentation in …
  • Hi, You should check out text input forms: http://osdoc.cogsci.nl/3.1/manual/forms/widgets/text_input/ What you describe is very possible in Opensesame with the forms. Eduard
  • Hi Peter, First of all, I would be nice to hear what is not working. Can you give us an error message or some other information on what the problem could be. Second, the set up you describe is a little complicated. I'm not 100% whether it is poss…
  • In reality, participants respond sometimes without having the correct response. So, I wouldn't yet assume, response collection doesn't work properly. But you can run some tests yourself, e.g. respond 10 times very quickly, 10 times very slowly, etc.…
  • Hi Candice, I'm not sure, but it sounds like somewhere during the initialization of the touch response, there is a line that reset the current position. If you can access the source code on your device, you might be able to change that. The "hard" …
  • You have to be accurate when you read the error message. Opensesame didn't complain about non-existent variable names (both [Faces] as well as [Object] does work!), instead it was not finding the files to present. This is because the files in your f…
  • Okay, then please upload your experiment. I'd like to have a look
  • I don't want to sound mean, but if you have done the beginner tutorial twice, you should know that. Step 6 explains exactly your problem. If you want to update your images every trial, you have to change the parameter that defines which image will b…
  • Please confirm that replacing [faces] and [objects] with [Faces] and [Objects] does not help.
  • Your variables are called [Faces] and [Objects]. Are you sure you haven't made a typo?
  • Like the script that is attached?