eduard
About
- Username
- eduard
- Joined
- Visits
- 1,402
- Last Active
- Roles
- Member, Moderator
Comments
-
Hi Tom, I don't think threading will be necessary. Probably this can all be fixed by using conditions in a smart way. One thing that isn't clear to me is how often/how long is this loop supposed to last? Until participants responded, or is there s…
-
Hi, There are multiple options how do it. Here are 2: # 1) use random.sample to select samples from the list without replacementimport randomitem_list = ['long','list','with','many','items']no_of_samples = 2 # in your case 50random.shuffle(item_l…
-
Hey Rhett, the script in TR_Face_Script has code in the prepare and in the run phase. Of all elements in a sequence Opensesame executes first all prepare phases and moves then on to the run phase. This probably explains your first problem, right? …
-
Hi, Solution A can also just be written as a = 1/3.0. You're right. That's just the way Python2.x does divide. With python3.x this behaviour will change. Btw. Opensesame supports also python 3. So, if you start it explicitly with python3. You shou…
-
Hi Rhett, (Quote) Are you sure that the fixation cross is really not there? Sometimes, it just appears so, but in fact Opensesame proceeds to the next item super quickly, so that you just can't see it. In this case, changing the duration feature wo…
-
Hi, For all items that are static (that is don't change depending on what you're doing on the screen), you have to use a single canvas. For all other items that do change, you need to add another layer and update it regularly. So, the first canvas,…
-
Hi Chris, Would you mind providing a little more detail on that design? I am not familiar with it and if you explain how your version of it should look like it is easier to tell whether it is possible. (Wild guess of mine, it will be possible!) Ed…
-
Hi Amandine, Just this week, some other user asked a similar question. Have a look on this discussion here, isn't that something you can use as well? Hope this helps. Eduard
-
Hi eda, (Quote) If it doesn't work, you can also just upload the image on www.filedropper.com (or any other server) and post the link to the image here. (Quote) No. You can combine plenty of sketchpads in a smart way and won't have any performance…
-
But not in one trial, right? So, for every trial (88 in your case?), another iteration of a loop will include the operators and digits that your equation is composed of. So you need only 7 sketchpads in total per trial, because they get overwritten …
-
Using sketchpads this is not possible. You could draw the characters directly on a canvas, but this requires that you use inline_scripts. Why don't you want to use multiple sketchpads? I think this is the best (and also a very good) solution. Eduard
-
Hi Eda, This is certainly possible. The "how" to do it, depends on your idea of the design, though. So, are the numbers random, or do you counterbalance them? When do you want to start measuring response time, or not at all? Etc.. At any…
-
Hi Rhett, Here a version of that prepare phase that doesn't throw an error: Tr_Face_Flank_Image = canvas()path = exp.pool[str(var.Flank_Object)+'.BMP']Tr_Face_Flank_Image.image(path, center=True, x=480, y=None, scale=None)path = exp.pool[str(var.F…
-
Hi, You should have a look here. Basically, you have to specify, how many columns there are, which size they have and in which of them you put which information. The link explains all of that pretty detailed. If you can't get it to work, even afte…
-
Hi, The error that you are posting is related to some type conflict. As it seems you are trying to convert something to an integer (maybe even implicitly), which cannot be an integer. To say for sure, I would have to see the piece of code that prod…
-
Hi Rhett, Sorry for the late response. Unfortunately, I'm still unsure whether I understand your issue. Let's take a step back and make sure we're on the same page. (Quote) With "change between sets", do you only mean, that the file name…
-
Hi, All information you need or on the documentation of the mouse object. Basically, you wait for a click of the left and the right mouse button separately, but in rapid succession (e.g. in a while loop with a timeout of 10 ms each). Use the keylis…
-
Hi rhett, If you want to draw 3 images on one canvas, you need to provide all the names for each file. One way to get this done rather easily, is to have three variables in the loop table, e.g. file1, file2,file3. Later in the inline_script, you th…
-
Hi Rhett, How about a version 4 :) # Basically, it assumes that you have your three displays already prepared in # a canvas. Then, in a while loop, you keep on presenting a certain display/mask# depending on the current time. So that after 300 m…
-
Hi Pia, In the meantime, you might wanna try sending the triggers from within an inline_script. I ran an EEG experiment in this way and it worked quite nicely. So, here you go: In a first inline_script in the beginning of your script, you have to…
-
Hi Fanny, This is not possible. If you want to use Opensesame, you need to create your experiment with OpenSesame (or at least with python). However, creating an experiment is rather simple once you understand the structure of OpenSesame. Why don'…
-
You're very welcome! Good luck with your experiment. Eduard
-
Hi, (Quote) Well, it doesn't really matter. But of course, even a very simple command like clock.time() takes some time, so returning the time stamp of an action (like showing a canvas) is always more accurate than measuring the time stamp slightly…
-
Hi Laurent, True, I just updated the version this morning, so maybe this update indeed solved the issue. can you try it @jnaveblod ? The problem you describe with the script, I had also before. Not sure what solved it, but now it works. Maybe one …
-
Hi Elodie, Do you mean seconds or milliseconds? In the table you posted it seems to be milliseconds. Aside from that, I don't really know what the variable stim is supposed to represent. I can't find it anywhere in the code above. The reason why I…
-
Hi, Unfortunately, I cannot reproduce the error. I am running the experiment with the droid backend on ubuntu and the sound plays only while I can see Bugsy and his/her friends; also during the first trial. Which system do you use? Maybe someone el…
-
Hi Andreas, It has some other drawbacks, but if you set the parameter click_accepts to 1 (True), the form will proceed once one response was chosen. In this case, you wouldn't need a "next" button, so that the only way to go on is to make…
-
Hi Vesna, Welcome on the forum! Yes, randomization is possible with Opensesame (it would be a very poor experiment builder if not). The scenario you describe sounds like a pretty standard case, where it should be enough to set the order field, in …
-
Yup, the variables don't represent what they're supposed to. Well, in addition to the time between the first and the second sound play, you probably want to check the time between the beginning of a trial (fixation) and the onset of the stimulus (c…
-
I lost track what the latest code looks like. To be clear, I expect everything to work if you have this stuff in the run_phase: # and this in the run phaset0 = clock.time()var. T0 = t0clock.sleep(1000)var.beg_sound_play_1 = clock.time() -t0my_samp…