Thanks for the response. I have tried your method that this is what I did:
1) I have the eye tracker connected and running
2) I started my program with your code added
3) while my program is running, I right clicked on the EyeX icon in the system tray (I am running on windows 8) and selected “Disable Eye Tracking”
After I did step #3, I received an error message in Visual Studio 2012:
“Tobii.EyeX.Client.InteractionApiException” “Result = InvalidArgument”
The error was caused by this line of code:
var success = data.TryGetSettingValue(out deviceStatus, "eyetracking.state");
oh, I forgot to mention that I am using the REX desktop version hardware.
What I am trying to solve is to detect eye tracker’s physical connection on program startup. I want to know if the eye tracker is connected so that I can decide to fire up my program or not.
The solution you provide seems to require the eye tracker to be physically connected first. (I tried to run your code without the eye tracker connected and it would not capture any error).