Script not working properly
Hey,
I am currently doing a study in OpenSesame where I am trying to show the user a sequence of trials. I realized that the time between trials is rather high for what I am trying to do with it, so I tried using a script in order to shorten that timespan. Do you guys have any idea as to why this is happening?
Preparation:
exp.prepstart = self.time()
Startup:
import random ITI = 2000 jitter = 0 preptime = self.time() - exp.prepstart pausedur = random.randint((ITI - preptime) - jitter, (ITI - preptime) + jitter) self.sleep(pausedur)
Thanks in advance!
Comments
Hi @SushiSushi ,
Your trick of measuring
preptimeis a good one, because you can print this value out and see how much preparation time there actually is. If this is high (say approaching 1000 ms) then this is likely because stimulus preparation takes a long time, for example because you're using manysketchpaditems or have many elements on asketchpad. There's not much that you can do about that, because preparation takes as long as it takes. However, different backends differ (somewhat unpredictably) in their preparation time. Especially xpyriment can be slow. So trying a different backend might speed things up.Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!