This example demonstrates the use of the core Emotiv API functions. It logs all detection results for the attached users after successfully establishing a connection to the Emotiv EmoEngine™ or XavierComposer™.
Please note that this examples only works with the SDK versions that allow raw EEG access (Research, Education and Enterprise Plus).
The data is recorded in EEG_Data.csv files and Affectiv_Data.csv, they put in the folder .. \ bin \.
EEG_Data.csv file stores channels : ED_COUNTER,
ED_AF3, ED_F7, ED_F3, ED_FC5, ED_T7,
ED_P7, ED_O1, ED_O2, ED_P8, ED_T8,
ED_FC6, ED_F4, ED_F8, ED_AF4, ED_GYROX, ED_GYROY, ED_TIMESTAMP,
ED_FUNC_ID, ED_FUNC_VALUE, ED_MARKER, ED_SYNC_SIGNAL
Affectiv_Data.csv file stores : Engagement, Frustration, Meditation, Excitement
Before the end of the program, EE_EngineDisconnect() is called to terminate the connection with the EmoEngine and free up resources associated with the connection. The user should also call EE_EmoStateFree() and EE_EmoEngineEventFree() to free up memory allocated for the EmoState buffer and EmoEngineEventHandle.