eduard
About
- Username
- eduard
- Joined
- Visits
- 1,402
- Last Active
- Roles
- Member, Moderator
Comments
-
Seems to be a valid solution to me. You might want to add a break statement in the end, to avoid pointless iterations in the loop, though. Eduard
-
Hello, When you say you want your stimuli to appear randomly, you mean you have a pool of stimuli and draw them in a random order, right? If this is the case, you can use the loop item and put some identifier (e.g. the name, some id, or whatever) o…
-
Hi Ruth, I have to admit, I'm a bit out of the topic right now. Would you mind uploading your experiment, so that I could have a look on how you have implemented the code? Alternatively, you could also give some more detail on the structure of your…
-
Hi, maybe the multiple_choice_form is something for you? I couldn't find a documentation about this plug-in, but if you open opensesame you can add the item to your experiment and play around with it (it's the small green box with "a)" an…
-
Hi FLorian, I'm sorry, but the solution is again rather easy (at least I think so). So far I know, widgets can only be used in forms. Therefore, you can't just add it to a sketchpad and expect it to work. You have to use some form (like the base_…
-
Hi Florian, You are using OpenSesame 2.9.X, but looked up the function in the documentation for 3.0.X. There was a change in the way images are presented on a canvas. If you check out the documentation for the older version, you should be fine. Not…
-
(Quote) This line tells the experiment for 10 ms and wait for a key to be pressed. If something was pressed the identity of the key is saved in key and the time, at which the key was pressed is saved in time. you can add t0 = clock.time() before th…
-
Another stupid mistake of mine. I forgot to actually show the image (and correspondingly, clear it) kb = keyboard()cv = canvas()count = 0while True: cv.clear() # this is new cv.text(str(count)) cv.show() # and that is new key,time = kb.…
-
No, it doesn't. Try using Filedropper, googleDrive or any other image hoster. Follow their instructions and post the final link here.
-
I can't open your image. Can you try posting it again? Without I have trouble seeing what the problem could be. Eduard
-
Hi, First of all, is there a reason that you are still using version 0.26? By now, it is pretty outdated and it might be better if you used a newer version. Also the media_player plug-in is not the best choice to display videos. It is better to use…
-
Hi Florian, Not sure whether you are missing anything here. Unfortunately, I can't reproduce this unwanted behaviour (actually quite fortunate for me...). But I'm also not working on a Mac. Maybe there is someone else who can confirm that this is r…
-
Hi Sarvenaz, What kind of error message are you getting? Can you post it here? (It usually doesn't work the first time, but a little bit of tweaking here and there, will solve it) Eduard
-
Oh sorry. You have to replace kb.get_key(10) with kb.get_key(timeout=10). This is a great example of sloppy programming.
-
Hi, What did you set as duration for the instruction sketchpad? If you don't need reaction times or the actual response to the instruction, you don't have to add a keyboard_response after it. Aside from the that, does your sequence work fine? You s…
-
Hey, I don't really understand the problem. When exactly do you want to present the feedback? During the movement, or after it is done? From what I get so far, your situation is not much different than in a regular experiment. Would you mind helpi…
-
Yep, the script would work for this experiment. However, it will stop as soon as the button is pressed 100 times. You can simply set it to the value that you need, or to some time duration. Whatever you prefer. Eduard
-
Ah, I was afraid this will happen. You could try the feedback item. So, don't use an a regular sketchpad, but the a version of it which is dedicated to make feedback presentation easier. Alternatively, instead of a sketchpad use an inline_script an…
-
Great to hear! Good luck with testing. Eduard
-
Hello, (Quote) Have you already seen this part of the OpenSesame documentation? There you find a description of steps to take when installing PyGaze and Eyetribe. Try it out. If you get stuck, you can post your problem here. (Quote) Also in the do…
-
(Quote) I don't think it matters for your case. So just briefly, when using a loop to repeat some action and save some outcome to a variable, you need to make sure that you can use the outcome of each iteration, before it is overwritten by the next …
-
Hey, If this is really everything your experiment is supposed to do, the solution is indeed quite easy. However, I don't think that's really all there is to it. So how about you share a few more details with us. Maybe including what you are interes…
-
First of all, which OpenSesame are you using? Accessing variables via var.<varname> was only introduced in Opensesame 3.0. For all older versions, you'd have to do something like this: var = exp.get('varname')# do stuff with varexp.set('newva…
-
Hi Florian, How about you use a loop? In this sense, in each iteration you run your form once with one of the questions, log the response (with a logger) and then proceed with the next iteration. Once, all the questions are answered, you can leave …
-
Hi Laurent, if you add another sequence to your experiment, in which the first item is some sort of menu implementation (via inline_script, most likely), and add a number ofsequence`, each of which represents one of your experiments, you should get…
-
Hi Sarvenaz, Reaction times are recorded from the moment on a keyboard_response gets activated. That said, using two of these items in succession won't work, because the two keyboards will have two different starting points. This is also the reason…
-
Hi Ruth, This code answers your first question: while True: # update circle positions x1,y1 = x1+update_factor,y1+ update_factor button, (x2, y2), timestamp = mouse.get_click(timeout= 15ms) if button !=None: if distance(x1,y1,x2…
-
Hi, I haven't seen many beginners in python that program in a object-oriented way. Before I get into the actual issue, first a few remarks about your code: 1) It is possible that both chaser and chasee are initialized at the same location. I don't…
-
Hi Jasmin, If you keep some general points in mind, there is no reason why you shouldn't get ms-precision timing. Checkout this page of the documentation. There Sebastiaan explains quite detailed how a optimal timing is obtained with OpenSesame. G…
-
Hey Maryam, In general, I can only recommend you to check out some of the tutorials. They are a great way to get familiar with OpenSesame. There are different solutions for the issue you have. The most straightforward one (in my opinion) is almost…