Basic accelerometer-power spectrum readings

Hi all,
I'm new to Labview and am trying to create a simple power spectrum logger. I've had a look at multiple tutorials but am stuck getting to places (most of the tutorials require sound and vibration toolkit, are really old and incompatible with Labview 2011 etc). The program I'm trying to do is:
1) Collect signals from accelerometer (4kS/s)
2) Generate power spectrum
3) Save to disk (on board the cRIO)
My setup is:
- cRIO 9014
- NI 9234
- Labview 2011
So far, I've managed to get the signal readings (XYZ axis) and merge them, put them into a 'Collector' block and then output them to the power spectrum block. I've very crudely used a 'Time Delay' block to set the sample rate (which I know is probably not accurate, but I cannot figure out how else to do it). I'm having a problem figuring out how to input the sample rate into the collector, which is why my power spectrum is giving me 0 to 0.5Hz (it's likely assuming the sample rate is 1Hz). I've attached my .vi.
Would someone be able to point me to a tutorial/example/alternative solution? Thank you very much in advance.
Attachments:
accelero.vi ‏93 KB

I think what you want is the CompactRIO vibration data logger.  It does not require the S&V measurement suite, though you will find it very useful. 
Check this out!
http://zone.ni.com/devzone/cda/epd/p/id/6388
It has a waveform acquisition template for the FPGA.  It has a data logging state design. 
You can see a Video of it working here
http://www.ni.com/mcm/wind/
Let us know if this helps. 
Preston Johnson
Principal Sales Engineer
Condition Monitoring Systems
Vibration Analyst III - www.vibinst.org, www.mobiusinstitute.com
National Instruments
[email protected]
www.ni.com/mcm
www.ni.com/soundandvibration
www.ni.com/biganalogdata
512-683-5444

