Howdy, Stranger!

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

Supported by

Problem writing markers to the eyetracking log (EDF / ASC)

edited December 2022 in PyGaze

Dear Forum,

For my eye tracking experiment, I would like to write certain messages to the eye tracking data log to simplify the analysis of the data. For example, I would like to mark the stimulus onset as well as when a participant has made a choice during the experiment.

In order to do so, I am using the following code:

 eyetracker_variables = ("TRIAL_START_DATA" + " " + str(var.block)            + " " 
                                               + str(var.eyetracker_phase)       + " "
                                               + str(var.trial_count_eyetracker) + " "
                                               + str(var.position_helper)        + " " 
                                               + str(var.initial_safe_amount)    + " " 
                                               + str(var.upper_lottery_amount)   + " " 
                                               + str(var.lower_lottery_amount)   + " " 
                                               + str(var.step_size)              + " " 
                                               + str(var.exit_rule)              + " "
                                               + str(var.exit_rule))  
    eyetracker.log(eyetracker_variables)

as well as:

eyetracker.log("CHOICE_MADE")

Unfortunately, none of these messages appear in the eye tracking log file and apparently the logging of messages does not work yet.

Do you have any recommendations / tips what I could do to solve this issue?

Thanks a lot in advance!

Best,

Sarah

Comments

  • Hi Sarah,

    Do you log the data while the recording it still on? I think logged variables won't appear after you have stopped the recording. Other than that the code looks fine. Back in the day (Opensesame 3.2), I used: exp.pygaze_eyetracker.log("") to send log messages, but maybe your code also is fine.

    By the way, be aware that depending on your tracker, there might be a limit of how long your messages can be. The Eyelink is limited to 128 (or 255) characters I believe.

    Eduard

    Buy Me A Coffee

  • edited December 2022

    Hi Eduard,

    Thanks a lot for your reply and tips :)

    Yes, I log the data when the recording is on. Regarding the code used, I as well did some research here in the forum and already tried exp.pygaze_eyetracker.log(""), however this did not work either.

    Thanks a lot for the tip with the character limitation, we have an Eyelink tracker. This might affect especially the first part I am trying to log since it is quite long, however the second message eyetracker.log("CHOICE_MADE") should not be affected by this. Unfortunately, neither of the two messages has been logged successfully until now.

    When I run the experiment in the advanced dummy mode, in the output it says "the following message would have been logged to the EDF".

    What I was wondering: In the lab, we still have an older version of Open Sesame (3.2.7) with Python 2, while I programmed my experiment in the latest version OS version (3.3.12) with Python 3. Are there any differences in how to log messages to the EDF between the two Open Sesame versions?

    Thanks in advance & best,

    Sarah

  • Mh, then I don't really know either. I would need access to an eye tracker to debug and find out what is going on. That you see that message is also a good sign actually.

    Are there any differences in how to log messages to the EDF between the two Open Sesame versions?

    Quite sure that this wouldn't be a problem. Perhaps the Pylink version (Python api provided by Eyelink)? But that shouldn't be a problem either given that it used to work fine.

    Not sure whether it helps, you could try looking at the code of one of my older projects, and see what code should work (provided the setup is fine). Here is the link: https://osf.io/349xz

    Buy Me A Coffee

  • Thanks a lot! I will take a look at that and hopefully somehow figure out what the issue might be :)

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