Howdy, Stranger!

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

Supported by

timing issues with PyGaze start and stop recording

Hi,

I'm building an experiment using OpenSesame with PyGaze and EyeLink.
It's important for me that every trial in my experiment will save as a separate reccording (each trial starts with "pygaze start recording" and ends with "pygaze stop reccording"), and of course I want the timing to be precise.

I checked the timing and saw that each trial takes almost 1000 ms more than it supposed to. I think the reasone is that pygaze_start_recording and pygaze_stop_recording take time. I saw that the time between "pygaze_start_recording" and the stimulus (sketchpad) I present is ~300 ms, and the time between "pygaze_stop_recording" and the "pygaze start recording" of the next trial is ~700).

Is ther any way to fix this timing problem?

thanks!!,
Yael

Comments

  • Hi Yael,

    Would you mind posting a minimal example in which you illustrate this problem? Delays can occur, but often they are in the area of several milliseconds, not 700! I am very curious to learn what is causing the delay in your experiment, and the code would be a great place to start debugging.

    Cheers,
    Edwin

  • Hi all,

    If I may shed some light on this ;)
    I ran into a big delay (in dummy vs EyeLink) some time ago and tracked it down to the commit below, but never found/made the time to test/check/report it....

    https://github.com/esdalmaijer/PyGaze/pull/16/commits/69640b7362f93cea7541ba96f43795d47c1b981d

    Best,
    Jarik

  • Thanks, Jarik, that's very helpful! Maybe @sebastiaan can shed some light on this? (The commit was his.)

  • These delays are to give the EyeLink some time to breath when going from offline to recording mode, etc. If you look at the examples provided by SR Research, you'll see that they do the same. I don't dare to remove these delays, because doing so may re-introduce problems; you'll see in the commit message that there used to be 'mysterious freezes,' which were resolved by adding these delays.

    But does it matter? The timing during the trial is not affected, only the intertrial interval.

  • I experiences similar issues. As intertrial interval was critical for my experiments, I instead recorded entire blocks and send only messages to demarcate trials.

    Buy Me A Coffee

  • Hi again :)
    @Edwin @sebastiaan , Here is an exemple (osexp file and its output xls file). In the xls: yellow=my calculations, red= the main problematic things (and please note to ( :wink: ) "note1", "note2", "note3" in the xls file for detailed explanation).
    I'll have more than 700 trials (stimului) in my experiment, so 1 more sec for each trial means very long experiment :(...

    @eduard, Thanks for your advice. My experiment contain more than 130 blocks so I can record each block separately (although this will also add something like 3 minutes to the experiment-this is not so bad.

    But- I'm actually not sure what is the best (or correct) way to build this experiment:
    record each trial separately OR each/(or more than one) block(s) separately)...

    In my analysis I need to compare the amount of fixation (or saccadas) in different blocks (between different blocks).

    When recording each trial separately I get an eyelink file with each trial (each stimulus) in a "different line" (or "trial"- this is how the eyelink call it), and when recording each block separately I get an eyelink file with one block in a "different line" (or "trial"-again, this is how the eyelink call it).

    If anyone know what is the best way to build it-let me know :)

    Thanks again!
    Yael

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