PlaybackData:
Filter:
Classes (extension) | External Control

PlaybackData
ExtensionExtension

for playing back data from a file
Location: NOT INSTALLED!

Description

this class acts like a drop-in replacement for CytonSerial and CytonWifi.

It will play back files recorded with OpenBCI_GUI. These are normally called something like OpenBCI-RAW-2019-04-10_19-04-26.txt and contain OpenBCI Raw EEG Data.

File formats: older versions as well as version 5 are supported.

NOTE: does not survive CmdPeriod.

Class Methods

.new

read and parse a text file.

Arguments:

path

a String pointing to a text file.

dataAction

set the OpenBCI: -dataAction

initAction

set the OpenBCI: -initAction

bufferSize

how many datapoints to store in the internal buffer.

Inherited class methods

Instance Methods

.softReset

reset sample rate. Rarely used - just for keeping the class consistent with OpenBCIboard,

.start

start playing back data from the file.

.stop

stop playback.

.close

stops main loop.

.currentTime

report current time in file during playback. e.g. 19:04:53.201

Returns:

Inherited instance methods

Examples