Detect frequency of an analog signal coming in through myRIo AudioIn analog port

I am working on a fire-fighting robot that runs using myRio. I have a small mic plugged into the 'AudioIn' port of the myRIO and the robot has to detect a certain frequency(2.8 or 3.5 KHz) to start navigation. The AnalogIn express VI gives me raw voltage amplitudes of type 'Double' but the 'Tone Measurment' vi I wanted to use takes in a 'Signal' data type. I tried converting the raw data to dynamic data and feeding it in but did not work. One problem is that I cannot control the sample rate of the AnalogIn express VI (LabView 2013), I appreciate any suggestions on how to go about doing it.
Solved!
Go to Solution.
Attachments:
Capture.PNG ‏16 KB

Thank you all for your feedback.
@Bob_Schor the robot competition is tomorrow. Thanks for the suggestions but the High Throughput Add-on turned out to be what I was looking for.
@MilanR thank you so much. I installed LabView 2014 and the myRIO 2014 High Throughput Add-on and I now have access to low level VIs that will let me control sampling frequency and number of samples.
I am now using 'Tone measurments' to measure the frequency of the sound. But the frequency measured is not accurate, but it is atleast consistent. I am sampling at 7 KHz and taking 5000 samples at once. The two frequencies I want to detect are 2.8 KHz and 3.5 KHz. However, the mesaured frequecies I get from Tone Measurment VI are 0.400 Hz and 0.499 Hz, which are always consistent. Picture is attached below.
Attachments:
Capture3.PNG ‏10 KB

