Emotiv/unity-plugin

BCI Training

Closed this issue · 1 comments

Hello!

I am having some difficulties when I try to load a profile for using the mental commands. Like in the example, I first:

  • connect to the headset like in the unity example
  • then I subscribe to sys and com data streams
  • then I instantiate a new BCITraining object and call Init()
  • then I call GetDetectionInfo("mentalCommand");
  • then I call queryProfile where my profile is correctly found
  • and then I call LoadProfile() with the appropriate profile. But here I get a NullReferenceException in if (_profileLists.Contains(profileName))...

Also I am getting only the neutral state with power 0....

Am I missing something?

The problem was that the profile was loaded, but Init was not done.... Therefore I load the profile in OnQueryProfileOK