LASP 1.0
Library for Acoustic Signal Processing
|
Real time signal viewer. Shows envelope of the signal based on amount of history shown. More...
#include <lasp_rtsignalviewer.h>
Public Member Functions | |
RtSignalViewer (SmgrHandle mgr, const d approx_time_hist, const us resolution, const us channel) | |
~RtSignalViewer () | |
dmat | getCurrentValue () const |
Returns a 2D array, with: | |
void | inCallback (const DaqData &) |
void | reset (const Daq *) |
Public Member Functions inherited from ThreadedInDataHandler< RtSignalViewer > | |
ThreadedInDataHandler (SmgrHandle mgr) | |
void | _reset (const Daq *daq) |
void | _inCallback (const DaqData &data) |
Public Member Functions inherited from ThreadedInDataHandlerBase | |
ThreadedInDataHandlerBase (SmgrHandle mgr, InCallbackType cb, InResetType reset) | |
~ThreadedInDataHandlerBase () | |
void | startThread () |
This method should be called from the derived class' constructor, to start the thread and data is incoming. | |
void | stopThread () |
This method SHOULD be called from all classes that derive on ThreadedInDataHandler. It is to make sure the inCallback_threaded() function is no longer called when the destructor of the derived class is called. Not calling this function is regarded as a BUG. | |
Real time signal viewer. Shows envelope of the signal based on amount of history shown.
Definition at line 27 of file lasp_rtsignalviewer.h.
RtSignalViewer::RtSignalViewer | ( | SmgrHandle | mgr, |
const d | approx_time_hist, | ||
const us | resolution, | ||
const us | channel | ||
) |
mgr | Stream manager |
approx_time_hist | The approximate time history to show. The exact time history will be calculated such that there fits an integer number of samples in a single 'point'. |
resolution | Number of time points |
channel | The channel number |
Definition at line 14 of file lasp_rtsignalviewer.cpp.
RtSignalViewer::~RtSignalViewer | ( | ) |
Definition at line 57 of file lasp_rtsignalviewer.cpp.
dmat RtSignalViewer::getCurrentValue | ( | ) | const |
Returns a 2D array, with:
Definition at line 99 of file lasp_rtsignalviewer.cpp.
void RtSignalViewer::inCallback | ( | const DaqData & | data | ) |
Push new data in time buffer, scaled by sensitivity
Required number of samples for a new 'point'
Definition at line 30 of file lasp_rtsignalviewer.cpp.
void RtSignalViewer::reset | ( | const Daq * | daq | ) |
Update sensitivity values
The number of samples per point, based on which minmax are computed
Definition at line 60 of file lasp_rtsignalviewer.cpp.