From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
04-16-2021 09:27 AM
Hello,
I have a program working that receives a byte stream and plots specific data from the stream in the time domain. I would like that same data input into an FFT, however, my Spectral Measurement does not accept the data (ie. the wire is broken when connected).
Do I need to typecast this with something? What am I doing wrong?
I have attached an image of my block diagram.
Thanks for any help.
04-16-2021 10:17 AM
Your wire is broken because it doesn't even reach the wire. You also have some other missing wires in that VI.
But you can't do an FFT on a scalar value. You can only do FFT's on waveforms or arrays of data.
04-16-2021 10:20 AM
Thanks for the response. The wire obviously didn't reach where I was putting it but I was just trying to show where I was trying to connect...
Are you saying if I place the scalar data into a larger array, then I can take the FFT of the array?
Thanks again.
04-16-2021 12:12 PM
Yes. You need an array of data where each element was taken at a specified interval of time.
04-16-2021 12:46 PM - edited 04-16-2021 02:03 PM
It seems obvious to me that you need significantly more training and help.
You can do FFT on a scalar input by using FFT ptbypt. Is the time spacing regular and known?
(Why are you prepending instead of appending the blue array and why is the shift register uninitialized. Etc. Etc...)
04-16-2021 01:10 PM
yeah, I'm new to this... the timing is known yes, thanks for the input.