Maximum peak frequency

Hello..
I'm a user of NI product (LABVIEW 8.5).
My problem is, i'm using DAQ VI that read the signal from the hardware and then i transfrom it into frequency domain by using FFT.
In the frequency domain, i get a graph with a set of different frequency. Here is the set of data
1. At freq= 0Hz, magnitude= 23 - this is the offset
2. At freq= 20Hz, magnitude= 5
3. At freq= 35Hz, magnitude= 18
4. At freq= 55Hz, magnitude= 10..
So, which VI should I use so that it will display the frequency of 35Hz which contain the maximum peak frequency of my signal?
TQ

1. It appears that your frequency resolution is 1 Hz.  For FFT based systems df = fs/N.  To get finer resolution you need more data points (increase N).  You can either take more samples, although the insects might not cooperate, or you can pad the data.  The FFT.vi will do that internally just by changing the FFT size input to a value larger than the number of samples in the dataset.
Your saved data has 3000 points and you get two outputs (at 8 and 9 Hz) to represent that peak.  Changing the size to 15000 results in 7 points in a peak at about 8.6 Hz.
2. Your data looks very strange.  It appears that about 40% of the input data is saturated at amplitude = 0.21.  This has to distort your results far beyond the DC offset.  You cannot do anything about that after the data has been recorded because all the information is lost in the saturated intervals.  Please check the gain of your preamplifier.
Lynn