Similar Messages

  • How can I measure the frequency of an analog signal?

    Hi,  I am trying to measure the frequency of VAC signal coming from a gas turbine engine at my university.  If I can get the values of frequency, I can determine the speed (RPM) of the engine.  I am fairly new to LabVIEW and I have been looking through manuals like crazy in order to find out how to obtain the frequency.  I have measured the signal with an oscilliscope and the highest frequecy will be about 1.5kHz.  I am currently using a USB-6218 and it can collect the voltage signal with ease, but it won't give be analog frequency so simply.  Can anyone explain a way for me to obtain the frequency values?  And if you could show or tell me in a very simple way (because I am not very fluent in LabVIEW yet), that would be amazing!  Thanks!

    Check this out:
    Attachments:
    RPM.vi ‏17 KB

  • Phase shift, frequency of 2 analog signals, Diadem 9.0 or 9.1

    I have to acquire 2 signals: FORCE (N) and VELOCITY (m/s) for many frequencies parameter in Diadem 9.0 (5 to 150 Hz). This frequency parameter is a analog voltage output signal which is converted in frequency by a frequency vibrator instrument. The measured signals on the vibrator (force and velocity) are considered as SINE Functions. – 1) How do I measure the output frequency of the two signals and how can I save this data ? – 2) How can I estimate the phase shift between FORCE and VELOCITY ? – 3) How can I automate the estimation of the phase shift by the 145 measurement (150-5Hz) ? – 4) Is a continue measurement of Phase Shift depending on the frequency possible ? – Best Regards from Germany and from France.
    Jean-Pierre, Junior Engineer Germany

    Hello KenT. I have test your DIAdem exemple. Your idea with a stop-time was not bad for measuring the phase shift beetween 2 generators by 1Hz. I have used this formula by many phase shift and it works. I had change the 2 generators frequency by 2Hz, and the formula works not anymore and that is normaly because of the reduce of the periode lenght (this problem have I show on Picture 3 of the PDF Data). On the picture 6 and 7 have I try to make another solution. My new solution works only for frequency from 1Hz to 5Hz. What about frequency like 150Hz ? I don't know if you have understood what I realy want to do, but if you have any idea to resolve my problems, please write to me. '[email protected]'
    Jean-Pierre, Junior Engineer Germany
    Attachments:
    DIAdemTexte.pdf ‏435 KB

  • Using a counter to detect frequency

    I have an application that basically needs to run as fast as possible given an input signal from a sensor on a vehicle. This frequency I get can range from 300 Hz to 2.2 kHz. I am also sensing three other analog inputs. This is how the vi should work:
    1. Input signal is passed to DAQ board counter (GPCTR0_GATE). The counter is configured to count on each rising edge.
    2. When a rising edge is detected, sample the three analog input channels and dump these values to a buffer (array).
    3. Capture the period of the input signal at the same time I'm getting the three analog channels, dump this to the buffer as well.
    4. Continue this process until a stop button is pressed.
    5. When the test has completed, copy the buffer to a database.
    Basically, what we're trying to do is capture readings based on an external clock that can vary with speed. While testing the application I wrote, I've noticed some serious problems, and this is where I need some expert advice on how to handle them. If the input frequency were constant at 1 kHz, and the test was run for exactly 10 seconds, I would expect to see 10,000 data readings copied to the database (in a perfect world, at least). What I get depends on whether or not I'm requesting the period of the input signal - if I only request the three analog input channels, then I get around 10,000 data points. If I request the period as well as the three analog channels, then I may get 20% (2000 data points) - and the period is wrong at the lower frequencies (300 Hz to 900 Hz).
    I'm at a loss here. I've written this using traditional NI-DAQ as well as with DAQmx. Neither one gives me the input period right, and the number of data points captured decrease significantly when I try to get the period. I've looked a the examples, used alot of the examples, but still no luck. Any help would be greatly appreciated.
    My configuration:
    LabVIEW 7.1
    PCI-6014 on the PC and a DAQCard-6062E on the laptop
    Windows XP

    Hello,
    I do think that a higher performance card would help you significantly in your application. Something like a Value M Series (NI 622x) might solve the problem since it offers 6 DMA channels. If you are able to strip down your program such that it is the easiest piece of functioning code that demonstrates the behavior you would like to see, I could give it a test run on an M Series device and let you know how things turn out. I would need the DAQmx code in order to do this since M Series do not support Traditional NI-DAQ.
    Another thing that I found interesting about your post is that the examples were not ever working for you. I would suggest trying the Meas Dig Period-Low Freq 1 Ctr.vi in the DAQmx examples to see if you are able to successfully measure the frequency of your signal. If that's not working, then it might be an issue with the signal that you are connecting up. You should confirm that the signal is TTL compliant and possibly even probe the signal to confirm you are receiving what you are expecting.
    Post back with your thoughts and code if you'd like.
    Jared A

  • NI-5122 measure trigger frequency of TTL trigger signal

    I have two signal channels and a TTL trigger signal on my NI-5122. The frequency of the tigger signal is between 5 and 30 Hz. Before I want to sample the two signal channels I need to know the actual trigger frequency to calculate and set sampling rate and number of sampling points. I use LabView 7.1
    What's the best way to measure the frequency (5-30 Hz) of the TTL signal connected to the 5122 trigger input?
    many thanks for your help.
    Markus

    Jason V,
    thanks for your help. So there is no programable counter on the 5122...
    My freuqency is constant and I need an accuracy of <1%.
    What I did meanwhile:
    I make a loop of e.g. 10 triggerevents.
    I record the times when the trigger events occur.
    After the loop I fit a line to the time vs. iteration number.
    This gives a pretty good value for the period, hence I get the inverse frequency.
    I need 10-30 trigger events to be accurate.
    For 10 Hz this makes 1-3 seconds init at the start of each measurement.
    I can reach a relative error as low as 1e-4. That's o.k.
    I did some more tweaking to allow for missed trigger events.
    The whole VI works fine to retrieve frequencies up to 100 Hz.
    For higher frequencies I am limited due to the millisecond resolution of LabViews 'Tick' vi.
    ====
    For higher frequencies I would program a counter:
    Start a measurement for 1000 scans and measure the time for that.
    However, this is not accurate enough for low frequencies and short recording times (10-30 trigger events).
    ====
    I also thought about Fourier transforming the signal itself and locating the peak frequency.
    Same as above: This is only accurate when I record many periods.
    ====
    The fastest and most accurate solution would be to sample the trigger signal itself.
    Then I would need only one period and could detect the trigger slopes with microsecond resolution.
    However, I need both input channels for recording simultaneous signals.
    Conclusion:
    (1) The NI-5122 does not has a programable counter on board
    (2) For my application I found a solution tht works.
    MarkusMessage Edited by Nepu on 03-09-2005 02:04 AM
    Message Edited by Nepu on 03-09-2005 02:07 AM

  • Very low frequency caused by sample frequency in FFT analog input?

    I'm measuring a very low frequency on my analog input, this frequency is in connection with the sample frequency of the Analog Input. At a sample frequency of 1000Hz I see a frequency of 0,05Hz in my FFT, at a sample frequency of 500Hz I see a frequency of 0,02Hz.
    Attached is a screenshot of an example how I see this very low frequency.
    My hardware: NI USB 6008 --> measuring on AI-0 (in this example the input is unwired). But in my real measurement I see the same FFT + signals I want to see (about 2 Hz).
    In my real measurement I windowed the FFT (1-3Hz) so I see only the FFT I want to see. But I suspect that my complete signal moves along with this very low frequency of 0,05Hz. I saw this in my measerement.
    What did I do wrong?
    Attachments:
    screenshot.JPG ‏66 KB

    First, do you live in Europe? If so, that 50Hz could be power-line pick up.
    Antialias filtering must be done in hardware before the DAQ. Because of the way aliasing works if you have sampled the signal it's already too late, you're hosed and no amount of digital filtering can remove the aliased signal. In terms of filter specifications, the filter cutoff needs to be at twice the highest frequency you are interested in seeing. For example, if you are looking for signals in the 2- to 5-Hz range, your antialiasing filter should cutoff at around 10Hz.
    Obviously good signal management is also needed: shielding, appropriate signal termination, proper lead dress and spacing from known noise sources, etc...
    Mike...
    PS: There were no attachments to your last post.
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • I have dropped my ipad and have cracked the screen. Now the ipad will no longer detect or connect to wifi signals. Any solutions would be greatly appreciated

    I have dropped my ipad and shattered the screen badly. A new problem that has only come since the cracking of the screen is that the ipad will now no longer detect or connect to ipad signals. I have tried all the solutions i have found online but none worked.

    It will cost approximately US$219 to US$299 depending on the model.
    Apple will replace the entire iPad; they don't repair.
    If you had purchased AppleCare+ when you bought the device, you would be entitled to up to two replacements over a 2 year period for $49 each.

  • Frequency Analysis? How do I get frequency characteristics of a signal given in .wav format ?

    I am new to Labview would really apprecite your time and help...
    frequency Analysis? How do I get frequency characteristics of a signal given in .wav format ?
    I have attached the signal I am trying to analyze.
    Have nothing to offer in return but gratitude
    Cheers !
    Message Edited by Komal Khalid on 04-11-2010 10:59 PM

    If you have labview 8.x or 9.x you can do this. Go to help in the toolbar. Select "Find Examples" and then search for sound. Locate the "Sound File to Sound Output.vi" This example will help in your task. Remember that Labview is shipped with a lot of useful examples. That can help you in your learning process
    Good luck
    Ps you can also read wav files, and find examples  in Labview 7.x. But I do not know the name of the similar examples in 7.x
    Edit: Please use zip files then you are not able to attach files. Do not link to sites outside. The site you linked to was very annoying. Could not download
    Message Edited by Coq Rouge on 04-12-2010 02:38 PM
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Auto frequency increase of simulate signal vi

    Hi everyone. I am pretty new to labview. I want to increase the frequency to a simulate signal vi using array of numbers. the for loop should step through the array and output a frequency that will serve as input to the simulate signal vi every 5s changing the frequency from 10hz to 20hz, to 30hz and so forth until bout 1khz.
    attached is a vi i have written but something seem not to be accurate
    Solved!
    Go to Solution.
    Attachments:
    Frequency Simulator.vi ‏63 KB

    Hello marco73
    The red dot is the conditional terminal.
    You need to enable it for your for loop.
    To enable the conditional terminal, right click on the for loop and select "Conditional Terminal"
    Derick Mathew

  • There is no signal coming from the airport express

    There is no signal coming from my airport express. The light is always amber in color.  It would turn green but only for 1-2 seconds and then back to amber again for a long time.  I'm pretty sure there is a signal problem from the airport express.  What could be the solution in this problem?
    Thank you.

    Unfortunately, the solid amber light is likely a symptom that the Express has experienced an internal component failure.
    Try a Factory Default Reset as follows to see if you can unlock the device.
    Power down the Express for at least 15-20 minutes
    Hold in the reset button and keep holding it in for another 10-12 seconds while you plug the Express back in to power
    Release the reset button
    If you have a slow, blinking amber light after 40-45 seconds, the Express may be OK. If the light stays solid amber after a several tries on the default reset, I'm afraid that it will need to be replaced.

  • Acquiring Frequency Content of Vibration Signal

    Hi.
    I am trying to find the frequency content of an incoming signal from a geophone which has a 500 Hz vibrational signal on it.  However, using two different methods, I find that I am only given a large DC component for the frequency spectrum of the signal.  I have two different methods set up in a case statement to make it easy to try each one without having to rewrite code.  The first method is to just use the FFT function (in the attached picture I have a high-pass filter on the front to try and block the DC signal, but this only blocked the DC signal and did not make the 500 Hz signal any more noticeable).  The second method uses the Power Spectrum function with my array data converted to waveform for input.
    The first picture shows the two different methods I tried.  The 1st picture with graphs is the result I get using the FFT method.  The 2nd picture with graphs is the result I get using the Power Spectrum method.  Any information or advice would be greatly appreciated.  I can provide further information upon request.
    Thanks.
    Attachments:
    2methods.jpg ‏41 KB
    method1.jpg ‏106 KB
    method2.jpg ‏115 KB

    Well, first thing, it would be a lot easier for someone to help you if you were to attach your VI to a post than to send those little pictures. Take out anything that is irrelevant or proprietary, fine. Please set up labels and scales for your axes so they reflect your data, don't just use the default labels and arbitrary scales. Taking a wag that your bottom "time" axis is scaled to the number of data points (0-9999) and your signal is actually a 500 Hz sine, you are actually only taking about 200 points per wave, instead of 600, like your VI picturette says. Even though you would certainly be above the Nyquist frequency for sampling, it throws everything else into doubt because you haven't described it accurately.
    Second, if I were to also assume that the tunnel into your case structure is the array you want to get frequency from (here's where attaching the working VI comes in), you are feeding one point at a time into the FT or PS functions. With one point at a time, it'll be real hard to get any more than a DC frequency. You need to feed the whole array in for the spectral analysis functions, or at least a larger portion of it. You've just got a single point, followed by 2999 zeros, at least for the FFT portion.
    Cameron
    To err is human, but to really foul it up requires a computer.
    The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
    Profanity is the one language all programmers know best.
    An expert is someone who has made all the possible mistakes.
    To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
    LabVIEW Unit 1 - Getting Started
    Learn to Use LabVIEW with MyDAQ

  • How can I get my 2010 mac book pro to send signal out through the mini display port?                      end signal out through the end video signal out through the

    How can I get my 2010 macbook pro to send signal out through the mini display port?

    First, what you said is contradictory. You say "can't get a video signal", then say"the Mac wallpaper is broadcast, the mouse pointer is visible". "No video signal" means an absolutely black,blank screen. It sounds like you have plenty of signal.
    I am supposing what you are seeing is actually a blank desktop, which is to be expected if your settings are such that you are extending the desktop, instead of mirroring it.
    Within the preference panes is a setting that allows you to change this. Open System Preferences, click Displays, and then click Arrangement. You will see that you are extending the desktop. Change that setting.

  • My iPod Classic is not detected by my Windows 8 computer when I connect it via USB port.  How can I get windows to detect this device?

    My iPod Classic is not detected by my Windows 8 computer when I connect it via USB port.  How can I get windows to detect this device?  A message from windows says: the device has malfunctioned.

    Try TS1363: iPod: Appears in Windows but not in iTunes.
    See also Corrupt iPod classic.
    tt2

  • Everytime i try and send a message to my boyfriend through imessage on my ipad, it says "Message send failure" but all of the messages are coming in through my email, i hate texting my boyfriend through my email. So can someone help me, please.

    Everytime i try and send a message to my boyfriend through imessage on my ipad, it says "Message send failure" but all of the messages are coming in through my email, i hate texting my boyfriend through my email. So can someone help me, please.

    "iMessage allows users to send texts, photos, videos, contact information, and group messages over Wi-Fi or 3G to other iOS 5 users, thus providing an alternative to standard SMS messaging for all users with devices running iOS 5."
    This is what it is and what it does. You both have to have iOS 5 installed on your supported device. If that's not what your setup is, then that's your answer.

  • TS3623 Apple TV works fine if connected directly to Samsung tv, but shows no or incompatible signal when connected through Harman Kardon AVR 1565 av receiver, other signals like dish satellite receiver work fine both ways

    Apple TV (1080p) works fine if connected directly to Samsung tv, but shows no or incompatible signal when connected through Harman Kardon AVR 1565 av receiver, other signals like dish satellite decoder work fine both ways.

    Does it help if you set the output to 720p.

Maybe you are looking for