Packagecom.sekati.thinkgear.reader
Classpublic final class ThinkGearReader
InheritanceThinkGearReader Inheritance flash.events.EventDispatcher

ThinkGearReader reads raw ByteArray data from the ThinkGear Connector (TGC) buffer & dispatches events as data is received. This is a faster approach to what the documentation suggests which is configuring the TGC to output JSON over the socket; creating load on both ends as it necessitates serialization and deserialization. Exposes properties available through the ThinkGear Connector API.

See also

http://developer.neurosky.com/docs/lib/exe/fetch.php?media=app_notes:thinkgear_socket_protocol.pdf


Public Properties
 PropertyDefined by
  buffer : ByteArray
Internal buffer used to read byte data from the ThinkGear Connector (TGC).
ThinkGearReader
  eegPowers : EEGPowers
Object containing the EEG Powers data being transmitted by the ThinkGear BCI.
ThinkGearReader
  eSenseData : ESenseData
Object containing the Attention and Meditation data being transmitted by the ThinkGear BCI.
ThinkGearReader
  signalQuality : SignalQuality
The strength of the connection from the ThinkGear BCI hardware device to the computer running the ThinkGear Connector (TGC).
ThinkGearReader
Public Methods
 MethodDefined by
  
ThinkGearReader Constructor
ThinkGearReader
  
read():void
Processes the buffer containing data being transmitted by the ThinkGear BCI.
ThinkGearReader
Property detail
bufferproperty
buffer:ByteArray  [read-write]

Internal buffer used to read byte data from the ThinkGear Connector (TGC).

Implementation
    public function get buffer():ByteArray
    public function set buffer(value:ByteArray):void
eegPowersproperty 
eegPowers:EEGPowers  [read-write]

Object containing the EEG Powers data being transmitted by the ThinkGear BCI.

Implementation
    public function get eegPowers():EEGPowers
    public function set eegPowers(value:EEGPowers):void
eSenseDataproperty 
eSenseData:ESenseData  [read-write]

Object containing the Attention and Meditation data being transmitted by the ThinkGear BCI.

Implementation
    public function get eSenseData():ESenseData
    public function set eSenseData(value:ESenseData):void
signalQualityproperty 
signalQuality:SignalQuality  [read-write]

The strength of the connection from the ThinkGear BCI hardware device to the computer running the ThinkGear Connector (TGC).

Implementation
    public function get signalQuality():SignalQuality
    public function set signalQuality(value:SignalQuality):void
Constructor detail
ThinkGearReader()constructor
public function ThinkGearReader()

ThinkGearReader Constructor

Method detail
read()method
public function read():void

Processes the buffer containing data being transmitted by the ThinkGear BCI.