eduard
About
- Username
- eduard
- Joined
- Visits
- 1,372
- Last Active
- Roles
- Member, Moderator
Comments
-
Hi, See attached experiment for a demo how you can accomplish this with Python coding. https://forum.cogsci.nl/uploads/467/AJC6F84YOHC9.osexp Essentially I create the stimuli once per block, and then access them one by one in the trials. When doin…
-
Your problem sounds to me, as if you simply need to move the logger one layer inside the nested loops. New lines to the data file are only added, if a logger is passed. If it is not included inside a loop but only after it, it will only log the vari…
-
Hi Sara, I have no solution, but a suggestion how you can debug. Try to time each operation in the loop to find out where the delay is.Opensesame's clock.time() will help with it. Other than that, it might help to separate reading and manipulating…
-
Hi, Nested loops (one for the trials, the second one for the word in the sentence) and every word in a separate column. See the attached experiment. Hope this helps, Eduard https://forum.cogsci.nl/uploads/009/6CL4YK2Y6Z9I.osexp
-
Hi Amber, if the two items are presented right after one another, you can start with the sketchpad and set its duration to 0 , and then the sampler with the duration set to the variable length of that sound bit, by setting it to sound . Hope this …
-
Hi Christin, A possible solution is interjecting a feedback item between mouse and keyboard response in which you present the same sketchpad again, but then add another visual object (in my example a green square) at the coordinates returned by the…
-
Hey, As for data logging, I am logging all variables but have put my inline script after the logger, so this could be the reason I am having an issue So, is this it? Does your script work if you move back the logger? If you want to keep track of in…
-
Hi Tryfonas, I am a bit confused about your code. It looks like you are computing the slowing after the experiment has completed (you read the data file). If so, I wonder why you use Opensesame for the computation and not regular python. If you do…
-
Hi Ornella, I think your best bet is to look for publications that cite pygaze and check whether they uploaded the experiment somewhere. Personally, I have not defined AOI in a way that you envision, but used something similar to check the gaze on …
-
Thanks for sharing!
-
Hi, Not 100% sure, but I think the variable var.count_trial_sequence is only updated once per block and not once per trial. Perhaps you need to use a variable within that sequence? In any case, you can easily create a counter variable within your…
-
Hi, It is not possible to combine such a button with a video when using the media player plugin. I am not very familiar with the approach, but this could be done with direct python coding, specifically using the OpenCV package. Be aware that you ca…
-
I don't know about how to do it directly in Pygaze, but if you use the Pygaze plugins in Opensesame, you can select the advanced dummy mode at the initialization and then use the mouse as if it was the gaze. Pygaze has also a dummy mode, but I am no…
-
Hi, Is there no error message? Could you try to eliminate your code bit by bit until Python doesn't crash anymore? Eduard
-
Hi @amoupsou, I had a look at your experiment. Unfortunately, there are some issues with the sound files (I believe), which made it hard for me to debug (the experiment crashed unpredictably). Still, I realized a few weird issues, for example your …
-
Hi @KarsLigtenberg, If you check the logger, you will note the option "Automatically log all variables". You can unset this one, and instead drag all the variables that you want to keep into the `include` field. Alternatively, you can als…
-
Hi Angelo, Have you tried to not call a custom Python script?
-
Hi @amoupsou , Sorry, I was on vacation and the link expired already. Could you repost? Eduard
-
Hi @AngeloPisanii, Looks like this is possible with OpenCV: https://stackoverflow.com/questions/75267154/how-do-i-add-an-image-overlay-to-my-live-video-using-cv2 So, load your image, video and text (potentially as image), and then draw them in the …
-
Hi Gérard, Sounds reasonable. Your situation should be covered by my second scenario. So yeah, you should look into the datamatrix documentation (and search the forum for datamatrix questions). Another possibility could be to copy the contents of …
-
Hi Gérard, Is it also possible to read the contents of an Excel file into the loop table before execution of the program ? Yes, just select file as source for the loop table instead of table https://forum.cogsci.nl/uploads/060/A9KOLZ51RHFE.png I wo…
-
Hi, Can you please share your experiment? It is a bit hard to find out what is happening with screenshots alone. Thanks, Eduard
-
Hi @doingMyBest, This function that you used, will wait for one fixation, and once it detected it, proceed with the experiment. If you have multiple fixations in a trial, you need to call the function repeatedly until the trial is over. Here some p…
-
Hi, This message tells you that your environment is inconsistent, that is, some packages should exist in conflicting versions. Have you manually installed packages after installing opensesame? I'd be surprised if the environment becomes inconsisten…
-
Hi Elinor, No javascript expert here, but why don't you then save all variables as var instead of let ? Seems like only global variables are logged. This is explained here as well, by the way: https://osdoc.cogsci.nl/4.0/manual/javascript/about/…
-
Hi Asif, As I said, if each of your forms has a unique response variable name (that you can specify in the field on top of the form, see response_variable in the screenshot https://forum.cogsci.nl/uploads/135/Q89IWBHJ4I5E.png then one logger in t…
-
Hi mike, I can't tell you what is happening, but what you could try to narrow it down is following: Remove randomization of trials, which will tell you whether the error always happens at the same time, or varies. You can also print out the current…
-
Hi, If you have a form, you don't need an additional mouse response. To log all responses you would either need to make sure that the response variable of each form is unique and put a single logger at the end of each sequence, alternatively, you c…
-
Hi, var.balloon_sizes = {} I suppose you want to set up an empty dictionary? If so, you need to do var.balloon = dict() What you have done is setting up an empty set (which does not support assignments of strings (which is what j is) Hope this clea…
-
Hi Nadia, Sounds weird. But if you have the sizes as returned by the text_size function, can't you adapt that variables somewhat? Like, there is a whitespace in the string, shift the values to the right (i.e. adding a few pixels onto the number)? …