# Continuous Calibration

**URL:** <https://mworks.discourse.group/t/continuous-calibration/346>\
**Category:** Support\
**Created:** [March 9, 2018, 5:54pm UTC](https://mworks.discourse.group/t/continuous-calibration/346 "2018-03-09T17:54:00Z")\
**Posts on this page:** 5\
**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:** [March 9, 2018, 5:54pm UTC](https://mworks.discourse.group/t/continuous-calibration/346/1 "2018-03-09T17:54:00Z")

</div>

Hi Chris,

Is there a way to make the calibration continue for either many sets of trials or indefinitely, without having to manually restart it every time? This would be very useful for training, but I’m not quite sure where in the code you gave me (your standard calibration code, I believe) it determines the end of the calibration.

Thank you!  
Yvonne

---

<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:** [March 9, 2018, 9:51pm UTC](https://mworks.discourse.group/t/continuous-calibration/346/2 "2018-03-09T21:51:22Z")

</div>

Hi Yvonne,

In the protocol “Eye Tracker Calibration”, there’s a [list](https://mworks.github.io/documentation/0.8/components/list.html) called `calibration_list`, which does most of the work, followed by an [update calibration](https://mworks.github.io/documentation/0.8/components/update_calibration.html) action:

```
list calibration_list (selection = random_without_replacement) {
    ...
}
update_calibration (eye_calibrator)

```

If you want the calibration process to execute multiple times, you can wrap the list and action in a [block](https://mworks.github.io/documentation/0.8/components/block.html) whose `nsamples` parameter is greater than one:

```
block (nsamples = 100) {
    list calibration_list (selection = random_without_replacement) {
        ...
    }
    update_calibration (eye_calibrator)
}

```

To repeat the process “indefinitely”, you can set `nsamples` to a large number (e.g. 10000). When you’re done, stop the protocol manually (with MWClient’s stop button).

Cheers,  
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:** [March 15, 2018, 8:18pm UTC](https://mworks.discourse.group/t/continuous-calibration/346/3 "2018-03-15T20:18:40Z")

</div>

Hi Chris,

Perfect, thank you so much. Sorry about the delay, I’ve been out of office.  
This works great. I have one other probably quick question: how would I  
change the color of the fixation point? I found that color is an optional  
parameter for the fixation point stimulus in the User Manual, but I’m not  
actually sure how to make the color change in the code.

Best,  
Yvonne

---

<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:** [March 16, 2018, 2:05pm UTC](https://mworks.discourse.group/t/continuous-calibration/346/4 "2018-03-16T14:05:27Z")

</div>

Hi Yvonne,

> how would I change the color of the fixation point?

You need to include the `color` parameter in the stimulus declaration. The value is a comma-separated list of red, green, and blue component values, each in the range [0,1]. For example, to make the fixation point red:

```
circular_fixation_point fixation_point (
    color = 1,0,0
    trigger_width = fixation_window_width
    ...
    )

```

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, 9:49pm UTC](https://mworks.discourse.group/t/continuous-calibration/346/5 "2022-07-19T21:49:04Z")

</div>


