Home › Forums › Software Development › Possibility to launch EyeX settings via the SDK?
Tagged: LaunchCalibrationTesting
- This topic has 6 replies, 5 voices, and was last updated 9 years, 1 month ago by Jenny [Tobii].
- AuthorPosts
- 24/02/2015 at 02:18 #2588Markus ProellParticipant
Hi,
is there a possibility to show the EyeX global settings via an SDK API call?
Thx,
Best,Markus
24/02/2015 at 09:50 #2592Patrik [Tobii]ParticipantHello Markus,
There is no way to launch the settings panel, but there are API calls (C#) you can make to access the different areas of the settings panel, such as starting a recalibration, display setup, creating a user profile or switching to a guest profile.
Below is a code snippet taken from the
MinimalConfigurationTool
sample that demonstrate how to use this functionality.//----------------------------------------------------------------------- // Copyright 2014 Tobii Technology AB. All rights reserved. //----------------------------------------------------------------------- namespace MinimalConfigurationTool { using System; using EyeXFramework; public class Program { public static void Main(string[] args) { using (var eyeXHost = new EyeXHost()) { eyeXHost.Start(); Console.WriteLine("EYEX CONFIGURATION TOOLS"); Console.WriteLine("========================"); Console.WriteLine(); Console.WriteLine("T) Test calibration"); Console.WriteLine("G) Guest calibration"); Console.WriteLine("R) Recalibrate"); Console.WriteLine("D) Display Setup"); Console.WriteLine("P) Create Profile"); var key = Console.ReadKey(true).Key; switch (key) { case ConsoleKey.T: eyeXHost.LaunchCalibrationTesting(); break; case ConsoleKey.G: eyeXHost.LaunchGuestCalibration(); break; case ConsoleKey.R: eyeXHost.LaunchRecalibration(); break; case ConsoleKey.D: eyeXHost.LaunchDisplaySetup(); break; case ConsoleKey.P: eyeXHost.LaunchProfileCreation(); break; } } } } }
/ Patrik
23/04/2015 at 12:37 #2889NadiaMadsParticipantHey patrik
Ima trying the same, from a .net application. iam using the new TobiiEyeXSdk-DotNet-1.4.451.
When i run one of the above methods in particulary the eyeXHost.LaunchCalibrationTesting(); nothing happens?
Am i missing something or does the version of tobii iam using not support those features!?23/04/2015 at 13:03 #2890Patrik [Tobii]ParticipantHello NadiaMads,
What engine version are you running?
This functionality require EyeX Engine version 1.1.Best regards
Patrik23/04/2015 at 14:26 #2896NadiaMadsParticipantWell thx for the reply, i got it to work!
Good day.27/10/2015 at 10:49 #3661UmakshiParticipantHello,
I am trying to create a new profile using c++ application. How do I launch the configuration tool in c++ eyeX SDK?
is there something like txLaunchConfigurationTool(hContext, TX_CONFIGURATIONTOOL_PROFILECREATION, NULL, NULL);
or perhaps to check if a user’s calibration data is already available?Thanks in advance!
Best Regards,
Umakshi Sajnani29/10/2015 at 17:32 #3675Jenny [Tobii]ParticipantHi Umakshi,
You got it almost right, the function looks like this (and can be found in EyeXActions.h):
TX_RESULT txLaunchConfigurationTool( TX_CONTEXTHANDLE hContext, TX_CONFIGURATIONTOOL configurationTool, TX_ASYNCDATACALLBACK completionHandler, TX_USERPARAM userParam )
To create a new profile, use
TX_CONFIGURATIONTOOL_CREATENEWPROFILE
as the second argument.There is a sample in the EyeX SDK for C/C++ called MinimalUserProfiles. It shows you how you can get the name of the current profile, list all available profiles, and change the current profile to another existing profile.
- AuthorPosts
- You must be logged in to reply to this topic.