TOBI SignalServer  0.1
virtual SampleBlock<double> tobiss::HWThread::getAsyncData ( ) [pure virtual]

Abstract method to achieve asynchronous data acquisition (method is non-blocking).

Returns:
SampleBlock<double>

This method return immediately after calling with a copy of the data stored in the device's buffer. It is called from all slave devices.

Warning:
If hardware clocks are not running with the same sampling rate or drifting (e.g. master - 128Hz, slave 129Hz), this method could be called although no new data is available (master faster than slave) or one sample has been lost (master slower than slave). Up to now no compensation method (e.g. interpolation) has been implemented!
Todo:
Implement a compensation method, if clocks are drifting or similar (e.g. interpolation).

Implemented in tobiss::SineGenerator, tobiss::USBamp, tobiss::gBSamp, tobiss::gBSamp, tobiss::USBamp, tobiss::ArtificialSignalSource, tobiss::JStick, tobiss::KinectShmReader, tobiss::MouseBase, tobiss::GMobilab, tobiss::EventListener, tobiss::DataQ, tobiss::BrainAmpSeries, tobiss::gBSampBase, and tobiss::NIRScout.

 All Data Structures Files Functions Variables