Calculate Phase from Noisy Sine Input

Hello,
I have a sine wave being read in real time into my VI and I'd like to calculate how out of phase it is with a simulated sine wave. I followed the example on http://digital.ni.com/public.nsf/allkb/F4BB644ECCA​595D886256FFE00722E29 and the phase is still all over the place and I'm assuming it's not being estimated correctly. The simulated sine I'm comparing it to is from Sine Waveform.vi with a constant phase.
These calculations worked when I had two simulated sine waves for testing. Any insight on what I should do is much appreciated.

First you need to define what you want to do.
1. There is no meaningful definition of a phase relationship between two signals of different frequencies.
2. The way you create subsets of the signal data makes it almost certain that the phase returned by Extract Single Tone Information.vi will differ on each iteration.
The graph image shows the first part of the signal passed to Extract Single Tone Information.vi on two successive iterations of the for loop.  Whilethe difference is not large, it is clear that the initial phase of the two signals has changed. The array image shows the outputs of Extract Single Tone Information.vi for the 60 Hz signal and for the distorted signal. Note that the frequency of the signal is not 60 Hz and that it varies slightly from iteration to iteration. The phase shows approximately a 22 degree progression with each iteration with some variabillity probably due to the changing frequency.
Lynn

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

  • Obtaining general trend from noisy data

    Hi
    I am measuring the bending strain of a wing which will be 'plucked' to cause it to vibrate. Firstly, I need to record the strain measurements versus time and ouput them to a file. In LabView I can't seem to adjust the graph so that it gives amplitude versus time in seconds - its in 'absolute time'. (I'm very new to LabView...)
    Next thing I need to do is to filter the data so that it gives a nice smooth curve (from which the damping ratio can be found). i.e. for example, if I have a really noisy sine wave, I want a filter that will remove the noise leaving the trend behind which represents the amplitude and phase accurately. Is there an in-built filter for this? There are various filters for certain applications which affect the amplitude and phase and I am really not sure which one would be best for my application. Thanks in advance.

    The time axis of the graph can be changed by using the properties.  Context-click on the graph and the dialog should allow you to change from absolute time to relative time or to a numeric format for the axis.
    The trend issue depends on the nature of the signal and the nature of the noise.  Averaging is easy and often the first thing to try.  Smoothing filters or sliding window filters can be used to smooth the data and reduce the effects of noise.  If you know what the signal waveform should look like, fitting a function to the data and deriving the parameters from the fitted function is good.  From your description I suspect that you may have combinations of several types of signals and fitting may not work well.
    Lynn 

  • Calculate SNR from Power spectrum (Urgent)

    Hi. I have used simple blocks like PSK modulator,white noise,phase noise,tone interference, up and down converter and demodulator in a chain to simulate a noisy channel and also perform modulation in  LabVIEW. I would like to know is it possible to calculate SNR from the power spectrum live for this channel? Is there any function avaiable in Modulation toolkit to calculate SNR from Power spectrum?
    Thanks
    Solved!
    Go to Solution.

    Hello en99,
    The Spectral Measurements Toolkit provides VIs to calculate the 'Power in Band'.  By taking the ration of this VI and the apparent noise level, I believe you should be able to calculate the SNR.
    The screenshot shows where this VI can be found:
    George T.
    Applications Engineering Specialist
    National Instruments UK and Ireland

  • [NXT-TETRIX] calculate power from joystick

    Bonjour à tous, actuellement en Terminal Sti2D SIN j'ai pour projet de réalisé un robot explorateur l'aide du kit Tetrix et de labview ( 2012 ) et du toolkit NXT.
    Ma mission est de réaliser le controle à distance du robot à l'aide d'un joysitck. J'ai pu testé le controle à distance du robot avec le programme de test du Project Robot. Mais étant donné que cela est tout fait ça ne convient à mon professeur qui veux aussi une face avant avec l'états de tout les capteurs du robot.
    Donc après quelque recherche dans labview j'ai trouvé la fonction "calculate power from joysitck". Mais après plusieurs tests je ne sais pas comment utilisé cette fonction...
    Donc je suis ici pour requêter une aide de votre part car je suis vraiment perdu...
    De plus nous l'avons équipé d'un d'un bras avec deux servos pour récupéré une balle. Donc vous savez comment paramètré les boutons depuis une Vi je prend.
    Je vous remercie d'avances
    Cordialement Flores Valentin

    Merci pour cette aide mais j'avais déja lu cette page et malheureusement cela n'a pas marché. Je ne comprend pas pourquoi mon Joystick ne fonctionne pas ( j'ai mit mon joystick en piece jointe. Il s'agit du joystick Free ). Cette Vi fonctionne en Cible Nxt ou cible PC ? je travaille en cible PC pour avoir la face avant fonctionnelle pour l'état des capteurs. J'ai rajouté en piece jointe le programme que j'ai réalisé avec cette fonction.
    Pour ce qui est de ma dernier question : mon robot est équipé de deux servos ( piece jointes ) et j'aimerai savoir si depuis la meme VI je peut les controler avec les boutons de mon joysticks
    Flores Valentin
    Pièces jointes :
    joysticks.JPG ‏892 KB
    robot.servos.JPG ‏889 KB
    programme.JPG ‏23 KB

  • How can I measure the phase difference of two input signal?

    Hello,
    I'm trying to measure the phase difference of two input sine waves with the
    same frequency.
    Is there anybody how I can do this with labview?
    Thanks,
    Dae-han

    This is my case! I have TDS3034 which can measure phase. However when I open Read Waveform Measurement vi that comes with tkds30xx.llb, I have a number of options under "measurement function" but not the phase measurement. May be I need another vi to do this?

  • How can I remove the moon phases from iCal?

    I need to remove ALL the moon phases that appear in iCal 5.0.3. Every time iCloud updates it sends 6 to 10 moon events to my MacBook Pro. Going forward 3 0r 4 months, there are too many moon phases. How can I remove the moon phases from iCal?
    I am on a MacBook Pro 2.2 with 4 GB using Mountain Lion 10.7.5.

    Try:
    items.RemoveAll(s => string.IsNullOrEmpty(s));
    Or you can filter them out using where:
    var noEmptyStrings = items.Where(s => !string.IsNullOrEmpty(s));
    Having fun with custom collections!
    Basics of .NET Collections in C#
    How does it work in C#? - Part 3 (C# LINQ in detail)
    Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP]

  • 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

  • What to do for automatically change over of PHASE from 1 to 2  in case of multilevel method of depreciation.

    Hi all
    As per the statutory requirement we want to maintain Multilevel method of depreciation in which we have maintained two phases given as below-
    Dep/int.
    phase
    base method
    decl. bal method
    prd cont
    mutilev. Method
    change. Me
    change over % rate
    ordinary dep
    1
    ZMR1
    0
    001
    Z02
    2
    0.3
    ordinary dep
    2
    0011
    0
    001
    001
    0
    0
    Because asset need to depreciate upto 70% of its net book value on the basis of SLM percentage base as per phase 1.
    After that it must shift to phase 2 ,where depend upon remaining useful of that asset , balance value of asset need to be spread over.
    But while testing in, it is not automatically shifted to phase 2 directly once asset reaches its 70% (ie.once condition given phase one get exhausted)
    Then pls guide me what to do for automatically change over of PHASE from 1 to 2 ??
    Thanks and regards
    Manjusha  G.

    Hi Manjusha,
    To meet your requirement, you have to mention changeover in T code AFAMA-changeover method "2" and the changeover % 70 and in second line you can give phase 2 changeover within planned life and give your depreciation methods after changeover.
    Refer the sample screenshot.
    Hope it solves..
    Regards,
    G.Sethuraman

  • How to stop the Calendar from editing your input?

    How to stop the Calendar from editing your input?

    I am constantly finding that Calendar Version 8.0 thinks it knows what I want to type but it incorrectly takes numbers and days and times out of my input and changes my appointments. I hate this new supposedly "smart" feature. Even when I edit my event correctly a second or third time it rewrites my input incorrectly again. I have to use my iPhone to override the annoying editing on my mac. I am ready to find a new calendar program unless Apple allows users to input what they want without their information being incorrectly edited.

  • Upgrade EHP4 in MAIN_IMPORT phase from last 3 days

    Hi,
    I am doing the Upgrade from EHP3 to EHP 4 by the saint.
    But the server has been in the main import phase from last 3 days and there is no error and no false log in the trans folder.
    But during the process SAP server has restarted once and the machine on which we are doing saint has been restarted three times.
    Server has
    CPU.:- 8
    RAM:- 8 GB
    Swap:- 24GB
    Processor;- Xeon(R) 2.27 GHz
    Can anybody please let me know, what are the ill effect the upgrade has due to these restarts ?
    And why is it taking such a long time to do upgrade.?
    Thanks,
    Abha

    Hi,
    >
    > I am doing the Upgrade from EHP3 to EHP 4 by the saint.
    > But the server has been in the main import phase from last 3 days and there is no error and no false log in the trans folder.
    > But during the process SAP server has restarted once and the machine on which we are doing saint has been restarted three times.
    >
    EHP4 upgrade from SAINT is not possible if you are upgrading SAP_APPL and EA-APPL package.
    Thanks
    Sunny

  • Cannot delete old sessions from SM35 - Batch Input...

    Cannot delete old sessions from SM35 - Batch Input...                
    We have an issue, we are trying to delete old batch input sessions via SM35 and no
    matter how hard we try we cannot get rid of them. They are still in status "In Process" but they are status incorrect.
    Those sessions have long finished and some are more than 5 years old.
    We have tried running rsdbcreo and RSBDC_REORG but it only returns with
    Temse Error, running SP12 does not list any inconsistencies. Basically we want all jobs in SM35 that ran this year only available in the SM35 queue, we have sessions that have run from year 2004 to 2008 we wish to
    delete.
    Anybody experience anything similar or have any advice, sorry this is an environment that i have inherited and wish to cleanup.
    We have checked the following notes 706478,76422,706478,76422 and many more.
    Thanks
    Suleman

    When you try to delete, you will be asked whether you want to delete logs too.
    Here try with 'No'.
    hope this helps

  • HT4352 Why does my sony tv pick up my apple tv but my new LG has no signal from the HDMI input?

    Why does my sony tv pick up my apple tv but my new LG has no signal from the HDMI input?

    Hi midknightsurfer, 
    Welcome to the Sony Community! 
    Please try the following troubleshooting steps.
    Check for a firmware update for your router. 
    Make sure the router is broadcasting the Service Set Identifier < SSID >.
    Please try other device/s. Connect them to your network (wired/wireless) then test those units. 
    If my post answers your question, please mark it as "Accept as Solution"
     

  • How do I calculate days from two different dates?

    Hi all,
    How do I calculate days from two different dates?
    my requirement is to pass the number of days to target field from two dates.
    Current date :  14/04/2010
    Standard date: 01/01/1957 is the standard = day 0
    Is it possible in graphical mapping with out  udf?
    Plz help me on this I have donu2019t have much knowledge on JAVA.
    Thanks

    Hi Yadav,
    Probably this is not the correct forum for XI / PI .
    You can post the same to...
    Process Integration (PI) & SOA Middleware
    Hope this helps.
    Regards
    Raj

  • How do I calculate days from two different dates in XI/PI?

    Hi all,
    How do I calculate days from two different dates in XI/PI?
    my requirement is to pass the number of days to target field from two dates.
    Current date : 14/04/2010
    Standard date: 01/01/1957 is the standard = day 0
    Is it possible in graphical mapping with out udf?
    Plz help me on this I have donu2019t have much knowledge on JAVA.
    Thanks

    Hi Yadav,
    Probably this is not the correct forum for XI / PI .
    You can post the same to...
    Process Integration (PI) & SOA Middleware
    Hope this helps.
    Regards
    Raj

Maybe you are looking for

  • How do I paste a jpg larger than 150 dpi into Illustrator?

    I have Adobe Illustrator CS5 and run OSX 10.6.8 2.4 GHz Intel Core 2 Duo with 4GB of RAM and my question is this -- when I copy a jpg image from my Adobe Photoshop (Version 8.0) and bring it into Illustrator for a project and try to paste it in, it a

  • How to sync over all devices

    All my devices were synced for the longest time. Yesterday I upgraded my internet services so the iMac was out of commission for about 6 hours. Now I only receive iMessages on my iPhone and iPad. I can send from my iMac, just not receive though. I've

  • Error Debug on SQL Developer

    Hi all, I´m here again to ask for your help :-| I´m using the SQL developer 1.0.0.15.27. when I run a procedure, it works fine, but when I try to debug this procedure, the following error occurs: Connecting to the database userproc. Executing PL/SQL:

  • Toggle layout in the virtual console

    How can I set a keyboard shortcut to change a layout from one to another in the virtual console?

  • Audio export- levels change on several clips

    This is driving me crazy! Using FCP 5.1.4... Upon exporting the entire show for DVD--audio as an AIFF, the levels of several clips change and become really loud. A work around I used when I made the last version of the dvd was copying each clip and p