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
382
Last Active
Roles
Member, Moderator
Thanked
58

Comments

  • Hi, Do you still have this problem, or was it solved in another discussion? Eduard
  • Hi Rob, you can use the variable `var.subject_parity` for that purpose. It will have the values odd and even, depending on the participant number. Does that help? Eduard
  • Hi, your code looks already really good. What is missing is the loop element. You want to keep on flickering the two images until the participants find the change, right? So it would be easy to do loop over the phases of your experiment. Furthermore…
  • > Thanks so much! I've adapted it for my experiment and for the most part it works. Just to clarify, t1 and t2 essentially set two different timers? That is almost correct. t1 and t2 are two different time stamps. So, basically the current time, rel…
  • I guess this discussion, can be closed. Let me know if not.
  • Hi Tom, Did you also show the canvas, i.e. calling my_canvas.show(). If not this is the reason why the screen stayed empty. Can you reupload your experiment, it seems that the upload has failed. Eduard
  • Hi Elisa, Have you already managed to fix that problem? Eduard
  • Hi Sun, Sorry for the long wait. Do you still need help? In that case, could you reupload the image? I think what you want is making use of the mouse-trap plugin (https://osdoc.cogsci.nl/3.2/manual/mousetracking/), combined with a self-made likert…
  • Hi Erika, You could make the sound playback be followed by a loop which only contains a keyboard item and a logger. So every time a key is pressed, the response is logged and the keyboard waits for the next trial. The only tricky part is to exit …
  • Hi Mark, Which plugin are you using? I am not very familiar with video playback, but in theory, couldn't you just set variables in independent inline_scripts that are being called after the video finished playing, but before the loop starts agai…
  • Hi Liya, As you already discovered, variables have to exist as part of var if you want to use them in sketchpads. So, while the variable img_list cannot be used in sketchpads, the variable var.img_list can. Another potential source of the error c…
  • Hi Boo, If you already present the stimuli with an inline_script, you can also add the logging to it. You can send messages like so: exp.pygaze_eyetracker.log("Message"). Add it right before or after a canvas.show(). To make sure that you are …
  • Hi Tom, You can use these examples to test inline_scripts: https://osdoc.cogsci.nl/3.2/manual/python/canvas/#function-canvas46image40fname-centertrue-xnone-ynone-scalenone-rotationnone41 Can you share the experiment? Just to check whether it al…
  • Hi, I answered in the other discussion. Can you check whether my code helps you? Generally, it would be better to discuss in only a single thread. So, please stick to this one here. For completeness sake, I post my answer here again: Hi, …
  • Hi Hannah, Why would you want that, if I may ask? If you have a variable that codes the target location (response_required vs. response_not_required or something like this), you can put this into the run if statement of the keyboard item and r…
  • Hi, Would it be sufficient, if you just put all the files into the same folder (i.e. the file pool)? Like that, Opensesame won't complain that it can't find items, provided that they exist. However, I am surprised that OS tries to prepare items e…
  • Hi Sonia, The warning is in itself not a reason why the experiment doesn't work. It might be a problem though if you're experiment needs very precise timing. The python crash is unrelated though. Without more information about your experiment …
  • Hi Gérard, 1 On the top right of the item, you can select the script view. There you can see a few more settings that you might adapt. If that is not enough, you can easily build your own form, based on the description here : https:/…
  • Hi, It is not supported currently. The problem (I think) is that in a group, checking one option cannot be undone unless clicking on another option. Having one item checked per default means that giving no response wouldn't be possible. Does that…
  • Hi Rob, Have you followed the beginner's tutorial? Defining correct responses is part of it. Basically, in the loop table of the test phase, you can set what trial type you have (foil vs. memory) and depending on that you can set a correct_respon…
  • Hi Lea, What is the problem? Are the words not showing at all or are they presented for longer/shorter than 2 seconds? Eduard
  • Hi Mollie, Do you still need help with this question, or has it been solved in the other discussion you had with Sebastiaan? Eduard
  • Hi, First you have to define the variables before you enter the form loop. So in an line_script, do this: # ideally in the prepare phase var.totalTrials = 0 var.totalCorrect = 0 After the form you can add this code. var.totalTrials += …
  • Yeah, if you need to recode them during the experiment, you can add an inline_script after the form with some if statements like this: if var.response == 'True': var.response = 1 # alternatively define a completely new variable elif var.respo…
  • As far as I know, forms don't allow for key responses (all actions are click based), so you would have to implement this yourself, which is certainly possible, but maybe not very easy... Eduard
  • Hi, If you change the Opensesame source code, you should be able to change that message. To do so, find the file: libqtopensesame/runners/base_runner.py in the Opensesame folder. On lines 299 and 300, the pause message is defined. When messing …
  • Hi, Yes, I believe the syntax is this: =var.varA, which would then translate to [white]. Keep in mind that this only works for variables that are part of var. So, for example, var.variable would work, while variable, wouldn't. Does that make s…
  • Hi, So what is then your question? If it is about the structure, I would put the initial adapting phase before the trial sequence, so that you can easily put everything in a loop/sequence with an S and an A phase. Eduard
    in sos Comment by eduard March 1
  • Hi, I can't confirm what you say (simply because I don't know). A workaround could look like this (using inline_scripts): cv = Canvas() blank_cv = Canvas() kb = Keyboard() # define and shuffle the word list word = 'stuff' # define durations o…
  • Hi Marsh, I don't have much experience with video playback and manipulation of that. With which library are handling videos? I think cv2 can be quite powerful. I don't know whether it is possible (as I haven't tried it ever), but your problem sou…