eduard
About
- Username
- eduard
- Joined
- Visits
- 1,402
- Last Active
- Roles
- Member, Moderator
Comments
-
Did you define congruence in the loop table? If so, you have to use var.congruence. The same is true for OS defined variables. In inline_scripts they need to be called with var., where is the actual variable name. Eduard
-
Hi Mikael, Just to be sure, did you see your actual variable names, or literally "var"? So, if congruence is the variable you want to record, you have to use: exp.pygaze_eyetracker.log("!V TRIAL_VAR congruence %s" % congruence)…
-
Hi Kristin, Which version of opensesame do you use? I adapted your code for OpenSesame 3.x.x, as some of bits of your code were really outdated. I hope this is fine by you. There were quite a few things a little weird about your code. Here, the ge…
-
Hi Jaykob, Can you upload your experiment? I can't reproduce the error. My Umlaute are all present the correct way. Eduard
-
Hi vatsal, You can attach a file to your post. Just click on the most right icon, above the window in which you type, and upload your experiment. Eduard
-
Hi Maz, Have you considered creating a custom-form? You can find rather detailed instructions how to make them here. Let us know if you need more help with them. Best, Eduard
-
Hi, The general procedure is explain here and here If you want to use both, mouse and keyboard responses, you should sample responses in a loop, e.g. like so: kb = keyboard(keylist=['j', 'f','g', 'h'], timeout=20)# have a low timeout, so that th…
-
Hi Celine, Would you mind uploading the experiment? Eduard
-
Hi Mikael, What exactly do you mean with "variables from loop & merge"? To my knowledge, using !V TRIAL_VAR [name] [value] should work for all types of variables. So, if you have defined a variable in your loop table that is called co…
-
Hi Helen, On OpenSesame's website, we do have a couple of tutorials made for beginners. * http://osdoc.cogsci.nl/3.1/tutorials/beginner/ * http://osdoc.cogsci.nl/3.1/tutorials/intermediate/ and for the eyetrackings parts, you can also check out e…
-
Hi, I think the easiest solution is choosing your session and subject numbers based on the files in your directory and or filepool. So, retrieve a list with all log files, check the number of the most recent subject/session and set var.subject_nr a…
-
I experiences similar issues. As intertrial interval was critical for my experiments, I instead recorded entire blocks and send only messages to demarcate trials.
-
Hi, It is fairly easy. You have to use mouse functions in an inline_script. In particular, you need to take the mouse position once a click occurred and calculate the distance to the centre of your regions. If the distance is smaller than a certain…
-
Hi Boo, Try this: text = "Enter text followed my [=[variable]+1] for sketchpad" Eduard
-
import randomoptions = [var.question_option1,var.question_option2,var.question_option3,var.question_option4,var.question_option5]random.shuffle(options)var.questionOption1,var.questionOption2,var.questionOption3,var.questionOption4,var.questionOptio…
-
Not too difficult. You need to do this in another inline_script though. This new inline_script, you have to add as a first item into your loop. There (in the prepare phase) you do following steps: 1. take all the answers from the loop table and sav…
-
This could only be the reason if you have a nested loop, that is if you have multiple blocks in which all the questions are presented repeatedly. If you have only a single block (as in the example I uploaded), you wouldn't have to reset the Point co…
-
Hi Joff, Here another attempt. I tested it and I get response times that make sense and also the proper key labels out if it. c = canvas()mask = canvas()kb = keyboard()c.circle(0,0,20,fill=True)mask.circle(0,0,20,fill=True,color=(255,0,0))var.resp…
-
You're right. There was a sloppy-coding-related issue, but it is resolved now. Also, I optimized the script a little. Note, if you want to loop over a questionnaire, you would have to reset the Points counter. Otherwise it will continue to count fr…
-
Did you initialize the counter of the points before the trial_loop? In a loop, every assignment that has the form variable = value, will be overwritten on every iteration. To keep track of a variable across trials, you need to initialize a variable …
-
It does not know the variable because you haven't created it. # This doesn't do anythingvar.correct# This is probably what you wanted to dovar.correct = True (Quote) Well, there a couple of tutorials that you could do: e.g. http://osdoc.cogsci.nl/…
-
Hi Lena, in which version did you program your experiment, and in which version are you trying to open it now? Can you upload the experiment here? Thanks, eduard
-
Hi Charlotte, The reason nothing happened, is that you only broke out of the for loop, but not out of the while loop. YOu would need another break statement outside the for loop that is only executed once you broke out of the for loop. Alternativel…
-
I edited your code to make it more readible. For the next time, you can do the same by using Markdown commands. Let me know, if you need help on that. (Quote) Right, OpenSesame doesn't count the points, because you don't tell it to add, but to rep…
-
And that's where the issue is. Your response is collected not before the run phase of your MCQs, however, you try to compute the points in the prepare phase of the same sequence. Have a look at this part of the documentation to learn about the diffe…
-
Hey, What is the structure of your experiment? Is the code that you posted above executed in the run or prepare phase of that inline_script? I need a little more info to help you here. Eduard
-
Hi, I think the reason why the feedback doesn't work is either due to a type conflict, or an upper/lowercase conflict. What are the correct responses currently? 2,4,6,8 or UP, LEFT, RIGHT, DOWN? If you use the numbers, they are probably stored as i…
-
Hi DCube, This is another Syntax error. The problem is that you don't use colons and indentations properly. These two are central to the Python syntax. I recommend you to do one of the many Python tutorials online (e.g. this). The problems you repo…
-
Hi, Would you mind uploading the experiment, so that I could have a closer look? Your intuition sounds actually pretty good. Proceeding with the next image, only if the previous response was correct should be the best way to tackle the problem. Unf…
-
Hi, Thanks for the pointer. For now you can download the stimuli from here. This is the tutorial of earlier versions of OpenSesame. The files that were used back then, are the same that are used currently. So at least for that part you should be f…