Similar Messages

  • PCI-6023E DAQ card maximum sampling frequency

    Hello
    I am using PCI-6023E DAQ card in pc-based ETS solution (and writing appilication in LabView 7.1 with RT module). The card has 200kS/s maximum sampling frequency, but it can be set for much higher sampling frequencies and the waveform acquired appears to be correct (i.e. i've tried setting it fo 1MS/s and sampling 400kHz sine, which is obviously above Nyquist frequency for 200kS/s card, but on spectral graph, main peak is at 400kHz). Is the card driver doing some kind of free/coherent sampling?
    Moreover, when sampling frequency is set to 200kS/s, the card seems to be doing same thing - i.e. for 200kS/s and sample block size of 200kS, graph should be updated once in a second, but it's updating slighty slower.
    I'd really appreciate if someone could explain me (or gave me a link to materials) what exactly is happening here? Is driver doing some background work, or maybe it is problem with network latency/unstability ? What is the impact of this effect on real-time aquisition?
    Thanks in advance
    Jan Kienig

    Since the fundemental is 4 times the nyquist, then what you are measuring is an alias of the fundemental. This works well as long as the fundemental is a repetitive signal. Sampling every other peak and every other node looks the same as sampling every peak and node. Tektronix exploited this on their 7S series sampling heads. Another use of this phenomena is the effective demodulation of high frequency signals as long as the bandwidth meets nyquist. As with your card, if the input amplifier supported it, I could extract modulation information from a 500 MHz signal so long as the the bandwith of that modulation did not exceed 100 kHz.
    Parker

  • Frequency sweep with peak frequency

    Hi guys, I need some help here. I´m using a NI 9215 to do a frequency sweep from 30 to 90 Hz.
    So far so good. Now I need a resulting resonance frequency at highest voltage.
    I tried a max peak frequency VI but couldn´t get it to work.
    Any idea what to do?
    mfg, Andi
    ok, here is my sweep.vi for better understanding
    Message Edited by andinew on 08-11-2009 04:14 AM
    Attachments:
    sweep.vi ‏216 KB
    create_log_frequencies.vi ‏15 KB

    Hi Andi,
    one thought first off: looking at your "create_log_frequencies.vi", I realized that it generates linear frequency hops, not logarithmic ones...
    But on to your question: to find the frequency with the highest amplitude (this will be your resonace, I guess), you will have to look at the entire signal - your "sweep.vi" code iterates the measurement and interpretation five times per second, independantly of the speed of the sine sweep.
    My advice would be to generate one waveform containing the whole sweep run, and writing this sweep block for block with a constant sample rate onto the output. You could then read back the response with blocks of the same size as your output, do the single tone measurement on this block and store the resulting frequency and amplitude in an array preserved trough a shift register or simply into two auto-indexing tunnels. The latter is okay as you don't need a "while loop" in the measurement loop (you know how long the analog output loop runs - why not use this information to configure a "for loop").
    After your analog input "for loop" has finished, search your amplitude array for the maximum - then use the found element's index to index the frequencies array and return the corresponding resonance frequency.
    A good starting point could be the example I wrote a couple of month ago: it runs continuously the same "sweep" (you'd have to adjust the waveform, I know) and reads back the stimulus and the response (wire the output to your probe and parallely to ai0, your response signal will be connected to ai1). You can then insert tone measurements etc.  at the marked section...
    When trying to open the example, you will be prompted to find a VI called "_Get Terminal Name....vi" - you can find this VI at the following location: C:\Programme\National Instruments\LabVIEW 8.5\examples\DAQmx\_Utility\_Utility.llb
    As an afterthought: the "phase difference" you are calculating between every other sample of the analog measurement array is a bit confusing: if oyu need the phase difference between the original signal and the stimulus response, you will need to wire the stimulus to a second input and compare the phases of the two separate signals...
    Best regards,
    Sebastian
    Message Edited by SFK on 08-12-2009 04:12 PM
    Attachments:
    Multi-Function-Synch AI-AO mit Signalgeneration.vi ‏91 KB

  • How can I implement a Digital I/O counter with a maximum source frequency of 80 MHz (like 6602 board) using CompactRIO?

    How can I implement a Digital I/O counter with a maximum source frequency of 80 MHz (like 6602 board) using CompactRIO? It appears as if the Digital I/O modules for CompactRIO are much slower than this.
    Thank you,
    --Ray

    Hi Ray,
    The highest frequency input we offer for C Series modules is 20 MHz if you are doing LVTTL and 10 MHz for 5 V TTL.  These modules are the 9402 and 9401, respectively.  Unfortunately, there is no 80 MHz input on this form-factor.
    Regards,
    Chris E.
    Applications Engineer
    National Instruments
    http://www.ni.com/support

  • Curve: average value of the maximum peaks?

    Hi @ all!
    DIAdem 11.1: is it somehow possible to calculate the average value of all the maximum peaks of a curve?
    If yes, how can I make it?
    Thanks for your help!

    Hi Rednaxela,
    Sure, once you have created a channel containing "all the maximum peaks", then you can calculate the average value of that channel either with the CCh() function or the StatBlockCalc() function.  The real question is what you mean by "all the maximum peaks".  Most humans staring at the same data curve will come to similar conclusions as to what "all the maximum peaks" are.  The trick is to define how a computer (program) needs to proceed to come to the same conclusions.  This is actually considerably harder than most people anticipate, because humans are really much better at identifying peaks than computers.  The actual method we use to define "all the maximum peaks" will depend strongly on the details of your data curves.
    Would you be able to post a sample data set or send it to [email protected]?
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • How to detect peak frequencies in the frequency domain?

    Hello,
    I have built a small test program consisting of two sine waves of variable frequencies, there sum is found and subsequently FFT is performed on it to find the two peak frequencies. I have been trying to somehow display the values of these two frequencies but I just can't find a way.
    I searched the forum before posting the question, many of them suggested using the Extract Multiple Tone Information VI which I tried and couldn't get any results. 
    I have attached my file. Please have a look. If you know any threads on the forum directly related to my problem, please just cite it.
    Thanks,
    LD
    Solved!
    Go to Solution.
    Attachments:
    DTMF Decoder.vi ‏168 KB

    Exactly, I just found that out too ... how silly of me.
    Thanks very much for replying
    LD

  • FFT size unexpectedly affecting peak frequency

    I was playing around with some exercise from Labview Signal Processing Course Manual (NI, 1997), when I stumbled upon unexpected result.   I have included below the block diagram for exercise 3.1 (one sided FFT) from the manual.  This demo vi had left the FFT size (default).  I am not sure what that default value is.  It is not stated in the context help.  I tried to add in FFT size.  Unfortunately the FFT analysis did not give an accurate answer when I put in FFT size.  For example, I have set the sine wave frequency at 100s,  Fs 300Hz and No of sine wave samples 500.  When the FFT size was set at 256 I get 2 frequency peaks at 51 and 102 Hz.  At FFT size of 512, I get one peak at 102 Hz.  At FFT size 1024, I get a polymorphic waveform!!! 
    However when I set the FFT size to -1 then I got back the correct peak at 100Hz.  I suppose this is the default FFT size value.  I could also get the correct FFT frequency if I set the FFT size (500) at the same value with # no of samples (500). 
    Is there anyway I could set the FFT size value and yet get the correct FFT output.  Thanks.
    Solved!
    Go to Solution.
    Attachments:
    3.1onesidedwithnooffft.vi ‏19 KB

    Dear 'Dad',
    Thanks for the correction.  I have made adjustment as you have mentioned.  It seems to work but I noticed some new problems.    
    1)      If the following parameters are used ( sine wave 100Hz, Fs 400Hz, FFTsize 512, Sample Size 512) then everything is fine.
    BUT when
    2)      When the number of samples was increased to 1000, I ended up with 2 peaks at 100Hz and 300 Hz. (This vi was suppose to be one sided, the negative side of FFT was removed)
    3)      Things get even weird when Fs is increased to 500Hz.  Then the 2nd peak moves from 300 to 400 Hz. !!!
    Attachments:
    3.1onesidedwithnooffft2.vi ‏17 KB

  • What's the maximum counter frequency for the cRIO?

    Hi Everyone,
    First of all, thanks for your input here!
    I'm new to the cRIO, but have been working with LabVIEW for awhile.  I need to accurately measure the time between several digital inputs.  One input starts the counter, another captures and stores the current counter value, and a third stops the timer and also captures and stores the counter value.  It's basically a stopwatch.  The problem is that the counter needs to run at a frequency of 100Mhz or greater.  It also needs to be at least 28 bits wide so that it won't overflow between start and stop inputs.  Is this possible with any of the cRIO systems currently available?  If so, how?  I'm assuming it will need to be implemented within the FPGA, but does the FPGA run that fast?
    Thanks so much!
    -Yohan
    Solved!
    Go to Solution.

    Hi Yohan,
    Unfortunately, the cRIO is not capable of reliable frequencies at 100 MHz or greater.  I would recommend speaking with your local NI Field Sales Engineer or callteh NI Sales department at (888) 280-7645 to discuss the hardware that would accomodate your application.  
    The PXI-6586Rmay be an option: http://sine.ni.com/nips/cds/view/p/lang/en/nid/207297
    I hope this helps!
    Kristen H.

  • Wy does my PCI-MIO-16XE-50 run at a maximum collection frequency of only 20KHz

    I performed this test in the test panel and in a labview program

    Hello;
    20K S/s is the maximum sample rate for that device. You can get more information about your particular device at www.ni.com/catalog, or even download the DAQ board Users Manual from NI web site.
    Regards
    Filipe A.
    Applications Engineer
    National Instruments

  • Maximum input frequency of the PCI-6014?

    I am using the PCI-6014 configured for digital inputs. At low frequencies my quantized waveform is very smooth however wheni increase my input frequency, teh waveform becomes highly distorted. Im sure its not my A/D converter becomes i am sampling more that eight times the input frequency. Can you please help me!

    Hi St Augustine,
    This issue could occur if you are sampling on 2 or more channels. If this is the case, you are probably seeing cross-talk (channel ghosting) where voltages on previous channels are being seen on subsequent channels in your sample list. For example, if you have a sinewave on the first channel and 5V on the second channel, you might see remnants of each channel on the other, distorting your signal slightly. The best way to correct this is to increase the interchannel delay.
    Data Acquisition: Troubleshooting Unexpected Voltages or Cross-talk in Analog Input Channels
    http://digital.ni.com/public.nsf/websearch/B9BCDFD960C06B9186256A37007490CD?OpenDocument
    If you are only sampling on one channel, you could check in Measurement & Automa
    tion Explorer (MAX) to make sure that you are seeing the same phenomenon being exhibited by the waveform. In MAX, you can right-click your PCI-6014 device and select Test Panels. Then you can adjust the sampling rate and watch the waveform directly from the front end of the driver.
    Another point is that it could still be that you are seeing granularity because of the high frequency of your signal relative to your sampling rate. A sampling rate of 8x higher will still look much more "squarish" then a sampling rate 100x faster.
    Anyway, hope that helps. Have a good day.
    Ron

  • How do i create a list of frequencies +/- a peak output as ascii file?

    I have an VI set up that reads in from a Spectrum Analyzer and searches for the peaks and outputs them along with there amplitudes as an ASCII file.
    A Macro has been created in Excel that reads the ASCII file and creates a list of 5  frequencies +/- the peak frequencies above a threshold to be tested later.  The problem is that it has some frequencies
    created more than once.
    Is it possible to create this list in the VI that would filter the list and then output it to excel to be printed later?

    ChrisKalina wrote:
    I have an VI set up that reads in from a Spectrum Analyzer and searches for the peaks and outputs them along with there amplitudes as an ASCII file.
    A Macro has been created in Excel that reads the ASCII file and creates a list of 5  frequencies +/- the peak frequencies above a threshold to be tested later.  The problem is that it has some frequencies
    created more than once.
    Is it possible to create this list in the VI that would filter the list and then output it to excel to be printed later?
    Of course it is possible to do this.  What have you tried so far?
    One problem you will have, though, is that LV 5 is such an ancient version, many people on the forums will have trouble being able to open your file, and almost no one will have the means to save back that far.  So you may have a hard time getting help.

  • What's the maximum digital I/O frequency for the NI LabVIEW RIO Evaluation Kit ?

    Hi!
    I'm trying to analyze some sort of sine signal at the frequency of about 3 MHz. Because the analysis should be very precise and fast (about 10 samples per period), I'm needing the maximum digital I/O frequency of the NI LabVIEW RIO Evaluation Kit.
    Regards,
    Erik

    Dracyon,
    Can you please clarify a couple of things: you say you are trying to acquire a sine wave that has a frequency of 3 MHz, but you are asking for the maximum DIO frequency. I believe what you need to know is the maximum analog sampling frequency. For the sbRIO-9636 (part of the evaluation kit), the maximum aggregate sampling frequency is 200 kS/s at 16 bits of resolution. At 10 samples per period, you could sample a ~20k analog signal. If you are actually looking for maximum DIO frequency, this is a bit more complicated. We have a good whitepaper explaining this.
    Best,
    Tannerite
    National Instruments

  • Maximum SPI clock frequency

    Hi, I have a question about the myRIO 1900 spec.
    The onboard FPGA has a 40 MHz clock, thus as described here it is possible to generate a 20 MHz frequency. That page also provides an equation for valid frequencies:
    The following equation calculates frequencies that you can generate for serial peripheral interface (SPI) I/O on the NI myRIO.
    fSPI = fclk / (2 * N * [X + 1]) 
    where fSPI is the desired SPI frequency
     fclk is the base clock frequency
     N is the clock divisor
     X is the number of counts before changing the signal
    The PWM Express VI and SPI Express VI provide a Validate button that you can use to validate whether the Express VI can generate the frequency that you specify. If the specified frequency is not valid, both Express VIs coerce the specified value to the nearest valid value.
    However, the VI limits the frequency to 4 MHz, and 4 MHz is the maximum SPI frequency stated in the user guide / spec. So the question is, why the inconsistency? Is it possible to use the FPGA to run SPI at a higher frequency, such as 10 or 20 MHz? Or is there some unmentioned constraint on N or X in the above equation?

    Hi Lack,
    After researching this issue, it turns out that all of the default functions VIs, including the advanced VIs for myRIO, will coerce the SPI maximum frequency to 4 MHz because this is the highest range that NI officially supports. Technically you could try for higher frequencies by changing the fixed myRIO FPGA personality and accessing the registers available there, but we cannot guarantee its accuracy.
    David H.
    National Instruments

  • How to see the peak values in a chart?

    I have the following situation: I am applying the FFt to an acceleration signal. In the FFT-peak graph I see different peak frequencies. However I would like to know how much are those peak values and either display them in the chart on top of the peaks or extract them in numerical indicators. Is any of these solutions possible in LabView?
    I guess the question stands for any kind of graph or chart where you want to extract and see only certain or peak values. Any suggestions?
    Thank you.
    Radu

    OK. Attached is a VI which allows you to move cursors 0 and 1 to select any section of a graph, and then click a button to get the maximum of that particular section. It also places the third cursor (red) at the location of the maximum it finds. It is all done using property nodes of the graphs.
    This VI is based on an exercise of the LabVIEW Basics II course, which I took a long time ago, but the manual of which is still very useful.
    Hope this helps.
    Alejandro
    Attachments:
    GetMaxiumumExample.vi ‏81 KB

  • Peak/valley detection problem

    Hi,
    How can i detect the maximum peak to valley on the graph attached.  It is not the difference between the maximum and minimum all the whole data set that i require, I want to know the maximum value of the higher frequency peaks and valleys ignoring the small 'blips' within the data.
    The X-axis is controlled by time and the number of samples between each peak varies between data sets.  I have considered using a moving average to smooth the data but cannot do this due variation of samples between peaks.
    Using the peak/valley detection VI would work great but due to the small 'blips' in the data set a true maximum value cannot be found.
    Can anyone help?
    Tom
    Attachments:
    graph.JPG ‏20 KB

    Hi Tom,
    I have been looking into your issue in an attempt to find you a solution. My initial thoughts are that you should apply some form of smoothing to the waveform before subjecting it to the the Peak Detector sub VI to detect the amplitude of the peaks and the troughs. These amplitudes could then be subtracted form each other thereby arriving at the values you are looking for. Can I confirm that this would solve your problem.
    I have been looking into a methodology for smoothing your waveform and I found the following example which uses a moving average technique, which I think could be useful. Take a look and let me know what you think.
    Best Regards,
    Christian Hartshorne
    Applications Engineer
    National Instruments UK  
    Attachments:
    Moving_Average-1.vi ‏15 KB

Maybe you are looking for

  • Can no longer find External HDD

    Ok so, last night I had a rough time with my MacBook Pro (startup wasn't working correctly) so I took it down to my local Apple Store today, where they formatted the entire hard drive. Luckily, I've been using my 500gb WD external hard drive to back

  • IPhoto on the iPad Mini

    W

  • Locked bios

    Last night tried to fix Friends antique I Series. First swapped out the failed hard drive booted it and got error that battery was bad or dead. I thought it meant the little 3 V batt. Booted again and now it stop's at the IBM Thinkpad screen with F1

  • Unable to burn with Disc Utility

    I have a mac mini superdrive and I want to burn some idvd projects on DVDs that we made with students last year. I started burning one and it went fine until the end. Now I am trying to burn another project that is much bigger than the first one. It

  • Problem in running batch input session

    Hello Guys i developed a lsmw object .in step 13 after executing  create batch inputsession a session is created and i can see the session created but when i go to step 14 run batch input session .i couldnt find session there and eventually can not r