psychopy.org | Reference | Downloads | Github

Setting time for duration is not accurate. Help please

Hi all,

I set 4.5 seconds in the duration, i.e., the sentence stays on the screen for 4 seconds and then a new sentence automatically comes next.

However, some times, a few sentences stay only one second or maybe less although the duration has been set at 4.5 seconds.

I have attached a photo for my experiment.

Your urgent help is highly appreciated.
Nass

Although I wouldn’t think this would cause a 3 second discrepancy, if you want consistent visual timing you need to set your stimuli duration according to number of frames instead of seconds. Read some more about it in the docs here (or in other questions in this forum) :

http://www.psychopy.org/general/timing/millisecondPrecision.html

Is your keyboard component set to force the end of the trial?

Hi Michael,

Thank you so much for your reply.

Yes, the keyboard component and the image component are set at 4.5 seconds as well. A photo of the keyboard component has been attached.

Best,
Nass

Suffice to say this isnt normal - psychopy stimulus timing is generally good - so the question is why so bad in your case

How big is the image? Are you loading it from disk on each trial as well? Is the sentence very long? You’re asking everything occur immediately at t=0. I wonder if these things are being delayed in their start times, although I can’t imagine why they would be delayed by such a long period.

The general approach is to try and work out what part of your experiment is causing the problem:

  • does it go away if you get rid of the image component?
  • does it go away if you get rid of the text? If so what happens if the text is shorter?
  • if you add a static period at the beginning of the trial and load the image/text during that does it help?

Hi Jon,

Thank you for your reply.

The image size is small and the sentence is short. I have a big doubt that adding a static period will solve the problem.

To do so, I insert another routine at the beginning of the loop ( before the main of the routine) and in the added routine I insert a blank text component with duration ( lets say 0.25 ) . Am I right?

Thank you again for your help
Nass

As I say, try to narrow down your problem. Tell us what you find