OpenHantek
Loading...
Searching...
No Matches
SpectrumGenerator Class Reference

Analyzes the data from the dso. Calculates the spectrum and various data about the signal and saves the time-/frequencysteps between two values. More...

#include <spectrumgenerator.h>

Inheritance diagram for SpectrumGenerator:
Processor

Public Member Functions

 SpectrumGenerator (const DsoSettingsScope *scope, const DsoSettingsAnalysis *postprocessing)
 Analyzes the data from the dso.
 ~SpectrumGenerator () override
Public Member Functions inherited from Processor
virtual ~Processor ()

Private Member Functions

const QString & calculateNote (double frequency)
void process (PPresult *data) override

Private Attributes

const DsoSettingsScopescope
const DsoSettingsAnalysisanalysis
Dso::WindowFunction previousWindowFunction = Dso::WindowFunction( -1 )
 The previously used dft window function.
std::vector< double > window
 storage for the tapering window
fftw_plan fftPlan_R2HC = nullptr
fftw_plan fftPlan_HC2R = nullptr
QString note

Detailed Description

Analyzes the data from the dso. Calculates the spectrum and various data about the signal and saves the time-/frequencysteps between two values.

Constructor & Destructor Documentation

◆ SpectrumGenerator()

SpectrumGenerator::SpectrumGenerator ( const DsoSettingsScope * scope,
const DsoSettingsAnalysis * postprocessing )

Analyzes the data from the dso.

◆ ~SpectrumGenerator()

SpectrumGenerator::~SpectrumGenerator ( )
override

Member Function Documentation

◆ calculateNote()

const QString & SpectrumGenerator::calculateNote ( double frequency)
private

◆ process()

void SpectrumGenerator::process ( PPresult * data)
overrideprivatevirtual

Implements Processor.

Field Documentation

◆ analysis

const DsoSettingsAnalysis* SpectrumGenerator::analysis
private

◆ fftPlan_HC2R

fftw_plan SpectrumGenerator::fftPlan_HC2R = nullptr
private

◆ fftPlan_R2HC

fftw_plan SpectrumGenerator::fftPlan_R2HC = nullptr
private

◆ note

QString SpectrumGenerator::note
private

◆ previousWindowFunction

Dso::WindowFunction SpectrumGenerator::previousWindowFunction = Dso::WindowFunction( -1 )
private

The previously used dft window function.

◆ scope

const DsoSettingsScope* SpectrumGenerator::scope
private

◆ window

std::vector< double > SpectrumGenerator::window
private

storage for the tapering window


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