Fills a buffer with data from a file. More...
#include <FileReaderThread.h>
Public Member Functions | |
FileReaderThread (SourceNode *sn) | |
~FileReaderThread () | |
bool | foundInputSource () |
Returns true if the data source is connected, false otherwise. | |
bool | startAcquisition () |
Initializes data transfer. | |
bool | stopAcquisition () |
Stops data transfer. | |
int | getNumChannels () |
Returns the number of continuous channels the data source can provide. | |
float | getSampleRate () |
Returns the sample rate of the data source. | |
float | getBitVolts () |
Returns the volts per bit of the data source. | |
![]() | |
DataThread (SourceNode *sn) | |
~DataThread () | |
void | run () |
Calls 'updateBuffer()' continuously while the thread is being run. | |
DataBuffer * | getBufferAddress () |
Returns the address of the DataBuffer that the input source will fill. | |
virtual void | setOutputHigh () |
Experimental method used for testing data sources that can deliver outputs. | |
virtual void | setOutputLow () |
Experimental method used for testing data sources that can deliver outputs. | |
virtual int | getNumEventChannels () |
Returns the number of event channels of the data source. | |
virtual void * | getDevice () |
Returns a pointer to the data input device, in case other processors |
Additional Inherited Members | |
![]() | |
ScopedPointer< DataBuffer > | dataBuffer |
SourceNode * | sn |
int16 | eventCode |
uint64 | timestamp |
Time | timer |
Fills a buffer with data from a file.
Has issues with setting the correct sampling rate.
FileReaderThread::FileReaderThread | ( | SourceNode * | sn | ) |
FileReaderThread::~FileReaderThread | ( | ) |
|
virtual |
Returns true if the data source is connected, false otherwise.
Implements DataThread.
|
virtual |
Initializes data transfer.
Implements DataThread.
|
virtual |
Stops data transfer.
Implements DataThread.
|
virtual |
Returns the number of continuous channels the data source can provide.
Implements DataThread.
|
virtual |
Returns the sample rate of the data source.
Implements DataThread.
|
virtual |
Returns the volts per bit of the data source.
Implements DataThread.