PennController for IBEX › Forums › Support › Questions about eyetracking experiment stuck in the interface
- This topic has 7 replies, 2 voices, and was last updated 2 years, 7 months ago by tianw.
-
AuthorPosts
-
March 2, 2022 at 3:30 pm #7816tianwParticipant
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()
March 2, 2022 at 4:20 pm #7817JeremyKeymasterHi,
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 projectJeremy
March 2, 2022 at 5:10 pm #7820tianwParticipantHi 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,
TianMarch 2, 2022 at 5:23 pm #7822JeremyKeymasterHi 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 gibberishJeremy
March 3, 2022 at 3:46 am #7824tianwParticipantHi 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
March 3, 2022 at 3:53 am #7825March 3, 2022 at 3:44 pm #7827JeremyKeymasterOops, 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 allJeremy
March 4, 2022 at 5:07 pm #7830 -
AuthorPosts
- You must be logged in to reply to this topic.