Home › Forums › Software Development › Recalibrate with eyeX › Reply To: Recalibrate with eyeX

Hi @jenny,
my apologies for the confusion. In fact you can launch recalibration programatically.
The calls to EyeXHost.LaunchRecalibration() (and the other configuration calls) are non blocking. What you could do is to watch eyeXHost.EyeTrackingDeviceStatus for changes. Quick solution could be to insert the following:
do
{
// Give it some time to start configuring
Thread.Sleep(1000);
} while (eyeXHost.EyeTrackingDeviceStatus.Value == EyeTrackingDeviceStatus.Configuring);
Depending on your code, it might be better to listen to the changed events on EyeXHost.EyeTrackingDeviceStatus instead of the above.
Also, regarding the txLaunchConfigurationTool function, you can use itin this way:
txLaunchConfigurationTool(hContext, TX_CONFIGURATIONTOOL_RECALIBRATE, NULL, NULL)
Please let me know if you have any further questions!