Avatar

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

eduard

About

Username
eduard
Joined
Visits
1,402
Last Active
Roles
Member, Moderator

Comments

  • Hi, I think the reason is that your while loop has a timeout of 3000 ms, but your response collection as well. Therefore, it could happen that the response collection finishes running, but the while loop has not yet finished, and the next response c…
  • Hi Paul, Without having seen your experiment, I think, the solution could be to start playing the music before you enter the loop that presents the words. Like that, the music is only started once, and plays until the block is over. trying to upl…
  • Hi, If your keyboard item runs as long as a keypress, then having the trigger sent right after, should be pretty accurate. If you want to make really sure that there is no delay, you can use Python code in an inline_script and sample response and s…
  • Hi Lena, does it mean that any variable defined in python script is accessible from other scripts? Yes, the var thing is only necessary to make variables available for Opensesame items (like a sketchpad), and for adding a variable to the logger. Bu…
  • Hi Syna, Opensesame has a function to measure the width and height of a text item. See here: https://osdoc.cogsci.nl/3.2/manual/python/canvas/#function-canvas46text95size40text-centertrue-max95widthnone-4242style95args41 So, if you measure your te…
  • Hi Elien, Your code used a little outdated syntax of Opensesame, by now things can be done a little easier (see my code below). Also, it is somewhat better to present the sketchpad in the inline_script itself, basically the same way you show the re…
  • Hi, My general advice is to take things step by step and break things up as far as possible. If you followed the tutorials you should get an idea of how Opensesame structures experiments (loop-sequence blocks). Every phase in your experiment seems…
  • Hi, The error message is a little hard to link to a particular part of script. I'm just guessing something here, but could it be that you shouldn't call pyaudio.PyAudio().terminate() before the end of the script? Could you try to figure out which p…
  • Hi, Can you share your experiment? I am very surprised that having a logger after every mouse response doesn't lead to different behaviour than having it only once at the end of the sequence. I would have expected this to have solved the issue. Bu…
  • Hi Greg, I am not sure how it works with forms, but what you describe sounds a lot like the typical issue of a prepare-run strategy mess up. Certain items are drawn during the prepare phase of a sequence, others during the run phase. The updating o…
  • Hi, You have to move the folders into the plugin folder of the Opensesame installation. Did you already do that? Have you followed the guidelines: https://osdoc.cogsci.nl/3.2/manual/environment/? Eduaard
  • Hi both of you, Right now, I don't have a tracker to test, but I think it could work by calling exp.pygaze_eyetracker.calibrate() Could you try that? Eduard
  • Hi, The slider is just a regular widget that you can add to a form. Other widgets can be added to the same form. For example, there is a text display widget. See here for more info on forms and widgets: https://osdoc.cogsci.nl/3.2/manual/forms/wid…
  • Hi, log.write_vars() is a function to write multiple variables, if you just want to write a single variable, it still must be in a container (e.g. a list): log.write_vars(var_list = ['acc']) See here: https://osdoc.cogsci.nl/3.2/manual/python/log/#…
  • Hi, That is a weird error. Can you share the experiment here? Have you tried a different backend? Maybe psychopy? Eduard
  • HI SH, This variance is due to small variations in refresh rate, should be random are the variance is really small. So, I don't think you should worry about it. The fact that a response is recorded is first place is a bit weird. That is true. It ba…
  • Hi Inga, I am not sure whether advanced loop operations could also do the trick, but I would opt for an inline_script that takes care of the creation of the trial_sequence. For example following script: import random # zero represents 70% go, 1 re…
  • Hi, Without getting into the structure of the experiment, a way to check accuracy could be following: # first select the first half stimuli import random all_stim = [1,2,3,4,5,6,7,8] random.shuffle(all_stim) first_round_stim = all_stim[:4] # later…
  • Hi Laura, In between blocks you can put inline_scripts, that save the accuracy variables in other variables. These backup variables you can then use to present as feedback after each block. I attach the default template with modifications as exam…
  • Hi, Right, the plugins dont allow multiple videos per display. Instead you can try using the OpenCV library, it is much more flexible and powerful. https://osdoc.cogsci.nl/3.2/manual/stimuli/video/#opencv Good luck, Eduard
  • Hi Mikail, To help you we need more information. Could you share the experiment? Have you used forms in your experiment? If so, you probably accidentally deleted the default title from a form item. If you put some characters in there, the error sho…
  • Hi, Do you mean there is a delay between the screen with "Would you..." in the middle and "improve your chances" on the left and "reduce your chances" on the right and the feedback item that follows ("How would yo…
  • Hi Laurie, I don't work with that plugin or Macs, so, I can't really help. But maybe one of these discussions might: https://forum.cogsci.nl/discussion/2640/troubles-with-media-player-mpy-unable-to-download-ffmpeg-osx You could also try to not use…
  • Hi, If you use tkinter, you basically replace the default window that Opensesame creates when starting the experiment. While certainly possible to do so, it is not necessary. Instead you can just use Opensesame default functions, like a canvas, etc.…
  • Hi Jeronimo, Conceptually, Pygaze doesn't care where the camera is, but it has implementations of a limited number of eye trackers. If the eye tracker that you use is not in that list, you won't be able to use Pygaze to record your eye tracking dat…
  • Hi Adi, There are a number of slider implementations on the forum. If you browse a little you will certainly find something that will help you. I would probably opt for showing everything as an image, and just present a circle on top of it, depend…
  • Well, you have first a feedback item in your sequence, followed by a sketchpad item. The first one has a duration of 5000, the second of 0. Only after that there is a response item. So, that would mean you have to wait for that amount of time before…
  • Hi, As mentioned, using feedback items instead of sketchpads does the trick. As an example, I changed the first sketchpad (If_Left_1) to a feedback item. Once changed it does work. Attached the experiment. [response] = 'z','x','v' This is not val…
  • Hi Lena, I don't see a reason why two keypresses should be required from your script. Could you share the entire experiment with us? Don't forget to include the xlsx file. Thanks, Eduard
  • Hi, If the response is going to be used to indicate whether a sketchpad will be called or not, you should use the run_if field of that sketchpad (you can access if you click on the sequence in the overview area. Then all the items of that sequence …