OpenHantek
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 DsoSettingsPostProcessing *postprocessing)
 Analyzes the data from the dso. More...
 
virtual ~SpectrumGenerator ()
 

Private Member Functions

void process (PPresult *data) override
 

Private Attributes

const DsoSettingsScopescope
 
const DsoSettingsPostProcessingpostprocessing
 
unsigned int lastRecordLength = 0
 The record length of the previously analyzed data. More...
 
Dso::WindowFunction lastWindow = Dso::WindowFunction(-1)
 The previously used dft window function. More...
 
double * lastWindowBuffer = nullptr
 

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 DsoSettingsPostProcessing postprocessing 
)

Analyzes the data from the dso.

◆ ~SpectrumGenerator()

SpectrumGenerator::~SpectrumGenerator ( )
virtual

Member Function Documentation

◆ process()

void SpectrumGenerator::process ( PPresult data)
overrideprivatevirtual
Todo:
Check if record length is multiple of 2
Todo:
Reuse plan and use FFTW_MEASURE to get fastest algorithm

Implements Processor.

Field Documentation

◆ lastRecordLength

unsigned int SpectrumGenerator::lastRecordLength = 0
private

The record length of the previously analyzed data.

◆ lastWindow

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

The previously used dft window function.

◆ lastWindowBuffer

double* SpectrumGenerator::lastWindowBuffer = nullptr
private

◆ postprocessing

const DsoSettingsPostProcessing* SpectrumGenerator::postprocessing
private

◆ scope

const DsoSettingsScope* SpectrumGenerator::scope
private

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