setupProfile
This method is to manage the training profiles of the user.
You create, rename or delete a profile. You can load and unload a profile for a headset if the EEG channels of this headset is supported by this training profile. And you can save a profile after the user completed a training, or after you changed the attributes of the profile.
Before you load or unload a profile, you can call getCurrentProfile to know if a profile is currently loaded, and if it was loaded by your application.
Parameters
Depending on the status, this method has different effects, and uses different parameters.
Status create
Create a new profile. It can be an empty profile, or a copy of a loaded profile.
Status load
Load an existing profile for a specific headset. If a profile is already loaded, then you must unload it first.
Status unload
Unload the profile of a specific headset. After the unload, this headset will use a default empty profile. You should set the parameter profile to an empty string. You cannot unload a profile that was loaded by another application.
Status save
Save the profile used by a headset. You can save it with a new name, so it creates a new profile. Or you can save it with the same name, ie the name you used to load it. You cannot save a profile that was loaded by another application.
Status rename
Rename an existing profile.
Status delete
Delete an existing profile. If this profile is loaded for a headset, then it is automatically unloaded. You cannot delete a profile that is currently loaded by another application.
Result
The result is an object containing these fields:
Examples
Create a new empty profile
Load a profile for a headset
Save a profile
Last updated