Hello,
Is there a built in feature that could calculate the frequency from a data stream ?
I’m using a signal generator to push a sine wave into SCICHART, the graph looks OK (a since wave).
I would like to draw a box with the current frequency in Khz / Hz, is there an API that does that ?
Eitan.
- Eitan Michaelson asked 2 years ago
- You must login to post comments
Hi Eitan
I’m afraid not, we don’t have an algorithm built in to calculate the frequency.
However, I did some work at university on this topic. Something you can do is:
- Calculate a Fast Fourier transform (FFT) of the waveform
- Look for peaks in the FFT data. This peak will correlated to the strongest frequency signal in your waveform
- Output this frequency to your UI
We have a simple FFT algorithm built into one of our examples: the spectrum analyser demo. You can also find third party open source or commercial FFT libraries to do this calculation for you
Best regards,
Andrew
- Andrew Burnett-Thompson answered 2 years ago
- You must login to post comments
Please login first to submit.