Similar Messages

  • SMT Power Spectrum to IQ Data

    I have a 20 MHz IF Signal.
    I used SMT Basic Zoom Power Spectrum to zoom in
    and capture 5 MHz of that Spectrum.
    Can I get back IQ data corresponding to this Zoomed 5 MHz Spectrum.
    I tried using IFFT to get back IQ data  from the Spectrum,
    but the results are not correct
    Which VI should I use to convert Power Spectrum to IQ Data. ?

    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 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

  • Signal-to-Noise ratio from Power Spectrum?

    Hi,
    I have a feeling this is a basic issue but for some reason I'm not getting it.  I hope this forum can help.
    I have a Power Spectrum (freq on the x-axis and power on the y-axis) and I am trying to determine the signal to noist ratio of the rf signal live.
    I am using LV 8.5 and have the spectrum toolkit and am using an RFSA in a PXI chassis.
    Any suggestions?
    Thanks
    - rf curious

    Hi Rf Curious,
    This questions does not have a simple
    answer but let me share my thoughts and you can decide what it makes
    most sense for your application. For signal to noise ratio (SNR) you
    should have ideally the power of the signal and divide it by the power
    of the noise. The problem here is that you are looking at both at the
    same time (rf live signal). Depending of what type of signal is it, you
    can recreate it and substract it from the spectrum (you will need to
    recreate the phase and magnitude and delete it from the phase and
    magnitude of the spectrum). This is normally done with simple signals
    such as a tone.
    If you don't have access to the magnitude and
    phase of the data, and you only see the spectrum, then you will have to
    do things different. You can probably measure the power of the signal
    by measuring the power of the band where the signal is located. Then,
    you can terminate your input and measure the power of the noise of the
    instrument (with same attenuation and RBW settings) and have a rough
    estimate. This method should have better results when S >> N. You
    can also take the adjacent channel (or further) noise reference.
    Finally,
    if your signal has a pretty flat spectrum, then you can only take the
    difference between the noise and the signal since they both have the
    same RBW.
    If by now, you have found other methods, feel free to post your ideas here for any other person that come across this problem.
    Regards,
    Gerardo O.
    RF Systems Engineering
    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

  • Cross power spectrum

    hi
    I'm trying to obtain cross power spectrum of two time domain data (signal conditioned accelerometer o/p's) using 'cross power spectrum.vi'. The vi o/p one being the 'cross power xy spectrum mag' & the other being the 'cross power xy spectrum phase'. I need to plot the frequency with 'cross power xy spectrum phase' or in other words, I need the corresponding frequency value for the calculated 'cross power xy spectrum phase'. This is required for the calculation of phase delay (phase diff / corresponding frequency) and inturn calculate phase velocity
    Regards
    Ajit

    Hi EISmitho
    thanks for the suggestion, accordingly I've incorporated the vi you had suggested. The result obtained from the changes made above contained the frequency values also. But I was bit secpticle about the result as the tabulated frequency was just like a serial no. (1,2,3,...)Is it just a coincidence or have I gone wrong anywhere??Would u pls go through it once and respond to me.
    thaks for the help
    regards
    Ajit
    Attachments:
    crs.zip ‏97 KB

  • Is possible to use PCI 6250 card for order power spectrum in sound and vibration

    Hai all,
    Iam new to Labview sound and vibration. In my application i need to extract the order power spectrum, for that iam using PCI 6250 NIcard. I tried with our NI example program i cant able to get the prober result. Whether this card is suitable for my apllication ?. If it is suitable can any one explain to me to get the order power spectrum...
    In my application iam using one analog signal and one encoder signal(Speed) . Can any one Help...
    Thanks in advance,
    Vijay

    iam using one accelerometer to get the signal from transaxle gear box. This accelerometer signal iam passing to charge amplifier card to get 0-10v signal. This signal iam passing to PCI6250 ai- 0 channel and encoder is connected with motor is passing to ai-1channel for analog tacho. iam using NI example program (Order power spectrum - analog tacho. VI).
    sampling rate is 1000 S/s and no. of samples 1000 for acquiring data. But i cant able to get speed and order magnitude value proberly. Encoder PPR -1000. Can u help me....
    Regards,
    Vijay.

  • Memory leak with Power Spectrum function

    Hi
    I have a memory leak on my application. By observing with the "Desktop Execution Trace Toolkit", the Power Spectrum function (from NI_AALPro.lvlib) seems to have two "Reference leak".
    The first one refers to the function "Open VI reference"; I got around this problem by replacing the "Open VI reference" by an "Initialize" input boolean, but I don't understand the second memory leak.
    Any idea ?
    Thanks...
    (See attachments : Desktop Execution Trace + code)
    LV8.6.1 + Desktop Execution Trace Toolkit 2009
    Same problem with LV2012 + Desktop Execution Trace Toolkit 2012
    Attachments:
    DesktopExecutionTraceToolkit.png ‏82 KB
    MemoryLeakPowerSpectrum.zip ‏7 KB

    Hi Mathilde,
    Thank you for using NI Discussion Forums!
    I reproduce this problem with LV2012 + Desktop Execution Trace Toolkit 2012. I will look further into this.
    Are there many calls of this function in your code? Could it be a problem for you?
    Thank you.
    Regards,
    Audrey_P
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Journées techniques : des fondamentaux aux dernières technologies pour la mesure et le contrôle/comm...

  • What is the equation for a Low-Sidelo​be Window Function (in Power Spectrum VI)?

    I am trying to find out what is the equation for the Low Sidelobe Window which is mentioned in the Power Spectrum VI. Hanning second sidelobe is around -32dB of the first. What is that for Low Sidelobe?

    The CWT is not equivalent to the discrete dyadic wavelet transform. In theory, the CWT can compute the wavelet coefficient at any positive real scale and any real shift, while the discrete dyadic wavelet transform only includes the dyadic scales (2,4,8,16...). So the formula used to describe the CWT can be referred to the equation in pp.80 in S. Mallat's book.
    In SPT's implementation, the time interval controls the shift in number of samples. The scales indicate the wavelet coefficients at integer scales 1,2,3,...,"scales" are contained in the output scalogram.
    NISH DSP
    Medical ultrasound and signal processing

  • 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

  • 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.  

  • Read Text row by row, plot them and find the max of its Power spectrum

    Hi, everyone,
    I have to read data from a text file, plot as a time serie and find the frequency to its max power spectrum. I found a previous post related to my issue so I revised his example a little bit. But once I decide to store the data into an array, the Labview reported:' Error 1 occurred at Scan From String (arg 1)'. Can anyone help me out?
    Thanks in Advance!
    Gab
    Attachments:
    ReadXYZmine.vi ‏18 KB

    Again my attachment got missed out.
    - Partha
    LabVIEW - Wires that catch bugs!
    Attachments:
    ReadXYZmine_Trim Whitespaces.vi ‏19 KB

  • Switching 2D array for Avg Power Spectrum?

    I have a 4 channel 2D array signal which is now indexed so that I can feed 1 channel to the Avg Power Spectrum. It would be much better to have the switching done by radio buttons instead of wired in the Block Diagram. How are the Radio Buttons positioned between a 2D array and the 1D array required by the Avg Power Spectrum?
    Regards,
    Raymond

    I answered your question here. Since the radio button control is just a numeric control, replace your hard coded indexing with a front panel one. Here's a picture of what I mean.
    Attachments:
    array_indexing.jpg ‏4 KB

  • Power Spectrum

    Ok here's the deal.. I acquire data (of type numeric array) from an acuqisition unit (the specifics of it aren't important for the problem) at a known sampling rate and wish to perform a power spectrum on this data. I've used the build waveform function to build a waveform from the 1D array of data with the addition of the dt value (1/Fs) and a timestamp and fed this waveform into the power spectrum vi. The spectrum is then plotted on a waveform chart.
    However each time a new data set arrives from the acuqisition unit, the chart is overwritten.I would like to keep the previous data but would prefer not to use shift registers due to the possible size of the array. I thought if the chart's type was a "strip chart" it would hold the data until the buffer is reached but this doesn't seem to be the case.
    Another possible issue is with the timestamp but I think I've accounted for that.
    Note: The attached vi won't run successfully due to not being connected the the acquisition unit. I was hoping the problem might be clear to someone with more experience using the power spectrum function. I have used it successfully with generic sine waves.
    Strokes
    Attachments:
    Power Spectrum.vi ‏19 KB

    Strokes,
    you listen to mp3 music from time to time? Maybe, you have configured your application playing those mp3 to display something called "Bars and Waves" (at least, Microsoft calls it like this in Media Player). This display is comparable to an equalizer view.
    Your display of the power spectrum analysis is really comparable to this
    Does it make sense that the graph does not replace (read: update) instead of "concatenating"? 
    Norbert 
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Power spectrum not enough memory

    I have a binary file that I want to plot the power spectrum of.  The thing is.. the .bin file is about 100MB.  When I run the attached .vi, it says out of memory.  However, I could open the .bin file and plot it with amplitude versus time.  Is there a problem with my setup or something I don't know about?  Thanks for your time~
    Jud~
    Attachments:
    Powerspectrum.vi ‏25 KB

    Hi Jud,
    why do you attach a BMP renamed to JPG? Please attach real JPGs or (even better because of lossless compression) use PNG format! There's a reason why BMPs aren't allowed as attachment...
    I attached your pic converted to PNG. Do you spot the difference?
    Message Edited by GerdW on 08-02-2008 03:40 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    Error3.png ‏13 KB

