eduard
About
- Username
- eduard
- Joined
- Visits
- 1,402
- Last Active
- Roles
- Member, Moderator
Comments
-
Hi DCube, the syntax should be: if var.response == var.Correct_Answer: var.Point = 1 else: var.Point = 0# and accordingly:if var.Pika in range(0,4): var.Grade = 'Sorry, better study next time' I'm not sure whether I understand you…
-
Hi Joff, Not sure what is wrong here. Could you try this code? Instead of showing the canvas on every frame, it executes this part only once (even though I don't think this should have caused a memory error or anything like that) # show your canva…
-
Yes, stupid me.... Swap the if and the first elif statement. You were caught in an infinite loop. See why? here the updated code: # show your canvas and initialize t1, so that you can use it before presenting the mask# t1 was undefined before, wh…
-
If it is the time until the first letter is typed, you won't be able to use the text_input_form, but have to use python scripting. It is certainly possible, but won't be very easy, especially if you want to have code that is flexible enough to deal …
-
Hi Marija, You could add 2 sketchpads to your sequence, one for each type of error. So, in that sketchpad you present the images, either image_error_1 or image_error_2. Next, in the tab of the sequence you can set these sketchpads to run only if a …
-
Hi Patrick, These example experiments were created with an older version of OpenSesame. It is possible that you won't be able to run it with the current one (v3.1). At any rate, you can fetch the experiments from github. Good luck, Eduard
-
Hi Joff, Sorry, I should have used comments. Here again: # show your canvas and initialize t1, so that you can use it before presenting the mask# t1 was undefined before, which was the reason for the crasht0 = c.show()t1 = clock.time()# keep on sa…
-
Hi, Did you try using [response]= None, for when no response was given? Additionally, you can change the condition of a false response to: [response]!=[correct_response] and [response]!=None, to make sure that it is only shown if a wrong response…
-
Hi Joff, t0 = c.show()while True: if clock.time()-t0 > 495: t1 = mask.show() elif clock.time()-t1 > 2500: break if not var.response: var.response, t2 = kb.get_key(timeout = 10) var.response_time = t2-t0 Does …
-
Hi, You can add another variable to your logical that is either True if the the trial is not repeated and False if it is repeated (or the other way around). The tricky part here is to find the right spot where to initialize this variable that it is…
-
Hi Morgan, I don't think you can make your experiment with relying only on the loop tables, at least not in an easy way. I recommend you select the trials to run from within an inline_script. This requires that you have your variables stored in som…
-
Hi, It seems the variable [correct] is not updated automatically. So basically, the comparison response == correct-response is not done. If you change your run-if statements to [response]=[correct_response] and [response]!=[correct_response], it …
-
Hi, The reason why these variables are missing is that they are not clearly defined (at least I presume so). For example, what is used as a response time? The time until the first letter is typed, or until the entire phrase is written? Similar ambi…
-
Hi Asma, How is your experiment structured? Do you present your images via sketchpads or inline_scripts? Normally, OpenSesame logs automatically the time when each of its elements are called. Check out the log file and you should see many variables…
-
Hi Arturo, You could accomplish this in two ways. First, you can do inline_scripting (not to difficult). Second, you can present another sketchpad after the keyboard_response item and pretend to wait during the keyboard_response by showing the exac…
-
Hi, Sorry for not coming back to this discussion earlier. How is it going? From your description, I don't see why it should take that long to record a keypress. Did you try my suggestion? Did it help? If not, could you upload your experiment? Edua…
-
Hi Joff, There are a few things that quite work out in the code you posted. 1) There is a : missing in the end of the line in which you initiate the for loop 2) Your usage of random.randint allows indices to be selected that are out of the range o…
-
Hi, Could you tell us what you did so far, that is how your experiment looks like, which OpenSesame items you use, etc... (Quote) This sounds as if you wait twice for a keypress. This usually happens if you don't set the timeout in the item that p…
-
Hey Ainsley, Would you mind providing a functioning example? I'm sure that the part that you posted earlier does indeed make the dots move outward. However, the more general part of the code is missing (initialization of the window, setting up the …
-
Hi, Thanks for the additional information. Unfortunately, I won't be much of an help here, as I don't have a tablet around to try things myself and your problem doesn't seem to be trivial. Maybe @sebastiaan can help? Sorry, Eduard
-
Hi, What exactly do you mean when you say "missing answers"? From what you describe, it sounds like the responses of all preceding questions are overwritten by the last question, because they all write to the same variable. Could this be …
-
Hi Sarah, You can write variables to the Eyetracker logfile, by typing the command exp.pygaze_eyetracker.log("!V TRIAL_VAR <variable> %s" % <variable>) into an inline_script at the position of your experiment, where you need i…
-
Hi, Would you mind providing a few more details what it is that you want to accomplish. I have a vague idea, but it doesn't really elude yet. Thanks, Eduard
-
Hi, Without more details it is virtually impossible to help you. Could you let us know what precisely seems to be the issue? Error messages, log files, the experiment. Information on all of those will help. Thanks, Eduard
-
Hi Bori, If you have your list with ratings, you can subtract 5 from each of them. What you get is a new list with values distributed between -4 and 5 centered around 0. Next, you can take the absolute values from each of those ratings and sort the…
-
Hi Roelof, I am not super sure myself when It comes to use all the Opensesames count_XXX variables. When I want to do something similar, I usually create the variables myself. So in your case, you can say something like this: var.counter = 3 in …
-
Hi Amihai, you could use a counter variable and break the loop (with the break_if field), once the variable has a certain value. So, if you have a loop that supposed to have 15 trials, you add an inline_script to your trial_sequence, in which you i…
-
Hi Roelof, Sorry for having let you wait that long. Sure, just upload the experiment, and I will have a look. Best, Eduard
-
Hi Rubin and Jean, If you are not interested in the fixation part, why recording it in first place? So, if you move the start_recording item before the stimulus, the start recording message will be aligned with the stimulus onset. Alternatively, y…
-
Hi Tim, If you add a logger to your sequence you will get a logfile with many variables, among which the timestamps of each item in your experiment. If you have to keyboard_responses, they both will give you the time of keypress and the difference …