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
250
Last Active
Roles
Member, Moderator
Thanked
19

Comments

  • Hi, I usually you use the procedure of initiatlizing a timer before entering a loop, on every iteration in the loop update the current duration of the block, and abort it once the limit is reached. Note that this won't necessarily abort the loop …
    in Break Loop Item Comment by eduard May 31
  • Of course that is possible. Just use a sampler item to play the sound, followed by a sketchpad that prompts the question that participants need to give their opinion on, and some sort of response collection (e.g. mouse_response, keyboard_response, t…
  • Hi Stephan, The problem is the line clock.sleep, followed by (). Unfortunately, we don't know why this happens. For now you can avoid it by being a little obscure. enter = keyboard(keylist = ['RETURN']) var.Resp_Perc_F= 20 var.Resp_MT = 5000 …
  • Hi Josh, I have used a gaze-contingent paradigm in Opensesame, but with the 3.0.x version. You can download it from here. Most of the action happens in the trial loop and relies primarily on getting samples and make the experiment do certain thin…
  • Hi, That depends on what exactly you want. If participants should respond within 5 seconds, you present a sketchpad (or whatever your stimulus is) and set its duration to 0. Next, add a keyboard response to the sequence that has the duration set …
  • Hi, I myself don't remember exactly what will work and what not. If you browse the forum, you'll find quite a few discussions that cover questions regarding the new Tobii. Maybe you'll find your information there. Otherwise, maybe @Edwin can sha…
  • Hi, Can you try whether this code does the trick: im[np.where((np.all(im == [0,0,0],axis = -1)))] = [0,33,166] (from here) Eduard
  • Hi Kim, What exactly do you mean? Could you elaborate what you need to do? In general, it is a good idea to add files in the file pool, and that add the file name of the files that you want to play in the sampler item. If the sound should be s…
  • Hi Ema, Can you share a log file with us? Maybe also the experiment. Normally, the response time variable is stored as response_time, but maybe it got overwritten or something. Eduard
  • Hi Stavros, 1) Does it work if you use var.noise_rc? 2) Yes, one script should be fine. The exact implementation depends on what it is exactly that you want to present. But with the right if/else construction you should b…
  • Hi, Does it work if you use this line: c.text('Regular text with a big ☺') ? Eduard
  • Hi, We need more information to really help you finding out what is going wrong. So, maybe share your code, a screenshot of your sequence, or upload the experiment. If I had to take a guess, I would say the problem is that you haven't added a …
  • Hi, If you use an inline_script rather than a mouse_response you should be able to avoid the flickering. Replace it with following lines: my_mouse = Mouse(timeout=20) my_mouse.set_visible(True) button, position, timestamp = my_mouse.get_cl…
  • Hi, If you still have this problem, could you give more information on what happens? How are you trying to download it? Where exactly does it get stuck, during the download or during the installation? And what procedure are you following? Edua…
  • Hi, Sorry for the late replay. exp.pygaze_eyetracker.log() is what you want to use. For example in a structure like this: exp.pygaze_eyetracker.log("Begin trial") If you also want to send the timestamp on when this happened, you can use som…
  • Hi stoney, YOu still have to make sure that the block loop is called again after the break. If you don't enter this loop again, then the experiment will just end. So eventually, you should have something like a nested loop structure. Eduard
  • Ok, I think this is an issue to do with encoding of the log file when opened in excel or something similar. So, it is not directly related to Opensesame. Normally, openesame writes comma-separated value files (csv files). So when you doubleclick on …
  • The most straightforward solution would be to store the choices of the participant in a certain file (either text, or a python pickle), load this file in the second script and change settings according to it. I recommend you check out pickles. The u…
  • Can you share one of your logfiles? I attached one of mine.
  • Hi Estelle, I ran the experiment and looked at the file, and both responses as well as response_times are present. (In Excel, they are in the columns "CS" and "CT". Can you doublecheck whether they are really missing in your logfile? How many col…
  • Hi, I don't know what exactly you want to do but line 17: if var.Comparison==1: is the problem currently. You created a numpy array that has 5 (NOC) items. Therefore, python doesn't know whether it is true or false when you compare it to 1. You …
    in help with code Comment by eduard May 7
  • closed as duplicate of #4099
  • Hi Marton, the function log.write_vars() takes as input a list of variables that you want to write. So, if you call it like this: log.write_vars(), all variables are being stored. If you only want to have a subset, than you have to use log.write_…
    in Dual task timing Comment by eduard May 7
  • Hi Estelle, Attached a screenshot of what a frame "does" to a button. So, I don't think it is what you have in mind. In any case you can try it on your experiment, just add the argument frame=True to the part of the code that defines each button.…
  • HI, Yes, it is a single call. Basically, once updating the screen and showing the canvas and then immediately proceeding to the mouse response and waiting for a click until the end of the timeout (2000ms). Once it was clicked (or time is up) it w…
  • Maybe you can upload the experiment somewhere else and share the download link here? FOr example, www.wetransfer.com ? From looking at your screenshots, I can't see anything apparently wrong with it. Eduard
  • Hi Ana Clara, If you replace the two lines with these two here: var.experiment_start_time = clock.time() var.experiment_end_time = clock.time() Does it work then? Eduard
  • Oh, my bad. That was the wrong function, timeout has to be part of form initialization not widget creation. That code here should work. var.start_time = clock.time() timeout = 180000 def resetForm(): form = Form( cols=[1,1], row…
  • Hi, No, it wasn't set. In the prepare phase, there should be this code: var.start_time = clock.time() timeout = 180000 def resetForm(): form = Form( cols=[1,1], rows=[1,2,1], margins=(50,100,50,100), spacing=25) te…
  • No idea, I don't have much experience with tablets. @sebastiaan: Do you have any recommendations?