04-03-2017 01:52 AM
I have to displaying frequency from accelerator signal, i am using mma7361 accelerator connected to Labjack U3, and displayed in Labview. The signal of acceleration was easily displayed (with respect to time) but when i try to performing FFT mag-phase, the graph won't came up. the magnitude value can be shown (in indicator) but can't in graph also phase doesn't appear in graph. if anyone know what the problem is or have any other solution, i do appreciate it.
I attached the file below, also i use butterworth bandpass to filter the signal (fL=2 hz, fH = 25 hz, f sampling = 100) before performing fft mag-phase.
Solved! Go to Solution.
04-03-2017 02:02 AM
Run the VI once more until all indicators have data then stop and "menu ... edit ... make current values default". Save the VI under a new name and attach it again.
04-03-2017 02:08 AM
Done, i record all the values
04-03-2017 08:39 AM
You are only collecting 1 sample of data. How do you expect to do a FFT and get a frequency with only one data point?
04-03-2017 08:51 AM
what should i do to make a waveform data, from accelerator? did i missed a step before performing fft?
04-04-2017 03:25 AM
can't open your vi, but you need to tell your DAQ to read 100 values at a rate of 100 Hz.
(that should take about one second 😉 )
Now you have a waveform or array that has 100 values and NOW you can make a DFT 🙂
04-15-2017 04:46 AM
Thankyou for your answer, i didnt realize that i was only collecting one data. I am attaching a file of my VI, but my VI seems not showing the real frequency (because the value not meet my expectation : about 2-25 hz). Do you mind checking my VI? also any suggestion what function do i need to shifting the phase by 180 degree, and also to forming new signal based on frequency and phase (shifted) that i got from fft?
04-15-2017 05:15 AM
You're apparently misunderstanding something.
The FFT Vi that you use already provides the MAGNITUDE and PHASE, ready to plot.
But you are running them thru a COMPLEX-TO-POLAR function.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
04-15-2017 08:06 AM
Yeah, i am corrected it right away.. Thanks
do you know how to shifting phase by 180 degree? i need to cancelling the signal with the new signal (phase shifted)
04-15-2017 10:41 AM
Negating the input signal before doing an FFT will give you 180 phase shift.
But if you want to cancel, just subtract A-B in the time domain and you don't need the FFT.
Blog for (mostly LabVIEW) programmers: Tips And Tricks