D******6 发帖数: 841 | 1 It should be a very easy question for you professional, but I am just a
LabVIEW beginner. I've written a LabVIEW program to take data, X v.s. Y,
from my instruments. The main part is a For-Loop in my VI, it generates one
pair of X & Y data point at each loop, after N loops it ends, then there are
N data points of X and Y. Actually for my project, this X data is time
value, and the Y data is the corresponding signal value. Then, after this
loop ends, how can I do an FFT of this time-domain signal | s***g 发帖数: 437 | 2 MathScript node or Matlab script node
one
are
Please
【在 D******6 的大作中提到】 : It should be a very easy question for you professional, but I am just a : LabVIEW beginner. I've written a LabVIEW program to take data, X v.s. Y, : from my instruments. The main part is a For-Loop in my VI, it generates one : pair of X & Y data point at each loop, after N loops it ends, then there are : N data points of X and Y. Actually for my project, this X data is time : value, and the Y data is the corresponding signal value. Then, after this : loop ends, how can I do an FFT of this time-domain signal
| a****l 发帖数: 8211 | 3 First, you may forget about the time, unless the sample interval is not even
. Just wire the Y data out to the border of for loop, which should auto-
index to an array. (You might need to use UnbundleByName from Array&Clusters
to extract the Y from the pair). After you get the Y array, just do the fft
and power spectrum calculation(assuming you know the math of calculating
all those things).Under Signal Processing section, there is built-in
function for fft and other spectrum calculation.
one
a
【在 D******6 的大作中提到】 : It should be a very easy question for you professional, but I am just a : LabVIEW beginner. I've written a LabVIEW program to take data, X v.s. Y, : from my instruments. The main part is a For-Loop in my VI, it generates one : pair of X & Y data point at each loop, after N loops it ends, then there are : N data points of X and Y. Actually for my project, this X data is time : value, and the Y data is the corresponding signal value. Then, after this : loop ends, how can I do an FFT of this time-domain signal
|
|