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
366
Last Active
Roles
Member, Moderator
Thanked
54

Comments

  • Hi Katherin, Try starting with the beginner's tutorial. This should give you an idea how to create an experimental structure, deal with conditions, etc.. Whether the structure of the tutorial is directly applicable to your task, I don't know, but…
  • Hi Gérard, Mouse items work a little differently than Keyboard items. If you check out the documentation, you will see that the mouse item returns three things: which button was clicked (left, right), the position of the click (x,y) and the times…
  • Hi, Just add a column with the name trial_no and then that add as many rows as you need trials (numbering them starting at 1). Eduard
  • And here is the file. For some reason, I can't upload files. @sebastiaan: Can you check what is going on there? In the mean time, you can download the file here: http://www.filedropper.com/task2fix Eduard
  • Yeah, I expected that much. Luckily, I stored the file. Tomorrow I will upload it again. Thanks, Eduard
  • Hi Mans, My problem when I start the task is that on a given image Opensesame records a single button press Attached an experiment that fixes that problem. Basically, add a inline_script after the stimulus in which all the keypresses a…
  • Hi Mans, My problem when I start the task is that on a given image Opensesame records a single button press Attached an experiment that fixes that problem. Basically, add a inline_script after the stimulus in which all the keypresses a…
  • Hi, Try this:
    my_keyboard = keyboard(keylist=['c'],timeout=0) start_time = clock.time() while True: key, end_time = my_keyboard.get_key() if key != None: var.subj_click_rt = end_time - start_time break That is…
  • Hi Hannah, If you add a variable to the block loop table that keeps track of the current trial number. You can use use that trial number to access the lists that you created before and define the variables per trial in your loop. For example, i…
  • Hi Harrison, I vaguely remember there were issues with how Psychopy draws polygons and adjusts the penwidth. One work around would be to draw two rectangles, both filled but the top one slightly smaller and filled with the background color. Do yo…
  • Hi Lawero, The forum is full of all kinds of code and forms. You can also check the tutorial on osdoc.cogsci.nl or the manual there. Particularly, this part is very helpful to understand how forms work: https://osdoc.cogsci.nl/3.2/manual/forms/cu…
  • Hi DCube, Here I am As far as I remember from our labs, Opensesame doesn't run if the sound card is deactivated, so I'd suppose that you would need one. What we did, to "fix" it, was to plug some audio jacks into the computers, which was suff…
  • Hi Mark, check out the logfile to find out how the multiple-choice item is logging the responses. Once you know that, you can set the correct response accordingly. Setting correct response can be done in an inline_script by using python code. Doe…
  • Hi, If you provide more information on how you set up your experiment, we can provide a more targeted help to your problem. Right now it is a bit hard to guess how you implemented this paradigm and how to properly help you. Generally, if you h…
  • Hi, Could you elaborate? What item are you talking about, and hidden in which way and which purpose? Eduard
  • Hi Chaz, Check out the text input form: https://osdoc.cogsci.nl/3.2/manual/forms/widgets/#text_input-textinput Later after response collection, you can run in an inline_script following code to find out accuracy: if var.response in ['q','r'…
  • Hi, To learn python, check out some resources on our website. Or anywhere on the web, really.... It is totally worth the time investment. The future you will be very grateful. In theory, what you describe can also be done with sketchpad`s. You…
  • Hi, I don't understand. You want only the headers to be written, and no values? I'm not sure whether this can easily be done with Opensesame. But during postprocessing, e.g. in excel or python pandas, you can just read the header instead of the e…
  • Independent of the actual images used? Can you use an inline_script either instead of before the sketchpad and check whether you can access the stimuli in that way? Eduard
  • You do it in the sketchpad item, once an image is selected and drawn onto it, you can adjust scale in the top bar above the image. However, that was not the original problem. Eduard
  • Well, the same logic can work in your advantage. If you set the duration of the sketchpad to some low value (say 20-30 ms) that this will be the quickest participant can get through the experiment. When then computing the response times, you shouldn…
  • Hi, Do you mean during the experiment, using Pygaze? This can be done with exp.pygaze_eyetracker.sample() from within an inline_script. Hope this helps, Eduard
  • Hi Mans, My problem when I start the task is that on a given image Opensesame records a single button press Attached an experiment that fixes that problem. Basically, add a inline_script after the stimulus in which all the keypresses a…
  • Hi, the program also says I have too many key loggers which may be messy. The message says you have too many unlinked loggers. It is perfectly fine to add a logger to each of your 7 loops, but try to use the same logger item every time…
  • Hi Boo, I can never remember how to write complex commands in a sketchpad. However, I adapted your script a bit (adding an inline_script before the sketchpad that selects the item of your dictionary). Is that good enough for you? Eduard
  • You are exactly right. Understand the logic of prepare/run phases and you understand how [correct] works (a little teaser: it works exactly as I think you think it works). Have you checked this part of the manual? In a nutshell, in a debugsketchpad…
  • Hi, How do you present the words then? Your example is a little too incomplete to really understand what is happening (and what isn't). Generally, if you want to make sure that your sounds is presented exactly 5 times in the word loop, you should…
  • If you upload your experiment (Ideally that it can run without any adjustments), I can try to have a look what is happening. Eduard
  • Hi, Btw. There is no reason to make those two variable names globals. And honestly, I am not really seeing what you are doing in your code snippet, but if it does what you want, that is good! Following this, what is the best way for me to r…
  • Hi, you need a logger after every time your participants responded something and the response is stored in a variable that might be overwritten by the next response. So, typically, a response is being given on every trial, and its value is stored in…
    in Logger! Comment by eduard January 31