Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Script not working properly

edited June 2020 in OpenSesame

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 preptime is 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 many sketchpad items or have many elements on a sketchpad . 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

Sign In or Register to comment.