LASP 1.0
Library for Acoustic Signal Processing
Loading...
Searching...
No Matches
lasp_rtsignalviewer.h
Go to the documentation of this file.
1// lasp_threadedaps.h
2//
3// Author: J.A. de Jong - ASCEE
4//
5// Description: Real Time Signal Viewer.
6#pragma once
8#include "lasp_filter.h"
9#include "lasp_mathtypes.h"
11#include "lasp_timebuffer.h"
12#include <memory>
13#include <mutex>
14
27class RtSignalViewer : public ThreadedInDataHandler<RtSignalViewer> {
28
32 vd _sens;
33
37 TimeBuffer _tb;
38
42 const d _approx_time_hist;
46 const us _resolution;
47
51 const us _channel;
52
53 us _nsamples_per_point;
54 d _fs;
55
56 dmat _dat;
57
61 mutable std::mutex _sv_mtx;
62
63public:
74 RtSignalViewer(SmgrHandle mgr, const d approx_time_hist, const us resolution,
75 const us channel);
76
78
86 dmat getCurrentValue() const;
87
88 void inCallback(const DaqData &);
89 void reset(const Daq *);
90};
91
Data coming from / going to DAQ. Non-interleaved format, which means data in buffer is ordered by cha...
Base cass for all DAQ (Data Acquisition) interfaces. A DAQ can be a custom device,...
Definition lasp_daq.h:29
Real time signal viewer. Shows envelope of the signal based on amount of history shown.
void inCallback(const DaqData &)
void reset(const Daq *)
dmat getCurrentValue() const
Returns a 2D array, with:
A bit of curiously recurring template pattern, to connect the specific handlers and connect the prope...
Implementation of a buffer of time samples, where.
std::shared_ptr< StreamMgr > SmgrHandle
arma::Col< d > vd
arma::Mat< d > dmat
size_t us
We often use boolean values.
Definition lasp_types.h:29