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
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
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
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