SyntheticData:
Filter:
Classes (extension) | External Control

SyntheticData
ExtensionExtension

for generating synthetic test data coming from a board
Location: NOT INSTALLED!

Description

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

NOTE: does not survive CmdPeriod.

the synthetic data generated put gaussian noise on all channels and then modify the first four channels in the following manner...

first channel
the is noise scaled up x10
second channel
a 10 Hz sine tone at 10 uVrms is added to the noise
third channel
a 15 Hz sine tone at 20 uVrms is added to the noise
fourth channel
a 20 Hz sine tone at 30 uVrms is added to the noise
fifth channel
a 25 Hz sine tone at 40 uVrms is added to the noise
sixth channel
a 30 Hz sine tone at 50 uVrms is added to the noise
seventh channel
a 60 Hz sine tone at 20 uVrms is added to the noise

Class Methods

.new

start generating test data

Arguments:

numChannels

use 8 for faking Cyton board, 4 for Ganglion etc.

sampleRate

use 250 for faking Cyton over bluetooth, 200 for Ganglion over bluetooth etc.

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 streaming synthetic data.

.stop

stop streaming synthetic data.

.close

stops main loop.

.noiseAmp

Turn off noise by setting this to 0.0 - just for help debugging.

Inherited instance methods

Examples