Find frequency from input signal

Hi
How can i find frequencies from input signal (*.txt file) that  consist of 7000 samples. I know the sampling rate.

This is a question about this thread.
I am working on a program to pull the two frequencies from a touchtone phone signal and figure out what number was pressed.  I used the Spectral Measurements VI to perform an FFT on the data.  I want it to work in real time, but I can't figure out how to get the max two frequencies out of the 2D array that is coming out of the Spectral Measurments VI.  I am experimenting with the ptbypt functions, but can only get the single MAX value.   I need to then compare these with a lookup table.  Any ideas? 
I am attaching the VI.
Thanks,
Eric
Attachments:
DSP FFT Sound Card AutoPower Spectrum.vi ‏133 KB

Similar Messages

  • How to create 2 output signal locked in phase from a one input signal

    Hi all,
    I have a case in which I want read in a signal analog input (voltage) from a photodiode, I want to create a 2 sinewave signal locked in with same phase as the input signal and output them as analog output to my 2 laser diode. the frequency of the input signal is low aroud 15 Hz , the 2 output signal i want to be  around 120 hz and 150 hz . 
    I am using USB - 6003 daq card.
    I have created a vi to see the input signal but I dnt know how to create 2 signal from the waveform generator locked in the phase as the input signal. I have seen a PLL vi , but dont know how to use that with my program.
    can any one tell me how to proceed.
    thanks
    AG
    Attachments:
    pulse_PLL.vi ‏27 KB

    Hi AnkitG,
    Here are a couple of links that might help you understand a little more how the PLL work and a way to synchronize the task to perform a PLL.
    http://digital.ni.com/public.nsf/allkb/07BC8D77D4E9AE258625708B007CE74F?OpenDocument
    http://digital.ni.com/public.nsf/allkb/2F675A9F2162EA24862572570059A308?OpenDocument
    Also, you should be able to find a lot of examples on how to accomplish the synchronization of tasks on the community, if you consider that the only consideration is that both must start at the same moment. 
    I hope, these examples might show you some useful concepts:
    http://digital.ni.com/public.nsf/allkb/EBD603683446EC13862575B3006A63A2
    http://digital.ni.com/public.nsf/allkb/9E71F8D7D3CD1B0886257688004AE353
    Regards,
    Luis C.
    National Instruments

  • I would like to tare (rezero) the input signal from a forceplate (glorified

    I would like to tare (rezero) the input signal from a forceplate (glorified scale) so that the base signal is set to zero, e.g.: a button on the front panel that resets the signal to zero prior to getting a measurement from a subject.
    We calibrate the force plate through labview and input our new equation into our scaling and mapping box which sets the signal to zero (or near zero) and the change in newtons (force reading) is accurate but when the application is closed and reopened the signal does not always start at zero (-400 to +1200 N), while the change in newtons is still accurate. I am NO engineer, I have Forest Gumped my way into getting some nice working VIs but I can't seem to find this function.
    Thank you very much for your time.

    Maybe that is the limitation of Acquire Input Data.vi.The vi can't identify the Unformal key.
    You can try to use Event structure and set to listen "key down" event.
    There are two terminals VKey, ScanCode will sent out the information when you press key.
    There are two pictures in attached file, 2.jpg will show you the detail.
    Good luck.
    Attachments:
    SpecialKey.zip ‏17 KB

  • Why am I not getting any input signal into logic X or GarageBand from my audio interface?

    Hello all,
    I'm completely new to all this so I will try my best here to give all the details needed.
    So, I am using a Mac mini (2013 model: i7 overclocked at 2.6, 16 gbram) and a focusrite saffire pro 24DSP. Overall both are in perfect working order.
    My problem, however, is that I am seemingly unable to get any form of signal from my saffire into either Logic X or GarageBand. I am trying to record guitar lined in and I have set all the settings in logic to what I think is right (software monitoring checked, output channels selected, saffire selected for both input and output) and I have set up my saffire mix control - I spent days reading the manual and watching online tutorials.
    The saffire mix control is set up thus:
    Input 1 - instrument
    Daw 1+2 = GarageBand
    Daw 3+4 = Logic X
    Sample rate 41Khz
    Master Output = stereo monitor mix (line outs 1 &2 to my monitor speakers)
    Output 3+4 headphones
    Is there anything missing here?
    As far as this all goes, when I plug in my guitar I can get a very clear "raw" signal from the saffire mix control, but when I then go to set up a track in either DAW and assign the necessary line ins and outs, no matter what I do I cannot get an input signal, not even a partial one (I have the monitoring and record armed options checked btw). I am close to giving tearing my hair out.
    I'm sure I am just missing something out?
    Thanks in advance :-)

    I've plugged into the interface a mic and an electric guitar.
    I'm not sure what I did but the guitar is coming through (though it shows no signal on the interface). Mic input level on line, mic registers a tiny bit of sound when I hit the mic (on only one channel) but doesn't register any vocals when mic input is turned up to the max.
    Odd thing: stereo/mono button reversed that is when the button is pushed in it equals stereo on the head phones when it says it should be mono and when the button is left unpushed it equals mono when it says it should be stereo.
    Monitor is on and volume is at max.
    GB system preferences don't list Input 1 or/and 2. Where do I find them?
    I've tried everything I can think of. It feels as if I just need to find the right switch but I don't know where to look...

  • Display FFT of input signal which receive from VISA read ?

    Hi.
    I receive data from MCU whcih sampling frequency is constant and we assumed it is S. now I get data from MCU with using VISA read block. I can display data, perform some functios like filtering, multiply and save them in txt files. all thing is OK.
    but when I want to see FFT of incomig data on chart , it doesn't work !! I use this VI for calculate and display FFT of input signal (from VISA read) and display it which in Y-Axis is magnitude and X-Axis is frequency. 
    in your mind why this is not work and what I must done for show input signal FFT and frequency components ?
    Thanks.

    If I understood this correctly, you are getting the correct results when outputting to a text file but you are not able to see the results when trying to output to a chart?
    This discussion may be of some help to you.
    Rob S
    Applications Engineer
    National Instruments

  • I am trying to log data from 4 voltage input signal using labview, but when i use DAQ assistant i am able to log data from one signal at a time only.

    I am trying to log data from 4 voltage input signal using labview, but when i use DAQ assiatant i am able to log data from one signal at a time only.I am trying to get all 4 input data to logged in a single file againt time. I am new to Labview, I need to sample this data within a couple of days can someone help please.

    Naveen
    Check out the info in the Analog Input section of the document linked below.  (Ignore the part about Global Channels.)  In Figure 5, notice that you can select multiple channels while holding <Ctrl> or <Shift>.
    Developer Zone Tutorial: NI-DAQmx Express VI Tutorial
    Kyle B  |  Product Support Engineer  |  ni.com/support

  • How can I measure the frequencies of two analog input signals simultaneously?

    Hi
    I have two AI signals, and I need to determine the frequencies of those signals. The frequencies range from 1-125Hz. I currently have a VI where I can sample one of the signals for 1 second (sampling at 300 Hz for 300 samples) and determine the frequency. 
    I need to read two signals at the same time and get both of the frequencies at the same time, but I can only figure out how to read them individually, so I can read one signal, then one second later I read the second one, then I read the first one again, then the sceond one, etc..  How can I read two signals simultaneously?
    Thanks
    Attachments:
    FreqMeas11.vi ‏41 KB
    FreqMeas11.PNG ‏18 KB

    "at same time", this depends on the hardware, you can do as has been previously stated just set up a 2 channel acquisition and you will get 2 sampled waveforms back.  Most hardware A/D as multiplexed and true simultaneous sampling is not done.  At 125Hz this is not an issue unless you are interested in very small phase changes between the samples.  just keep this in mind if you are expecting samples to be completly synchronized.
    Paul
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • Why is it that when I saved the waveform of my acquired signal into a wav file, the output waveform of my saved file turn out to be different from my input signal?

    Hi all,
    I am currently doing a heart sound analyzer project. I acquired signal using NI USB 6008 continuosly. My program is able to saved the acquired signal into a wave file. But when I browse open the saved file, the output waveform did not look the same as the acquired input signal and also the sound of the heartbeat captured cannot be heard from the loud speaker though I have saved the file as a wav file. I am not sure if the method i use to save the acquired data as a wav file is correct.  I have attach the print screen of the differences of the output I have notice and the program I have created. I would be glad if anyone here is able to troubleshoot my program.
    Thanks. 
    Attachments:
    heart sound analyzer.zip ‏257 KB

    Hi Brett Burger,
    Thanks for your reply. For your information, I have set the sampling rate as 10000 as for the sound format, I have set the bits per sample as 16 bit, the rate as 11025 and the sound quality as mono. I tried using your method by changing the sampling rate as 8K but still my program encounter the same problem.
    I wish to also create a button that is able to generate a preformatted report that contains VI documentation, data the VI returns, and report properties, such as the author, company, and number of pages only when I click on the button.  I have created this in my program, but I am not sure why is it not working. Can you help troubleshoot my program. Or do you have any samples to provide me. Hope to hear from you soon.
    Many thanks.
    Regards,
    min
    Attachments:
    Heart Sounds1.vi ‏971 KB

  • UDF for Find the First letter from Input

    Hi Masters,
    I want find the first letter from input, Can any one help me on this..UDF or any solution.
    Ex: E2HB means - Alpha Letter is the first
    Ex: 1234 means - Number is the first
    Thanks,
    Siva

    Hi Siva,
                I just want to clarify this doubt, you want the first character of the string you pass to the UDF i.e if input="E2HB"  output="E"   and if input="1234"   output="1". If my assumption is correct you can try the UDF "firstChar" I have shown below this gives exactly the output you want
    public class firstLetter {
         public static String firstChar(String s)
              if(s==null)
                   return null;
              if(s.equals(""))
                   return s;
              String t="";
              t+=s.charAt(0);
              return t;
         public static void main(String[] args) {
              String s1="E2HB",s2="1234";
              s1=firstChar(s1);
              System.out.println(s1);
              s2=firstChar(s2);
              System.out.println(s2);
    Regards
    Anupam

  • Phase difference from 2 signals(HELP!)

     Hi! I'm having trouble finding accurate phase difference between two signals.. one signal is from the input serial communication arduino and the second signal is a simulated signal. I want to find the phase difference between these two. I've googled a lot and found many similar threads of phase difference measurements, but it won't work.
    The phase angle from the simulated signal is correct but the reading of the phase angle from the input signal keeps changing and I could not find an exact phase angle or phase difference.
    What do you think I should do?

    Doing phase difference measurements using two completely separate sets of hardware is in general a bad idea. You need to think carefully about how to synchronize the acquisition clocks of the computer vs. the Arduino. Better would be to measure your signal and generate your reference using one system, i.e. every time through the Arduino's outer loop, have it measure the voltage and also generate a reference level based on the internal clock, and transfer both to the computer.
    That said, unless you know the signal frequency very precisely a priori, the phase difference between a synthetic reference and a measured signal will inevitably drift with time, at a rate proportional to the difference between the nominal and actual frequencies of the sample signal. 

  • Estimating resonant frequency by sweeping the frequency from 100 Hz to 500 Hz

    Hi
    Actually, I need to do open loop system to vibrate the structure from 100 Hz to 500 Hz to find the resonant frequency. I have tried to build the code that can actuate ( excita) the structure and measure the signal fron the sensor ( capacitive sensor). Initially, I have tested my code by generating the signal from AI12 and connected that signal to the AO0 to evaluate the code. However, I have faced two problems. firstly, the stimulus signal in acquiring code (input) is delayed by around 20ms as can be shown in attached file. Secondly, generating signal is changing every 0.01 s where start from 100 Hz to 500 Hz. in other words, at the beginning i will have one cycle and the cycle will increase every 0.01s. My question, how i calculate the FFT for each 0.01 s and at the end showing the whole result in one graph to show the resonant frequency. Could you please help at this point.
    I have attached the the Vi file.
    Khalid 
    Solved!
    Go to Solution.
    Attachments:
    Untitled.png ‏78 KB
    Add_1.vi ‏66 KB

    Hi Nabilah, 
    Thank you again fro the the help. However, I have done what you have mentioned but i noticed in the FFT graph that estimate the frequency does not give me the right values. I have tested the code by generating the signal from AI12 and connected that signal to the AO0 to evaluate the code as can be shown in the attached file.the result what I expected from the code is to have the same amplitude at each frequency where I have connected the signal that generated from Ao0 to Ai12(channel). For example, if i run the code with sweeping frequency from 50 Hz to 500 Hz and amplitude 1 V, the result in FFT has to be at each frequency has the 0.7 amplitude (RMS).
    Also, I have tried to understand the main function of Trigger.vi. Is this for detecting the signal from the input channel and generate signal as fast as possible?
    I have attached modified code.
    Khalid  
    Attachments:
    photo.JPG ‏2350 KB
    Synchronized AI and AO FRF.vi ‏43 KB

  • I need to measure the frequency of a signal on Pin 39 (PFI 15) of a PXIe-6361 module.

    I need to measure the frequency of a signal on pin 39 (PFI 15) of a PXIe-6361 module.  All of the digital I/O pins are already assigned and in use.  The signal frequency range is 50KHz to 500KHz.  I have tried all of the sample programs for DAQmx Counter/Timer frequency measurement.  If I modify them to use my hardware, I get run-time errors with conflicts with resources already assigned.

    Hi Julia,
    Thanks for the response.  As I stated before, I have tried all of the examples available that apply.  There are only three and one of those uses two counters.  The two I have tried are:
      Examples/Hardware Input and Output/Counter Measurements/Digital Frequency/
          DigFreq-Buff-Cont-ExtClk-ArmStart.prj     and
          DigFreq-LowFreq1Ctr.prj
    These examples default to using what appears to be traditional DAQ hardware (Dev1/ctr0 and /Dev1/PFI0).  I changed the counter to mine (/PXI1Slot3/ctr3) and directed my signal source (PFI15 on pin 39) to the counter.  No matter what I tried would not run.  They would always compile but gave run-time errors ranging from resources already in use to “external trigger required”.  I have no external trigger source and, if I did, there is no indication of how to assign it to the counter.  NI has a very good X Series Users Manual that tells all of the great things you can do with the hardware, but there is NO CLUE how to do any of those things!!!!  I know that some NI DAQmx functions use hardware resources that they never tell you about.  I discovered that when trying to produce a single output pulse from a timer using counter #0.  (Which, by the way, no one at NI could tell me how to do it.)
    Measuring frequency should be very simple.  The unknown signal is routed through a precise gate to a counter, and then the counter is read.  NI DAQmx uses the opposite approach of using my signal as the gate and counting their internal source.  However, the examples would not let me use the internal reference sources.
    To answer your other questions, I am not performing any other measurements at the same time and the counter is not being used for anything else, period.
    Any help would be greatly appreciated.  Thanks again.
    Wayne K.

  • Acquiring two input signals simultaneously

    Hi,
    I have an LVDT and a force sensor (both attached to a motor) plugged into my SC board and I am trying to read out & save the output data from both sensors simultaneously while the motor is in motion. The SC-2350 board is connected to the laptop via DAQCard 6036E . Two questions:
              1) in my block diagram, the DAQ assistant blocks for both sensors are wired to their respective waveform graphs (one for the LVDT signal and one for the force signal), the whole being included in a while loop (which remains true until the motor stops moving). When running the program, only one signal is read out at a time and I have no control on which signal is transmitted (this seems to occur in a random fashion). Do I need to "link"/synchronize the two DAQ assistants in some ways so that both signals will appear simultaneously? If so, how would it be possible?
              2) ideally, I'd like to read out both input signals on the same graph (with 2 different y-scales but the same time scale) to observe the phase shift. I tried to "bundle" the two data output coming from the two DAQ assistants but it resulted in an error saying that the two outputs were of different types. Is there a way to plot these two physical quantities on the same graph even though they're different and come from different sensors?
    Thanks for your help!
    Thibault.

    Hello Dani,
    I assume, based on your position sensors and the image you posted, that you are using counters to acquire your data. Is this correct? If so, it is important to note that you cannot add multiple counter operations to a single task because they have different timing requirements and all channels in a single task must share the same timing and triggering. In fact, if you attempt to add a second counter channel to a DAQ Assistant for a counter operation, you will receive the following error when you try to close the configuration window:
    So, you will have to use two different tasks to acquire your counter data. You can do this either by using two separate DAQ Assistants or by using two different tasks in the NI-DAQmx sub-VIs in LabVIEW. Since you are trying to compare the phase difference between the two measurements, you will also need to synchronize the operations so that you are reading from both counters simultaneously. There are several resources online which discuss synchronizing counters, and I have linked some that I thought might be useful below:
    KnowledgeBase 1JPES6LL: How Do I Synchronize a Buffered Quadrature Encoder Measurement to a Signal
    KnowledgeBase 3GGATSCC: Hardware Counter Start Trigger for Counter Synchronization
    It would probably be easier to use the NI-DAQmx Sub-VIs to implement this synchronization because they give you more control over specific parameters of your task. You can use the NI Example Finder to browse some examples which use the NI-DAQmx sub-VIs for counters. You can open the NI Example Finder by going to Help>>Find Examples... in LabVIEW. Once in the NI Example Finder, you can find the counter examples by selecting the Browse tab and navigating to Hardware Input and Output>>DAQmx>>Counter Measurements; then you can select the Position category (shown below) to find the Position measurement examples.
    Let us know if you have any other questions about taking position measurements.
    Message Edited by Matt A on 04-09-2008 03:55 PM
    Matt Anderson
    Hardware Services Marketing Manager
    National Instruments
    Attachments:
    Error -200147.jpg ‏32 KB
    Example Finder Position.jpg ‏124 KB

  • Input signal not in range w1907

    Input signal not in range hp w1907

    Hello @daboxman,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I have read your post on how your monitor is displaying an error message: "Input signal not in range", and I would be happy to assist you in this matter!
    I am providing you with some steps you can try below:
    Step 1. Unplug the power cord from the back of the monitor and the wall
    Step 2. Hold the power button down for at least one minute
    Step 3. Plug the power cord back into the monitor and then into the wall outlet (not a power bar or surge protector)
    Step 4. Press the Menu button on the monitor
    Step 5. Navigate to the Factory Reset option and select it
    Step 6. Try a different cable connecting your monitor to your computer
    If the above steps did not resolve your issue you can try the monitor on a computer or other device to see if the issue persists. If the issue continues, please call our technical support at 800-474-6836. If you live outside the US/Canada Region, please click the link below to get the support number for your region.
    http://www8.hp.com/us/en/contact-hp/ww-phone-assist.html
    I hope this helps!
    Have a great day
    MechPilot
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping!

  • How I can measure frequency of TTL signal without external clock?

    Hello,
    I want to measure frequency of TTL signal using PXI-6254 or PXI-6713, without using external clock.
    Frequency will be up to 100kHz. How I can use internal counter of 20MHz or 80MHz?

    Hi Yuta K,
    You have not stated what software you want to use for this measurement, but in case you're using LabVIEW, please go to the Example Finder (in LabVIEW go to "Help >> Find Examples"). 
    In the Example Finder, you make sure the "Browse" tab is stil selected, and than you go to:
    Hardware Input and Output >> DAQmx >> Counter Measurements >> Digital Frequency
    Here you will find some good examples of measuring a digital frequency with 1 or 2 onboard counters.
    If you need additional information, please let us know!
    Best regards,
    Peter S

Maybe you are looking for

  • IPod touch 3rd Gen. will not show up iTunes or My Computer

    I have reinstalled iTunes, I have tried recovory mode, I have the latest model, I've tried using other USB ports, I've done just about anything I can. I have had this iPod for like 3 years and have never had an issue. Now all the sudden it will not c

  • Upgrade - SAP XI 3.0 to PI 7.0

    Hello, Can you please let me know the defined steps in upgrading XI 3.0 to PI 7.0?  I checked the blogs on this.  But couldn't get the right infomation on this.  Can any pass on this information? Thanks. Srinivas.

  • Problem with instation APEX ..........

    Hello, When i am trying to install Oracle Database 10g Express Edtion I am getting this operationg system error : <the system is noth at the correct service pack level for installing oracle database 10g Express Edition> anybody faced this problem or

  • Video Encoder Card ??

    Currently I have an ATI 800Xt i believe. I want to put in a 2nd video card that is capable of inputing video. I want to be able to receive video and audio signal from another computer, tv, or really any device and be able to input and encode for live

  • After updating my ipad to version 5.1.1 wifi is gone please help

    Hi, after updating my Ipad 1 to version 5.1.1 my wifi had stoped working, i tried many times to rest the network setting but no use, please advice regards ameem