Questions about eyetracking experiment stuck in the interface

PennController for IBEX Forums Support Questions about eyetracking experiment stuck in the interface

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #7816
    tianw
    Participant

    Hi again,

    I have successfully played my own audio and displayed 2 of my pictures in the intended position. And I also got the eyetracker working for the first 2 of my pictures. But when I clicked one of my 2 pictures, the interface was stuck and cannot continue to the next 2 pictures. I used similar codes based on the eyetracking template as follows. Please let me know which parts of the codes I should pay attention and tweak for my own test run. Thanks so much!

    Tian

            // Wait for a click on one of the four Canvas elements
            newSelector("answer")
                .add(
                    getCanvas("topFemaleIA"),
                    getCanvas("bottomFemaleIA") 
                )
                .once()
                .log()
                .wait()
            ,
            // Stop now to prevent collecting unnecessary data
            getEyeTracker("tracker")
                .stop()
            ,
            // Make sure playback is over before moving on
            getAudio("test").wait("first")
            ,
            newTimer(250).start().wait()
    #7817
    Jeremy
    Keymaster

    Hi,

    The link in your message points to a copy of the Empty project. I don’t see anything wrong with the code you posted, but since the context is missing, there could still be issues I cannot identify. For example, maybe the code of your trial never creates an Audio element named “test,” or maybe it just never starts playing it so the script hangs on the wait command. Feel free to share a link to your project

    Jeremy

    #7820
    tianw
    Participant

    Hi Jeremy,

    Thanks for your quick response! I have solved the issues. Just like you said, there’s no audio element named “test”, so I changed it and it’s working now! I still need to keep updating my CSV file for Template command though.

    As for the results, like I mentioned last time, the php script is still generating gibberish. So, I wonder if there’s any php function requirement for the script? Since I’m using a free php hosting website, I wonder if the hosting website is restricting some functions of the php script? Thanks so much for your help!

    Best,
    Tian

    #7822
    Jeremy
    Keymaster

    Hi Tian,

    Unfortunately I haven’t identified the cause of the gibberish eye-tracking data files. What you could try to do is download PennElement_eyetracker.js and replace line 433 with sendLine('times', this.counts.times.join('.'));, then upload that file to your project’s Modules (or js_includes) folder. You’ll get a warning/error that the EyeTracker element is defined twice, but I think it should still work. Then, in your PHP script, you could replace $dictionary[$param][$trial] = explode('.', lzw_decode( $value ) ); with $dictionary[$param][$trial] = explode('.', $value ); and see if that works. The eye-tracking data files will be bigger, but they shouldn’t be insanely big, and hopefully no longer contain gibberish

    Jeremy

    #7824
    tianw
    Participant

    Hi Jeremy,

    Thanks so much for your new methods! The generated file from PHP script is getting better but still contains some gibberish as follows. Thanks so much for your help if you can have solution!

    2,_topFemaleIA,0.ĀĂāĄăĆąĈĀ1ĈċćĊ.ċđĄĒĎĉĐČĖĕăĔėĒčĝĖğćĞėĚęħďĦĪĨĬīĮĭİįIJēĠĜijķġĵĺĤĶĴĽĸŀıłīğĢľĥĴĩňĤŁōŃĘďŌňģŇŅŇĕņŎŚłŒŔņřʼnħŖĜļĠŊěĬŠĦŠĿĹijŝŜŗĺńŋųŏūŶŁşŕĘŪŷİŻŨťťŨŊžŧŐſŸŭŭƈƈţšŘœŦĭ
    2,_topMaleIA,1.ĀĂā.0ĄăĆĆĈąČĉčćďĎĒďĀēĖĄėęđěĚĝĜğĞġěĕģĥĤĎăĤĪČħĠĮĢĢĭıįĴİĵķĶĨĬĐĩļĻĊĘğċĚIJĮŃĸňĹłľĭĽċŇŀŅĞŒʼnņŌŗőŗĽēŎĐĶīŊŜŕńţťšŦŨŧŪũŬūŊśĔŞľŮŭĴŐűŏĥşŁŴŽŦ
    2,times,0.33.32.24.25.38.23.22.24.24.22.26.22.27.23.25.23.24.24.25.23.27.24.26.25.23.23.25.23.25.23.24.25.22.24.23.24.23.23.22.23.24.23.23.25.24.22.21.21.22.22.23.23.25.24.23.23.23.25.25.23.25.22.23.24.21.21.23.23.24.22.23.24.23.24.23.22.24.23.25.22.22.24.22.22.22.23.22.23.22.25.23.25.25.21.23.23.24.26.22.23.25.23.27.21.21.27.22.25.24.23.23.24.26.25.23.22.22.22.23.23.21.25.22.23.21.23.22.24.24.23.23.22.23.24.21.21.22.21.33.25.23.25.23.22.25.23.23.23.24.23.25.26.25.26.26.24.25.22.23.24.23.24.23.23.24.23.24.21.21.21.21.21.25.21.23.23.25.25.23.23.26.23.23.23.24.23.25.22.22.23.23.22.23.23.24.24.23.22.26.23.22.24.24.26.23.23.23.24.24.24.24.23.21.22.23.23.24.25.24.24.21.24.24.24.23.21.23.23.20.23.22.24.22.21.22.25.22.25.23.22.21.20.22.23.22.25.22.24.23.24.24.24.23.25.24.23.24.24.23.21.20.24.21.21.25.21.25.23.21.26.23.23.23.23.24.22.24.23.23.24.24.23.22.23.26.21.25.24.34.23.25.25.23.23.23.25.27.21.24.26.23.24.25.25.25.25.23.26.25.23.22.25.23.22.26.23.24.25.22.25.22.26.24.24.23.22.25.24.25.25.27.25.21.23.23.23.23.27.24.26.25.25.22.25.23.24.23.24.22.24.24.23.25.22.23.23.21.23.24.20.23.22.28.21.23.23.23.23.25.23.24.24.24.24.24.27.24.24.23.22.22.24.24.23.24.24.23.22.24.23.22.25.23.22.22.23.23.24.24.23.25.24.24.23.22.22.26.21.21.26.22.21.26.22.24.24.24.23.22.23.21.24.25.22.25.22.24.22.22.25.23.24.22.24.23.23.34.25.24.24.23.23.25.21.22.25.24.22.24.24.25.24.25.23.22.21.24.21.25.24.25.23.23.23.23.25.24.21.26.22.24.23.24.22.27.24.24.22.22.24.22.22.21.26.22.22.24.23.23.23.25.24.23.22.24.24.24.22.24.26.23.24.22.23.21.21.24.23.24.22.24.24.24.22.26.24.25.22.24.25.23.24.25.23.24.23.24.23.23.24.24.23.24.21.25.23.23.26.22.24.24.24.23.23.23.23.22.22.21.24.25.26.23.23.23.22.25.25.23.22.23.22.23.22.22.24.25.23.25.23.22.22.23.24.23.24.25.24.24.24.23.51.28.24.25.26.25.24.24.25.24.23.26.25.23.24.22.26.23.24.23.24.22
    3,_topMaleIA,0.1āăĀĀĂĆ.ąĉċĊčČďĎđăĂĔēĖĒĕęĖĚćďĜěĠĒĈĊĚģĐĄħĢĩīĪĭīĕĪğĥĞċijĈIJėįĬĻĮĤħĝŀĿĠğĽļłĝľĶĵġĨĸĸķĴʼnĨıņŒŁŗœŕĹńŋŅŎśřňĹŒľĦŔŢŖţōŌŅťĻŜŧřŮŢŘĘŪŐŸĴŵŝūŦŚŭſņŊƀŮƄƁƆűĎİŲƇƍƈļ
    3,_topFemaleIA,1.0āăĂĀĂćĄĉĈċĊčČďĎđĐēĒĕĔėĖęĘěĚĝĜĐĀġĞģğĤĦĥĨħĉĢĢĩČĆĪĮıijIJĵĴķĶĹĸĻĠ.İİĈĬīăŀĻŅĺňĕŅĭŃįľńŏłŒŐŌąŏŖłĶœřőŐŘŝĿŠŔŞŗţŇŝĘŕťŖŁŢŭŪůŤśŮūŔ
    3,times,0.30.23.24.24.26.23.24.24.26.22.22.23.23.24.23.24.22.23.22.23.23.23.23.24.24.22.24.23.24.23.24.23.21.23.22.23.24.25.25.26.24.23.22.24.24.27.23.26.23.25.24.25.24.23.23.21.23.24.22.25.24.23.25.21.26.24.24.24.21.22.24.22.25.23.23.25.23.25.24.22.22.24.24.27.25.24.25.23.23.22.25.25.24.26.23.23.23.24.23.23.24.22.23.23.23.23.24.22.25.22.23.23.24.22.23.24.24.24.23.21.24.23.22.22.34.26.24.23.24.24.24.26.24.23.22.25.24.30.26.23.24.23.22.22.24.23.25.23.22.22.25.23.24.23.25.22.23.23.21.23.23.25.23.22.24.22.22.24.22.32.24.23.23.22.23.24.23.23.25.22.24.24.24.23.25.22.24.25.24.25.26.23.25.23.24.22.23.24.23.21.24.23.23.22.23.23.22.23.24.25.26.23.23.23.23.24.25.23.24.22.24.23.25.23.26.24.24.21.25.23.25.26.26.22.22.24.23.24.25.26.22.23.23.23.24.25.23.23.24.23.24.24.21.21.26.23.26.24.21.24.24.23.24.24.27.23.24.22.22.25.23.21.24.21.23.22.33.25.23.24.23.24.24.25.26.24.24.23.24.24.24.26.24.22.25.24.24.23.25.24.24.24.25.24.24.26.25.25.26.24.24.22.25.21.26.23.25.21.23.23.24.25.23.22.24.22.22.24.23.22.26.22.26.22.25.23.23.23.22.23.23.25.24.25.23.26.24.25.25.23.24.25.26.24.23.25.23.24.23.23.24.21.24.23.24.25.24.25.24.24.22.23.23.24.23.24.23.23.23.23.31.23.22.27.23.25.23.25.23.24.25.28.24.23.24.23.23.24.22.22.23.22.22.23.23.27.23.23.23.23.23.23.23.24.23.22.23.25.23.26.24.25.25.26.23.25.22.33.26.24.24.23.23.25.24.24.26.25.23.25.23.26.23.23.24.24.24.24.25.24.25.23.20.22.23.23.23.26.24.23.24.26.24.25.24.25.24.26.27.23.24.23.22.26.23.23.24.26.22.25.22.25.23.24.24.22.23.23.25.26.25.23.24.25.23.25.26.23.22.23.20.25.21.23.24.23.24.24.25.25.24.25.25.24.23.26.25.25.23.27.24.23.24.25.23.24.24.25.23.25.24.24.24.30.23.24.23.24.23.24.25.27.26.24.26.23.25.25.25.23
    #7825
    tianw
    Participant

    Also, the decrypted file is like this

    Thanks for your help!

    #7827
    Jeremy
    Keymaster

    Oops, you should also replace line 437 with sendLine(keys[k], this.counts[keys[k]].join('.')); — as you can see the times, which are the data points handled at line 433 that you edited, are now correctly reported, so modifying line 437 along the same lines should solve the issue once and for all

    Jeremy

    #7830
    tianw
    Participant

    Thanks so much for your help, Jeremy! My newest decrypted file is looking good here

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.