Home Forums Software Development Possibility to launch EyeX settings via the SDK?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #2588
    Markus Proell
    Participant

    Hi,

    is there a possibility to show the EyeX global settings via an SDK API call?

    Thx,
    Best,

    Markus

    #2592
    Patrik [Tobii]
    Participant

    Hello 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

    #2889
    NadiaMads
    Participant

    Hey 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!?

    #2890
    Patrik [Tobii]
    Participant

    Hello NadiaMads,

    What engine version are you running?
    This functionality require EyeX Engine version 1.1.

    Best regards
    Patrik

    #2896
    NadiaMads
    Participant

    Well thx for the reply, i got it to work!
    Good day.

    #3661
    Umakshi
    Participant

    Hello,

    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 Sajnani

    #3675
    Jenny [Tobii]
    Participant

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

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.