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
316
Last Active
Roles
Member, Moderator
Thanked
39

Comments

  • You have to define start time before you enter the loop. Just take the current time: start_time = clock.time() Eduard
  • Hi, You don't have to get the variable. You can simple use is it by prepending the var.. So if in your loop table you have the variable target_word, you can access its value by writing var.target_word in an inline_script. Does that work? Eduard
  • Hi, You can add a constant angle to the computation of dx and dy. For example: dx = arm_length*cos(radians(time+start_angle)) Just make sure that you set the angle before you enter the loop, e.g. with numpy's linspace: import numpy as np…
  • Sounds weird. Could you try to copy them again into a different folder in your dropbox? Just to see, whether it is the copying that helps, or the new location outside the dropbox. Eduard
  • Hi Harrison, Well, as far as I can see, the THE_END sketchpad is the next item in the outer loop, once the inner loop is finished. So given your description and your screenshot everything seems to make perfect sense. You also don't have an outer …
  • Not sure whether I perfectly understand what you want to accomplish, but if it to generate a path to a sound file based on a randomly generated target word, I highly recommend using intuitive file names. For example, if the target word variables are…
  • Hi Foddle, If you increase the space in between your widgets (by adding more columns in between the relevant columns), or reduce the font size, you can probably fix the overlap issues. To change the font color, you can look at the general setting…
  • Hi, Can you share your experiment? This will make it easier to help. Some general advice: * make sure your logger and feedback items are at the correct level in the sequence (see the tutorial) * to choose a random prime, make lists with …
  • Hi Simon, Can you upload your experiment? It is hard to make an estimate what is happening without knowing what exactly you did. Eduard
  • Hi Viola, I don't know whether this Leap motion device in particular is compatible with Opensesame, but generally, if a device can be accessed via python, then you will be able to use Opensesame to communicate with it. According to this link, …
  • Hi, Does this part of the documentation help: https://osdoc.cogsci.nl/3.2/manual/python/canvas/#function-canvas46image40fname-centertrue-xnone-ynone-scalenone-rotationnone41 Conceptually, using circles and images are handled the same way. …
  • Hi, Have you tried to convert the files into another format? Eduard
  • Hi, If you don't use plugins but play a video from within an inline_script, it will, most likely, be possible. I recommend you figure out how to play videos first (separately of the simultaneous sounds), and once you figured it out, you can try t…
  • Can you also try reinstalling Opensesame? If this doesn't work, you can try a different installation method (e.g. via pip) or another workaround (though not ideal solution) would be trying the standalone version that doesn't require an installation …
  • Hi Jasmin, You can simply replace the target letter with a digit. So this line (no 26 in the RSVP inline_script): stim_list[var.T2_pos] = 'X' you can replace with stim_list[var.T2_pos] = 8, for example. And the same for the other target. Does …
  • Hi Sabry, I think some parts of the input form has changed recently, but which exactly I don't know. Specifically, whether, the on_mouse_click function still works. Can you share (a simplified version of) your experiment here, then I'll have a l…
  • Hi Sabry, What is the error message? And what kind of object is input2? Eduard
  • Hi, How did you implement this? Can you share the experiment (preferably as simplified as possible)? What you describe shouldn't happen ideally. Thanks, Eduard
  • Hi Letizia, This error message is usally a sign for some issue in the python libraries underlying opensesame. So, the problem is not Opensesame itself. Unfortunately, these errors are very hard to debug. If it happens consistently, you can try to…
  • Second, I would like to set a response time limit of 25000 ms but I have no clue on how to write it in the inline script. instead of while True: you could use while = clock.time()-start_time<25000. If you use that you have to define star…
  • Hi Tali, This sounds very new to me. As far as I know, there are no such plans. @sebastiaan, do you know more? Eduard
  • Hi, Which variable are you looking at? Can you share a log file? The keyboard item returns multiple variables, the timestamp of when a key was pressed (these variables just get bigger and bigger over time), but also a response time, which takes t…
  • Hi, without more details, I can't help you. What is your experimental setup? And how did you currently implement it? Eduard
  • Does it occur also on other windows machines? I am not sure whether this could be it, but I vaguely remember that there used to be a problem with experiment that use many videos. Basically they get all opened, but never closes, which causes a memory…
  • Hi, You can add a inline_script right after the loop. In its runphase you can put somehting like: var.value_at_break = var.value. If you have a logger item after that, it will save the variables (you can also manually log inside the inline script…
  • Hi, Just to be clear, there is no error message? The experiment just stalls? Seems that the droid backend has problems with newer versions of Android. I have no idea about the droid backends, so I am at a loss here. @sebastiaan , do you know whet…
  • Hi, First part of the code makes a 10x10 grid of x,y positions. The second part draws circle on those positions. import random kb = Keyboard() # make a grid positions = [] x0,y0= 0,0 dim = 10 jitter = 50 cellwidth = 50 sx = x0-0.5*dim*cellwidt…
  • How do the log files look like? Can you attach them. Generally, it is advisable to have a single log file and sort out relevant things during postprocessing. At least that is my preferred approach. Have you had a look at this part of the document…
  • Hi, you are right, I made a mistake. I think what you want is not possible to do with sketchpads and text_input_forms only. Maye co-routines can help you? If I am not mistaken you can set an overall duration for a co-routine, I am just not sure w…
  • Hi Sanne, Here some example code how to load the data: import pandas as pd # read the file table = pd.read_csv('/path/to/file/voorbeelden.csv') # the first number indicates the index of the row # the second one indicates the column label pri…