Continuous Calibration

Yvonne Bowman's Avatar

Yvonne Bowman

09 Mar, 2018 05:54 PM

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

  1. Support Staff 1 Posted by Christopher Sta... on 09 Mar, 2018 09:51 PM

    Christopher Stawarz's Avatar

    Hi Yvonne,

    In the protocol "Eye Tracker Calibration", there's a list called calibration_list, which does most of the work, followed by an update calibration 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 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

  2. 2 Posted by Yvonne Bowman on 15 Mar, 2018 08:18 PM

    Yvonne Bowman's Avatar

    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

  3. Support Staff 3 Posted by Christopher Sta... on 16 Mar, 2018 02:05 PM

    Christopher Stawarz's Avatar

    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

  4. Christopher Stawarz closed this discussion on 27 Mar, 2018 07:53 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac