Welcome!

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

Roelof

About

Username
Roelof
Joined
Visits
16
Last Active
Roles
Member, Moderator
Posts
75
Thanked
25

Comments

  • Hi Inakigil This should work: [count_new_sequence]=0 where new_sequence is the name of you sequence item, also turn 'evaluate on first cycle off' since the variable does not exist on the first run. There is also another way, in which you create …
  • Hi Kevie, there are several ways in which you can log the variables. I guess since timing is important, it might be best to record all the key presses in one while loop and then set the responses to be logged afterwards, since logging a variable du…
  • Something like this might work: timeout = 5000 c = canvas() c.text('test here some keypresses for %s seconds' %timeout) from openexp.keyboard import keyboard import pygame kb = keyboard(exp, keylist = [],timeout…
  • Hi Nachshon, There are quite a number of options: the easiest I think; crop all images in one go before the experiment (windows): in picture manager select all the images you want to crop then go the 'edit picture' at the top, and crop to desir…
  • Hi Amir, The text forms are preparing everything in advance, like you said, and updating the time out during the presentation of the forms does not change the time out in the text forms since this variable is already prepared. I think the way to go…
  • You can set a dynamic time out of a sketchpad using the following notation in the duration box of the sketchpad: [six_minutes_variable], if this variable has been defined somewhere (var.six_minutes_variable = something) the sketchpad will understand…
  • If accuracy is undefined this means that there are no responses recorded, and the average reaction time simply reflects the duration of the keyboard item, which times out everytime without any response given. So it seems that there are no responses …
  • So which version of opensesame are you using?
  • Hi Elliot, I can't get pseudorandomization to work either when reading from an external file, but, when you add the following line: setcycle 0 word "" I think it might work; the variables for word are still read from the file, and seem to be constr…
  • The behavior for opensesame 3.1.9 seems to be that any name starting with a number is automatically preceded with an underscore (e.g. '3d' becomes '_3d'), which opensesame version are you using? And on which operating system does the error occur? Is…
  • That is great Eduard, thanks for looking into it, attached a text file with the code, and full link; \YOUR FOLDER HERE \ opensesame_3.1.9-py2.7-win32-1\opensesame_3.1.9-py2.7-win32-1\Lib\site-packages\libopensesame\widgets
  • This doesn't solve the problem of the visibility of the cursor during the text input item though, when I tried these lines they only hide the mouse before or after the text input item, but not during. Guess that is not quite essential though
  • The code seems to work as far as I can tell; but the problem might be that you empty the list at the start of the script var.go_rt = [], which means that every time your list starts as an empty list, if you have a look at the experiment in the attac…
  • Hi Jiri, I think the easiest way would be to use an inline script with an if statement that saves the RT only if the answer is correct, in the attachment an example. Accuracy is still present as var.acc, hope this helps, if the code is unclear let …
  • Just to confirm: the same is happening for me, starting from version 3.1.7, also windows, maybe worthwhile to open a bug report
  • Hi Artur, I can't seem to find a solution: one line that sort seems to be handy: mouse().show_cursor(False) which hides the mouse if executed, but it seems that the mouse is called when the text display is executed, which would , I think call for…
  • Hi Vatsal, The problem is the line: var.tar = canvas_letters[-3:] The code is designed is such a way to avoid the list index out of range error by making a filler list that looks something like this: ['B', 'J', 'P', 'T', 'W', 'x', 'x', 'x', 'x',…
  • Hi srishti_tripathi21, You can show images in a sketchpad by placing the image in the file pool and selecting it in the sketchpad, most of this, and the other steps you require, are explained here: http://osdoc.cogsci.nl/3.1/tutorials/beginner/ G…
  • This method might work, but the problem might be with the order in which elements are prepared/executed. I think if you are using sampler items, these are prepared before the 'run if' statement is evalutated. One (unelegant) way around this is by ad…
  • Hi Tiffany, If you want to randomize variables (in this case questions) it makes sense to put these in a loop table, and then place a sequence behind this in order to execute the repeating steps that occur in a single trial. In the attachment an e…
  • Hi Emma, I can't judge if the experiment is set up correctly: but the error is very straightforward: somehow the sampler is looking for a file without a name: namely the file: ".wav" . So all you'd have to do is to make sure that the variable wi…
  • Indeed the total number of subjects is twice as large since we are adding two numbers with every execution of the for loop, that is a bit confusing. As for the error, if you change the 'w' to an 'r' I think it should work (w= write, r = read) f = …
  • There is a project underway for online experiments, still under development, but maybe helpful: http://www.cogsci.nl/osweb https://dschreij.github.io/projects/opensesame-online http://forum.cogsci.nl/index.php?p=/discussion/887/opensesame-online …
  • Hi, There was indeed a bug in the experiment I uploaded since the number of answers was not reset after checking, which meant that the total number kept going up. If you reset the 'nr_ans' after the else statement (nr_ans = 0) it works. Of course,…
  • Hi The easiest way I can think of is to set the 'break if' statement in one loop which then skips to the three sketchpads in another loop if some variable changes its value, but this all depends a bit on what your experiment looks like, if you have…
  • Hi Welcome to the forum, I am not sure what you would like to do exacty, but if you want items to be presented randomly you can use a loop item and select the random feature and the variables will be presented randomly, let us know if you have any …
    in Query Comment by Roelof August 12
  • Hi Phojo, I think the way to go is to use two inline script items, one to create the form, and one to check your specific requirements. In the attachment an example for 8 items of which 2 have to be chosen, the warning message is now generic, but y…
  • Hi Charlie, I think all the of the loop items in opensesame need some sort of response, and are mostly used for a single trial. Attached an example of how a flicker could work using an inline script; make sure to check the timing though if stimulus…
  • Hi fed, So you found an answer? Did it work? Let us know if you have any other issues Roelof
  • Hi Nott, Your set up seems like a good start, in order to find out the duration of the sketchpads make sure to use the timestamps for each sketchpad and check the total duration by subtracting the time stamp of sketchpad2 from sketchpad1. There …