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

Stores channel configuration data for each channel. I.e. the physical quantity measured, sensitivity, device-specific channel settings, a channel name and others. More...

#include <lasp_daqconfig.h>

Collaboration diagram for DaqChannel:

Public Types

enum class  Qty { Number , AcousticPressure , Voltage , UserDefined }
 Possible physical quantities that are recorded. More...
 

Public Member Functions

 DaqChannel ()
 
bool operator== (const DaqChannel &other) const
 Compare two channels to eachother. They are equal when the name, sensitivity and quantity are the same.
 

Public Attributes

bool enabled = false
 Whether the channel is enabled.
 
string name = ""
 
double sensitivity = 1
 The conversion between recorded physical unit and stored / outputed number, i.e. Number/Volt or Number/Pa. Converting stored numbers to physical qty, divide by the sensitivity.
 
bool IEPEEnabled = false
 For input-only: enable IEPE constant current power supply for this channel. Only for hardware that is capable of doing so.
 
bool ACCouplingMode = false
 Whether to enable HW AC-coupling for this channel.
 
int rangeIndex = 0
 Index in possible ranges for input / output.
 
Qty qty = Qty::Number
 The physical quantity that is inputed / outputed.
 
double digitalHighPassCutOn = -1
 Whether to enable a digital high pass on the signal before passing the result in case of input, or outputing the result in case of output.
 

Detailed Description

Stores channel configuration data for each channel. I.e. the physical quantity measured, sensitivity, device-specific channel settings, a channel name and others.

Definition at line 161 of file lasp_daqconfig.h.

Member Enumeration Documentation

◆ Qty

enum class DaqChannel::Qty
strong

Possible physical quantities that are recorded.

Enumerator
Number 
AcousticPressure 
Voltage 
UserDefined 

Definition at line 167 of file lasp_daqconfig.h.

Constructor & Destructor Documentation

◆ DaqChannel()

DaqChannel::DaqChannel ( )
inline

Definition at line 169 of file lasp_daqconfig.h.

Member Function Documentation

◆ operator==()

bool DaqChannel::operator== ( const DaqChannel other) const
inline

Compare two channels to eachother. They are equal when the name, sensitivity and quantity are the same.

Parameters
otherThe DaqChannel to compare with
Returns
true if equal

Definition at line 216 of file lasp_daqconfig.h.

Member Data Documentation

◆ ACCouplingMode

bool DaqChannel::ACCouplingMode = false

Whether to enable HW AC-coupling for this channel.

Definition at line 191 of file lasp_daqconfig.h.

◆ digitalHighPassCutOn

double DaqChannel::digitalHighPassCutOn = -1

Whether to enable a digital high pass on the signal before passing the result in case of input, or outputing the result in case of output.

Definition at line 206 of file lasp_daqconfig.h.

◆ enabled

bool DaqChannel::enabled = false

Whether the channel is enabled.

Definition at line 174 of file lasp_daqconfig.h.

◆ IEPEEnabled

bool DaqChannel::IEPEEnabled = false

For input-only: enable IEPE constant current power supply for this channel. Only for hardware that is capable of doing so.

Definition at line 187 of file lasp_daqconfig.h.

◆ name

string DaqChannel::name = ""

Definition at line 176 of file lasp_daqconfig.h.

◆ qty

Qty DaqChannel::qty = Qty::Number

The physical quantity that is inputed / outputed.

Definition at line 199 of file lasp_daqconfig.h.

◆ rangeIndex

int DaqChannel::rangeIndex = 0

Index in possible ranges for input / output.

Definition at line 195 of file lasp_daqconfig.h.

◆ sensitivity

double DaqChannel::sensitivity = 1

The conversion between recorded physical unit and stored / outputed number, i.e. Number/Volt or Number/Pa. Converting stored numbers to physical qty, divide by the sensitivity.

Definition at line 182 of file lasp_daqconfig.h.


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