Maybe you are looking for

  • Aperture 3.4 plug-ins give Editing Error..

    I updated Aperture to 3.4 and as before sharing my iPhoto library. When I try and use any plug-ins like dfine or others I get the following error. Editing Error. One or more of the selected versions has a original files which is still being imported.

  • Adobe Reader conflict with opening pdf in Outlook 2007email

    I have Windows7, Outlook 2007, Adobe Reader 8.2 and 9.3.  Cannot open pdf doc. in my email with a double-click.  Must save first, then open the file.  When I double click pdf, this message appears, "...error with the following previewer: PDF Preview

  • Different JComboBox in different Cells in a JTable

    Hi: I would like to make a JTable whose content would be several JBox with different values each one. That is to say, a double-column table with the value name in the first column and a range of possible values in the second column, Despite my effort

  • Demantra Workflow issue

    Hi Guru's, I have a issue with workflow. I created a new workflow and when I wanted to run, it is showning as Yellow (Not available process). This happens as soon as I bounce the instance. I could not run the workflow once. Why is this happening? Tha

  • Calendar entry syncs in to my iPhone but not my iPad

    I have a really strange problem where a few calendar entries do not sync to my my iPad but are in my iPhone. They are complex entries (Reoccurring, different time zones, and meeting invite) but they do appear in my iPhone but not iPad. The settings o