Howdy, Stranger!

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

Supported by

Delay between trials in sequence

Dear all,

I'm currently working on my first experiment (SC-IAT) with OpenSesame (PsychoPy backend) and need some help with timing issues.

The experiment consists of 3 block loops, each containing a sequence with stimuli presenting trials. Subjects have to react by pressing certain keys in response to the stimulus. The process is running quite smoothly (adopted it from the beginners tutorial). Just the ITI is causing some trouble.
I inserted a sketchpad with a delay of 245ms (to get 250ms) at the beginning of the sequence. This is working quite precisely. Analysis of the test data delivers averages of 250-254ms.
However, there is a rather long delay between the last item in the sequence (logger) and the onset of the ITI sketchpad item of the next trial. Unfortunately this is highly variable (500-1000ms), i.e. I can not take this delay into account in the ITI item.

Any idea if/how I can fix this?
Thanks in advance
Thorsten

Comments

  • Hi Thorsten,

    Have a look at the first few paragraphs of the documentation. There the reasons for your delay is explained. In short, Opensesame assumes everything within a sequence is time-critical and tries to minimize the delay between items in it (which is why your sketchpad works nicely). However, between sequences (including separates iterations of the same sequence, there is always some unpredictable delay. The amount of it, might vary across back-end you use, but it is nothing you can avoid entirely.

    There are a few ways to circumvent these issues. For example, if you have a fixation period in the beginning of your trial, you can set its duration dynamically, so that it already incorporates preparation time. For example, if you want a fixation dot for 1 second, you could set its duration to 1000-[prep_time]. Of course for that you need prep_time to be defined and represent the actual preparation time (the time after the previous stimulus appeared on screen, until the moment the current fixation dot should appear).
    For that to work, you probably have to do some inline-scripting.

    Alternatively, you can decide to make your entire sequencein python code, that gives you much more flexibility when it comes to timing, but requires more work.

    Does that make sense? Let us know if you need more help.

    Eduard

    Buy Me A Coffee

  • Hi Eduard,

    thanks for your explanations (and sorry for my late answer). I think I understood the mechanism behind it.
    Unfortunately, as I have absolutely no clue about scripting I'm kind of stuck at this point.
    If I got it right, for the first alternative the code is used to define the prep_time variable, right? Would this be a rather big effort, or can I do this as a noob with some hits.

    One more questions about timing: This would only work if the prep_time doesn't exceed the interval itself, correct? I need an ITI of 250/300ms, but the delay is much more than this.

    Thanks again
    Thorsten

  • Hi Thorsten,

    Yes, you are absolutely right. If the delay is bigger than the desired ITI, you can't have a dynamic prep time.
    So probably, you will have to prepare your trials in advance (moving all preparations into an earlier sequence and just index which of the trials to run at a given point. Depending on your stimuli, this might be a little memory heavy though. And also here, you would have to do some inline_coding (store your stimuli for all trials in a list).

    If you upload your experiment, I can maybe show you a little example of how to do it.

    Eduard

    Buy Me A Coffee

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games