# Mworks eye problem

**URL:** <https://mworks.discourse.group/t/mworks-eye-problem/613>\
**Category:** Support\
**Created:** [September 23, 2013, 1:21pm UTC](https://mworks.discourse.group/t/mworks-eye-problem/613 "2013-09-23T13:21:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [September 23, 2013, 1:21pm UTC](https://mworks.discourse.group/t/mworks-eye-problem/613/1 "2013-09-23T13:21:49Z")

</div>

Hi Chris,  
The problem I’m having is that occasionally m-works fixation point windows will not be triggered by the eye input despite the fact that the eye position is within the image window. I’ve attached some eye traces, it’s a slightly convoluted figure so I apologize for that. The traces show the eye position error relative to the target position, downsampled at 100Hz. The blue curves are hit trials, the red curves are trials where no selection was made. The black line shows the error limit (6 deg image window, or 3 deg radius). The eye has to remain within this limit for 700ms, or 70time steps in the plot. In the plot, I’ve aligned everything to the last 750ms of the trial.

I’ve highlighted two particular trials (with thicker lines). As you can see, in both cases, the eye is within the window for the required duration, but in one case it is not registered as a hit trial. I believe this is because the image window is not triggered (and so eye\_in\_sample\_image\_window is not updated) unless a saccade is detected, but I don’t have further evidence for this. It’s also possible that I have a bug in my task, although this error doesn’t happen systematically.

The .mwk file is somewhat large, so I can’t email it to you. Let me know if you want to take a look at it and I’ll find some way to share it. Any thoughts?

As always, thanks a lot for your help.

Best,  
Rishi

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [September 23, 2013, 1:21pm UTC](https://mworks.discourse.group/t/mworks-eye-problem/613/2 "2013-09-23T13:21:49Z")

</div>

Attachment: [compare.png](https://mworks.discourse.group/uploads/short-url/rTltc5fadK1bcNuOebGzR1OXNZA.png) (30.8 KB)

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [September 23, 2013, 2:08pm UTC](https://mworks.discourse.group/t/mworks-eye-problem/613/3 "2013-09-23T14:08:18Z")

</div>

Hi Rishi,

Thanks for taking the time to make this plot. It looks to me that during the bad trial (the thick red line), the eye was pretty much at the exact center of the fixation point (i.e. zero error) until ~680ms. Also, unlike all the blue lines, the thick red line appears to start the trial already within the fixation window; that is, I don’t see it crossing the black line at any point. Am I reading the plot correctly? (A second plot with only the highlighted lines would be helpful.)

It still might be helpful for me to look at the raw data file. Can I give you a USB stick to copy it to?

Thanks,  
Chris

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [September 23, 2013, 2:42pm UTC](https://mworks.discourse.group/t/mworks-eye-problem/613/4 "2013-09-23T14:42:39Z")

</div>

Hi Chris,  
Yes, you’re reading it right. The reason you can’t see it enter the window  
is because the trial is longer and I aligned it to the end of the selection  
period (so if we go back in time, we can see when/how it entered the  
window). I’ll gladly give you the raw data on a flash drive, and thanks for  
all your help!  
Best  
Rishi

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [September 23, 2013, 7:06pm UTC](https://mworks.discourse.group/t/mworks-eye-problem/613/5 "2013-09-23T19:06:24Z")

</div>

Hi Chris,  
I think I’ve figured it out. It’s a bug in the task related to what we were  
talking about this morning. I reset the “eye\_in…” variables before he is  
allowed to make a decision, and again every time he “exits” a decision, so  
rapidly following eye movements are not captured by the trigger. (see  
attached figure if the text is unclear). Anyway, I’m sorry, this was my  
fault all along, and thanks for chatting with me this morning to help me  
figure it out!  
Best,  
Rishi

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [September 23, 2013, 7:06pm UTC](https://mworks.discourse.group/t/mworks-eye-problem/613/6 "2013-09-23T19:06:24Z")

</div>

Attachment: [eyeproblem\_solution.png](https://mworks.discourse.group/uploads/short-url/vBBchxCWrU7llFi2WD8hvCPnEUV.png) (3.74 KB)

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [September 24, 2013, 2:04pm UTC](https://mworks.discourse.group/t/mworks-eye-problem/613/7 "2013-09-24T14:04:35Z")

</div>

Great! I’m glad I was able to help.

Chris

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [July 19, 2022, 11:26pm UTC](https://mworks.discourse.group/t/mworks-eye-problem/613/8 "2022-07-19T23:26:54Z")

</div>


