FFT Power spectrum

It appears that the project I'm working on will end up teaching me a lot about labview because the project is complicated.  Using labview, I am spinning two objects at two different speeds, which makes up the signal.  One object is being spun at 1200rpms and the other at 2400rpms.  This should yield a spike at 20Hz and one at 40Hz.  I have a spectrum analyzer which is giving me the results I expect, but I can't seem to get it with labview.  I tried using FFT and then taking the real portion of the signal and graphing it, which didn't work.  I then tried the power spectrum, which also didn't work.  I need some help/suggestions.  Any and all are appreciated. 
Thanks,
JB

JB,
To help you, we need some help. Specifically, some specifics about your application.
How are you acquiring the signals from your spinning objects? What is your sampling rate? Are the signals sinusoidal, pulses from an encoder, something else?
What did not work? Did you not get any spectrum, was the frequency wrong, was the amplitude wrong, was the resolution poor?
If you post your VI with some typical data saved as default (because we do not have your spinning objects), someone will probably be able to help you.
Lynn

Similar Messages

  • FFT Power Spectrum VI in Runtime Engine

    Hi,
    I am trying to deploy a couple of EXEs on a colleague's PC (of VIs I have written).
    He has successfuly installed the runtime engine.
    One of the EXEs works fine.  However, the other produces a number of error messages concerning the FFT Power Spectrum VI.
    Why would this be?  Do I need to install any additional drivers in order for this to work?
    Cheers,
    Dan
    Dan
    CLD

    Dear Dan,
    I have just tried this myself, and can not see any problems.
    I have also searched National Instruments' internal database, and can not find any previous issues with this particular vi.
    Could you provide us with more information regarding the errors you have encounterred, and maybe some steps to allow us to replicate the issue.
    Also try rebuilding the exe.
    Lastly, if you have not done so already, please try distributing the "Data" folder which is created with the .exe to the target machine (it will contain a lvanlys.dll).
    Best wishes,
    Rich R
    Applications Engineer
    National Instruments UK & Ireland

  • Need Help related to Power Spectrum of two signal

    Hello Sir, 
    I have two signals of different frequencies but i want to take the FFT power spectrum of both signals at same graph . So for that case i take the FFT power spectrum of both signal indivisualy and after this build the array. so i got the one graph and all the components in same graph. Now
    The problem is that in that graph i want to extract the magnitudes at each frequency, but when i extract the information from final graph it will be the " 1D array of Cluster of 3 Elements" so its information is saprate for these two signal. but i want to tale the magnitude at each frequency , how can i got this sir . Please Help me 
    Agnivesh

    Sir it works thanks but there is one new problem is that wahen i am going to extract the magnitude for every frequency it is also works, but my question is that if my frequency is in floating point then how can i extract magnitude for that frequency. i mean i extracted the magnitude for every frequency component starting from 0 to 1...2..3...4.............so on (Frequency ) but if my frwquency id 2.3Hz so how can i do this.i am sending you my VI also 
    Agnivesh
    Attachments:
    Analysis HP Compressor test 1.vit ‏3485 KB

  • Optimizing Power Spectrum Performance

    I'm continuously acquiring data from two channels on a PXIe-5122 at a rate of 50 MS/s (100 MS/s total). I would like to compute the power spectral density of each channel while acquiring the data. I'm currently using the FFT Power Spectrum and PSD VI.  I benchmarked the performance of the FFT Power Spectrum and PSD VI on its own and was processing at a rate of about 3 MS/s per channel.
    Is there a more efficient VI should I should be using to calculate the PSD?
    Is calculating the PSD at these rates even feasible?  If not, any suggestions for alternatives?  (Would an LV FPGA be an option?)
    Thanks!
    geoff
    Geoffrey Schmit
    Fermi National Accelerator Laborary

    Hello Geoff,
    This is Andrew Brown, an Applications Engineer from National Instruments. The FFT Power Spectrum and PSD VI you mentioned is the recommended method of determining the PSD of data channels. Calculating the PSD given your sampling rates (100 MS/s) would definitely be much faster using the LabVIEW process. However, I was unable to find a specific benchmark.
    Some additional resources on using LabVIEW FPGA are located at NI LabVIEW FPGA and in the LabVIEW FPGA Help for FFT. Please let me know if you have related questions on this issue. Thanks, and have a great day!
    Regards,
    Andrew Brown 
    Applications Engineer
    National Instruments

  • Windowing and Power Spectrum

    Hi,
    I have a simple .vi that is attempting to calculate the total PSD over a 500Hz bandwidth.  My question pertains to the Windowing function and
    what affect it has on the power calculation.  I have much on windowing etc. in the NI's help but cannot seem to arrive at the value I am simulating to.  I have including my .VI and the associated input file.  (this file represents Pulse Densisty Modulated data output from an ADC)
    thanks for any help
    Attachments:
    PSD of PDM.zip ‏127 KB

    You may want to try "FFT Power Spectrum and PSD.vi". it takes care of the compensation for the window effect automatically.
    Be careful that "Amplitude" compensation is used for Power Spectrum, and "Energy" compensation for PSD. The difference is a scaling factor of 1.5 for Hanning window.
    Attachments:
    psd.vi ‏20 KB

  • Power Spectrum peak calculator

    Hi,
    I am using the "fft power spectrum.vi" to calculate an FFT on a wave and the output of that is some bundled wire called power spectrum. I was wondering is there an easy way to take this output and find and display all the various peaks in the power spectrum? Thanks.
    Intern NSWCCD Carderock.

    Yes, I did try that, but the problem is I don't understand the inputs required for it as it requires
    "X" a set of points, but when you run the power spectrum you get a bundled wire with various parts and I'm not
    sure which of these to wire into the peak detector as everything I have tried has given me wierd values. Thanks for
    any help.
    Intern NSWCCD Carderock.

  • Keeping Power Spectrum Peaks on a Graph

    Hello,
    I am trying to read in a signal which varies in frequency as time progresses. I am taking this function and running a real time power spectrum (FFT Power Spectrum.vi) on it. As time goes the peaks move around according to teh frequency which is coming in. What I want to do is to keep the old peaks on the graph as the new peaks come in. So for example if I had a signal which was at 50 htz then 75 htz, at the end of the run I want to see both peaks on my grpah. Is this possible? Thanks.
    Intern NSWCCD Carderock.

    If you use the Spectral Measurements Express VI, you can configure it to do peak hold. In the configuration screen, turn averaging on, click on the Peak Hold radio button, and set the averaging number to 1. Then all your peaks will be displayed as they come and go. See attached vi. If you want to see how the express vi does it, you can convert the express vi to a normal vi and then look into the block diagram. I believe one of the functions has a peak hold input.
    - tbob
    Inventor of the WORM Global
    Attachments:
    SpectralMeasure.vi ‏98 KB

  • What is the difference between power spectrum and PSD?

    Hi all,
    I input a time domain signal to the FFT power spectrum VI and FFT PSD VI seperately, and got two  outputs in frequency domain with similar shapes but different magnitudes.
    I refer to some signal and system textbook, and find PSD(w)=1/pi*Power Specrum or equivalently PSD(f)=2* Power Specrum.But as I observed from the LabVIEW outputs, this relation is not correct. I input a 1KHz sin wave with amplitude=1, Fs=512KHz, #s=2048 , the PS peak is 0.5 and the PSD peak is around 0.013.
    So I wondered what's the real formula LabVIEW is using to calculate PSD?
    Sunny 

    PSD is related to spectrum resolution, thus related to sample rate.
    df= Sample rate/ #samples
    I think they follow this relationship:
    Amplitude FFT power spectrum = Amplitude PSD * df * 1.5

  • Power Spectrum no longer working correctly after upgrading to 8.0.1

    Recently, I installed Labview 8.0.1 to correct a problem I was experiencing in 8.0.  The installation resolved my problem, but now the Power Spectrum no longer gives the correct result.  My program has not changed other than the update.  I checked my circuit and everything is functioning properly.  Before changing to 8.0.1 the power spectrum peaked at 40Hz and 80Hz,  which was correct, and now it peaks at 0Hz and 10Hz.  On top of everything, the peaks are much higher than they should be.  I expect peaks with a max of 2.5millivolts and now they are 1volt.  I don't understand what is going on. Nothing changed, but the software version.  Can someone please help me? 

    In addtion to Altenbach's comments - 
    I'd recommend trying another VI function to get the power spectrum for
    your signal to see if the behavior is the same.  You can find some
    examples of VIs using the power spectrum functions using the NI Example
    Finder.
    You can go to LabVIEW's Example Finder by going to Help >> Find Examples.
    Then search for FFT. There should be some results that include FFT and
    Power Spectrum Units.vi, Power Spectrum Measurement.vi, Basic Spectral Measurements.vi,  and Spectrum Measurements.vi. Try opening and
    running these examples to see if the VIs are returning the proper
    results.
    Mark Walters
    Application Engineer
    National Instruments

  • Save Power spectrum

    Hi
    I would like to save a power spectrum ( about 80000 lines of data) as a file that i can later plot. When i write the cluster (coming out of FFT Powerspewctrum.vi)  to an excel  (excel works only upt o 56000 or something like that, so i can´t use it anyways) or .txt file using the a combination of open -write -close  file i get weird number and letters and not the data i´d like to have. Which data format ( iwould like to make graphs in origin) and vi´s should i use to export the spectrum or is it the best to extract the y-value of the spectrum (magnitude) using the unbundle by name .vi  and export it as txt?
     Thanks for any help

    I believe this is also something i can use for my application, however, when trying to recreate the code in LabVIEW 2011 SP1, the connections between the For Loop and the Close File return an error that the data types are different.The Path wire returns that the source is 1-D array of byte stream file reference with the sink being byte stream file reference. The Error wire returns that the source is 1-D array of cluster of 3 elements with the sink being a cluster of 3 elements.  How would i go about fixing this?
    I plan on using this to write to the file from an accelerometer connected to a NI-9234 c-series module through a cDAQ-9178 usb chasssis.  So my intention is to use this as a subVI to connect the accelerometer signal from the DAQ Assist of another VI.  I am trying to record the spectral data. Attached is the attempt at recreating your code.
    Attachments:
    Save Power Spectrum.vi ‏55 KB

  • Power Spectrum Density conversion to Time Series Data

    Hi,
    This may seem an odd request but is there a way to convert power spectrum density data back to the time series data that generated it in the first place. I have lost the original time series data but still have the PSD and need the time series to do other analysis.
    Thanks,
    Rhys Williams

    Hate to be the bearer of bad news, but there are an infinite number of time series that will generate a given PSD.  You lose all phase information upon taking the PSD.  For this reason I almost always save time domain data, or at least complex FFT values.  

  • Power Spectrum VI Performance

    I am looking to accelerate the performance of the Power Spectrum and
    Peak Finder VI's in LabVIEW.  Right now to process 10000 points
    the power spectrum takes 1.3 Miliseconds.  While this number is
    not huge, when doing 3000 of these analyses in a shot, it gets large,
    quickly.  I would like to know if there's anything to be done to
    speed it up.  For example, the nubmers i am sending it are fairly
    small Single Precision Floats, would it work better with larger
    numbers?...
    Thanks for all your thoughts in advance.
    Eugene

    Hi
    I read in some place, and time ago, that those vis (power spectrum,fft, psd, etc) are optimized for power of 2 number points. I am not sure if this keeps being true, but you can try to use, say, 8192 points, or zero pading to 16384 to see if speed increases.
    Hope it helps.
    Alipio
    "Qod natura non dat, Salmantica non praestat"

  • Zoom power spectrum

    Hola a todos, durante el desarrollo de un programa para analisis de vibraciones con un acelerometro triaxial, he encontrado que "zoom power spectrum" funciona normalmente hasta que ha mostrado un nº determinado de espectros, momento en el cual se borra el último espectro y empieza de nuevo a mostrar una nueva serie de espectro adquiridos y haciendo medias si tiene activado está opción.
    He provado vi de ejemplo con la misma frecuencia y nº de samples y mismo equipo y no lo hace. ¿a que se puede deber este comportamiento anomalo de este subvi
    Gracias

    Hi Walban,
    I would like to ask for clarification about what you are
    looking to do. I understand that you have an inverse FFT, but can you expand on
    the definition of ‘different distributions’ ? I am puzzled by how we can have
    different data, but the same spectrum. Lastly, what version of LabVIEW are you
    using? Are you using the Spectral Measurement Toolkit (SMT)? This knowledgebase: How Do I Use the FFT and Inverse
    FFT VIs in LabVIEW? (http://digital.ni.com/public.nsf/allkb/549BCD6B247012F686256E00002509E5?OpenDocument)
    may help with using the FFT and Inverse FFT functions in LabVIEW.
    David L.
    Systems Engineering
    National Instruments

  • Power spectrum using yule walker method

    i am currently working on an algorithm and i need to add a power spectrum using yule walker method or modified covariance method or any other power spectrum estimation method except music and fft (periodogram) that i already did. can anybody help me?or does anybody have any other vi that calculates the power spectrum?

    Hi hampis,
    I posed a similar response on the yule walker forum.
    If you're running LabVIEW 8.0 or 8.2 you can use the MathScript node to execute the aryule() function, which uses the Yule-Walker method to estimate autoregressive (AR) model parameters.
    Here is more information on this command:
    aryule (MathScript Function)
    Michael K. | Applications Engineer | National Instruments
    | Michael K | Project Manager | LabVIEW R&D | National Instruments |

  • What amplitude on power spectrum if analog input is 7.3V,sine,80hz?

    I have an analog input of 7.3V, sine wave at 80 Hz feeding thru PXI-4475 (I have a PXI-1042 Chasis and PXI-8176 Controller and I am programming my application in Lab Windows-CVI). I see a sine wave with an amplitude of 7.3V in the time domain but I see an amplitude of 13.3V at 80Hz in the power spectrum. Should I see 7.3V in power spectrum display? My HP FFT Analyzer showed 7.3V at 80 Hz in power spectrum display. Please help. My email: [email protected] or my phone: 215-897-8766/7370. Thanks in advance.

    There would appear to be a mathematical relationship between the 7.3 V sine wave and the 13.3 V amplitude as follows:
    a) rms value of a sine wave at 7.3 V = 5.1619 V
    b) square that result = 26.645
    c) half the result = 13.32
    The power spectrum should be expressed in terms of voltage squared. The power spectrum should produce a result that is a second order function of the initial amplitude. Are you sure the settings on the HP were for "power" when you read the output of 7.3V? The 13.3 V number appears to be the better of the two.

Maybe you are looking for