–OBSOLETE– More...
#include <NetworkThread.h>
Public Member Functions | |
NetworkThread (SourceNode *sn) | |
~NetworkThread () | |
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. | |
![]() | |
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 float | getBitVolts ()=0 |
Returns the volts per bit of the data source. | |
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 | |
![]() | |
SourceNode * | sn |
int16 | eventCode |
uint64 | timestamp |
Time | timer |
–OBSOLETE–
Receives data from a network source.
Based on the network communication protocol from ArTE (https://code.google.com/p/arte-ephys/)
NetworkThread::NetworkThread | ( | SourceNode * | sn | ) |
NetworkThread::~NetworkThread | ( | ) |
|
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.