LASP 1.0
Library for Acoustic Signal Processing
Loading...
Searching...
No Matches

Real time signal viewer. Shows envelope of the signal based on amount of history shown. More...

#include <lasp_rtsignalviewer.h>

Inheritance diagram for RtSignalViewer:
Collaboration diagram for RtSignalViewer:

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.
 

Detailed Description

Real time signal viewer. Shows envelope of the signal based on amount of history shown.

Definition at line 27 of file lasp_rtsignalviewer.h.

Constructor & Destructor Documentation

◆ RtSignalViewer()

RtSignalViewer::RtSignalViewer ( SmgrHandle  mgr,
const d  approx_time_hist,
const us  resolution,
const us  channel 
)
Parameters
mgrStream manager
approx_time_histThe 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'.
resolutionNumber of time points
channelThe channel number

Definition at line 14 of file lasp_rtsignalviewer.cpp.

◆ ~RtSignalViewer()

RtSignalViewer::~RtSignalViewer ( )

Definition at line 57 of file lasp_rtsignalviewer.cpp.

Member Function Documentation

◆ getCurrentValue()

dmat RtSignalViewer::getCurrentValue ( ) const

Returns a 2D array, with:

  • first column: time instances.
  • second column: minimum value of signal
  • third column: maximum value of signal

Definition at line 99 of file lasp_rtsignalviewer.cpp.

◆ inCallback()

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.

◆ reset()

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.


The documentation for this class was generated from the following files: