Howdy, Stranger!

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

Supported by

Errors in the middle of experiment using PyGaze

Hi,

I generated an experiment in PsychoPy using PyGaze. In the experiment there are 25 movies run using the command "MovieStim". I have several questions/problems:

  1. Before the experiment, I ran the calibration and validation via the EyeLink setup.
    Then I do not need to run "calibrate" from PyGaze but I get error when I comment the "calibrate" command.
    Why is that? Is there a way to cancel the calibration from PsychPy? I guess EyeLink's calibration is better.

  2. The experiment went OK with ~22-23 movies. Then towards the end PsychoPy just stopped working. The experiment stopped and no EDF was written. When I cut the experiment to run only 20 movies it was OK.
    Is there any memory limit ? Is memory that is not needed anymore get released?

  3. Is there a way to write the EDF through the experiment and not only in the end, so that if the experiment stops for any reason in the middle, at least I will have part of the EDF ?

Thank you very much !
Noa

Comments

  • I don't know the solution to your problem, but I had a very similar problem (see my last post). I just realised the eyetracker never went beyond 6 minutes of recording. Funny enough, tho, it managed to dump the data on the tsv file before stop recording....

  • Hi Noa,

    There are a few separate things here:

    Before the experiment, I ran the calibration and validation via the EyeLink setup. Then I do not need to run "calibrate" from PyGaze but I get error when I comment the "calibrate" command. Why is that? Is there a way to cancel the calibration from PsychPy? I guess EyeLink's calibration is better.

    Different EyeLink calibration routines are all just different layers on top of the same system. So it doesn't matter if you calibrate with PyGaze/ OpenSesame, or using another tool. What is the exact error that you get?

    The experiment went OK with ~22-23 movies. Then towards the end PsychoPy just stopped working. The experiment stopped and no EDF was written. When I cut the experiment to run only 20 movies it was OK. Is there any memory limit ? Is memory that is not needed anymore get released?

    It seems indeed that memory fills up, and this causes the experiment to crash. But whether this is due to PsychoPy or your script is impossible to tell—if you don't upload the actual script!

    Is there a way to write the EDF through the experiment and not only in the end, so that if the experiment stops for any reason in the middle, at least I will have part of the EDF ?

    The EDF file is continuously written to the EyeLink computer—it's just the transfer to the experiment PC that fails.

    • With more recent versions of the EyeLink host software, you can access the EyeLink filesystem through a web interface. You can read exactly how in the EyeLink manuals (download from http://www.sr-support.com).
    • With older versions of the EyeLink host software, you need to reboot the EyeLink PC into Windows 7. Then from there, you can search for and find your data file.

    So you probably didn't lose any data!

    @DanieleP I don't know the solution to your problem, but I had a very similar problem (see my last post). I just realised the eyetracker never went beyond 6 minutes of recording. Funny enough, tho, it managed to dump the data on the tsv file before stop recording....

    Thanks for chipping in! But we're talking different eye trackers here! (And presumably different problems.)

    Cheers,
    Sebastiaan

  • I attach the relevant code:

    from psychopy.visual import MovieStim, ImageStim

    from psychopy import visual, core, event
    from pygaze import libinput
    from pygaze import liblog
    ...

    # Initialise a PsychoPy MovieStim
    mov = MovieStim(win, movie, flipVert=False)
    
    # Add the MovieStim to a PyGaze Screen instance.
    # (The Screen object has a list of all its associated
    # PsychoPy stimulus instances; you can add custom
    # instances, like the MovieStim, and they will automatically
    # be drawn each time you fill and show the Display.)
    scr.screen.append(mov)
    tracker.log('movie = %s' % (movie))
    # Start recording from the eye tracker.
    tracker.start_recording()
    
  • BTW we looked at the EyeLink computer via Windows7 but couldn't find (in "search") any EDF file.
    Do you know in which location should we look?

  • From you code it seems that you're loading movies and then append them to scr.screen. But you also remove them once you're done playing? If not, then memory may gradually fill up (although I'm not sure how the PsychoPy MovieStim handles memory when it's not playing).

    BTW we looked at the EyeLink computer via Windows7 but couldn't find (in "search") any EDF file. Do you know in which location should we look?

    I believe it's usually in D:\ELCL\DATA, but it's possible that it varies a bit from system. In any case it's there, so keep looking!

  • Hi Sebastian,

    I just downloaded Open Sesame to give it a try.
    How can I show movies in Open Sesame (and remove each one from the memory after playing?)

    Thanks!
    Noa

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