eduard
About
- Username
- eduard
- Joined
- Visits
- 1,385
- Last Active
- Roles
- Member, Moderator
Comments
-
hi Evelina, Unfortunately I am not able to run the experiment in OpenSesame, or any other platform. Does anyone know if this is possible? What do you mean, you can't run it in Opensesame? Is not implemented or is it not possible to implement it? Ed…
-
Hi, circle = Canvas() circle.circle(x=0, y=0, r=100) empty_cv = Canvas() circle.show() clock.sleep(15) empty_cv.show() clock.sleep(SOA) Eduard
-
Hi Gazelle, The problems stems from mixing inline code with Opensesame items. In the inline_script you defined a canvas circle but you don't draw anything on it, so it remains empty and when showing it, the screen doesn't change. Instead you rely o…
-
Hi @Lorenzon, sounds like you're overburdening the variable wizard. How many factors with how many levels do you have? It is important to realize that the wizard tries to fully combine all levels with each other. So, you don't put all the combinati…
-
Hi @Chichi , you can put in the run_if field of the loop break_loop==True and initialize this variable as False (like you do correctly with wrong_response . Then you do if var.wrong_response >= 3: break_loop = True And that should be …
-
Hi, Not dedicated to TMS in particular, but depending on the ports of the device you might be able to use the parallel_port_trigger or the serial port items. Or you can just use plain Python from within an inline_script. That depends to some extent…
-
Hi Lorenzo, You probably need to change the decimal separator when importing the data into Excel. Use dot for decimals and commas for thousand separator. See here for more detail: https://support.microsoft.com/en-us/office/change-the-character-used…
-
Hi @ChrIm, Have you updated your Opensesame version? Generally, there is no guarantee that older experiments are compatible with newer versions, so if you want to replicate your old experiment it is best to download an older release from github an…
-
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