11-28-2019 07:56 AM
I have a program which takes an input waveform and applies a power fft to it in order to obtain the frequency spectrum. For a group project I need to obtain the frequency value at which the peak occurs (the X value on the top graph). I have tried using the GET XY control but I only need the X value outputted as a numeric value and not as a waveform. Can anyone help?
I currently have the input as a controllable sine wave so obviously I am able to control the frequency directly, however in the project this will be an EEG wave that I will have to calculate the frequency of.
Solved! Go to Solution.
11-28-2019 08:05 AM
Hi Stefan,
The PSD function gives yo a cluster containing f0, df and a frequency array:
11-28-2019 08:21 AM
Thank you so much for your help. How can i connect the output of the PSD to the ARRAY MIN MAX as it requires an array input and the output is a waveform.
11-28-2019 08:44 AM
Array Max & Min does not require a waveform. It requires an "array".
Take the result from the FFT which is a cluster, and use Unbundle by Name to get the array out of it.
11-28-2019 08:50 AM
12-05-2019 09:44 AM
We have a group project and we have to read EEG data from a patient and using LabVIEW have to extract the frequency of the inputted data. In a previous example I was able to calculate the frequency when I inputted a noisy sine wave using the magnitude function from the power spectrum. However when we read data from the function generator the wires do not match up and we get an error that the array types are different even though the wiring has not changed.
Elvis final is the VI that is not working
Frequency Detector Rand is the working VI with the generated sine wave
Can anyone help please????