How to measure relative phase of several sine wave inputs

I'm using a USB-6229 to acquire 10 sine waves, and I would like to output their rms amplitudes and relative phases.  The rms amplitude is not a problem, but I wasn't sure how to go about determining the phase of one signal relative to another.  Do I need to use the Frequency Response analysis step?  Thanks.

Hi,
There are some functions you can use to measure the relative phase. You can either measure the phase of every signal related to another one using like you said: a frequency response function step. Using one of these to functions might do the job: “Frequency Response, Express VI” or “Frequency Response Function (Mag-Phase).vi, if you are working in LabVIEW. The first one of these functions "Frequency Response" is also found in signal express and is the one I think you are refering to.
Although this functions is use for a stimulus response approach they will give you the relative phase of Y with respect to X, “Typically, time signal X is the stimulus, and time signal Y is the response of the system.  in signal express your options is the frequency response step.
I would also like to point you to some references that might serve you as reference when doing spectrum analysis: An Overview of Frequency-Domain Measurements and FFT Analysis.
Message Edited by Jaime F on 02-06-2008 11:42 AM
Jaime Hoffiz
National Instruments
Product Expert
Digital Multimeters and LCR Meters
Attachments:
frf.png ‏37 KB

Similar Messages

  • How do i measure the frequency of a sine wave using a field point counter module

    I need to measure the frequency of the sine wave using field point. is it possible and if yes how. do i need to convert the sine wave signal to square wave. Please let me know.

    It probably would be easiest to convert the sine wave to a square wave with a simple external circuit and then use a counter module to measure the frequency. There is a shipping example in LabVIEW that shows how to measure frequency with a FieldPoint Counter module.
    JRA

  • How do I synchronize a pulse output to a sine wave input on a pci-6602 card?

    I have a sine wave from a function generator as the input on the source of a counter. Input frequencies vary from 2-60 kHz. I want to produce a pulse train at a different frequency (10 Hz), but in phase with the sine wave. I have only been using Labview 5.1 for a short time. I am using the PCI-6602 card with a SCB-68 connecting block.

    Hello;
    Unfortunately, you can't connect a analog sinewave to the counter source. Counters only work with digital TTL signal type. To accomplish that task, you will need a MIO board working in sync with the 6602 you already have.
    Regards
    Filipe A.
    Applications Engineer
    National Instruments

  • Will PFC power supplies work with SIMULATED sine wave inputs

    Will PFC power supplies work with a SIMULATED sine wave input from a UPS unit?

    Not sure whether you really meant "PPC" and have never heard of a PFC power supply, but if your question is whether a Mac PPC computer will run on a UPS, then the answer is definitely "yes" as my machine has shown twice in the past 12 months and several times in the past on the G5 tower and with a G3 B&W.
    I haven't dragged the old analog scope off the shelf to see what the UPS output really looks like, but I suspect it is no dirtier than the mains power in my neighborhood.

  • How to measure the phase of a sinusoidal signal?

    I need to measure the frequency and the phase of a sinusoidal signal. I tried to use the Advanced Single Tone Measurements.vi but the phase measured in each iteration (each second) keeps changing (the measured frequency is not in integral Hz, so the first point of the next iteration is at a location different from the location of the first point of the current iteration...I guess this is the reason). How can really measure the phase of a signal (not always changing with time)? When I change the phase of the input sinusoidal signal, the measured phase should be changed though.
    I'm using LabVIEW 7.1 and PCI-6110.
    Thank you very much!
    Marlon

    Marlon,
    Without DAQ hardware I cannot run your VI. DAQmx is not supported on my platform (Mac OS X), so I cannot examine your VI in detail.
    1. The AI VI will wait until it has the amount of data specified. So if you are collecting one second's worth of data at a time, it will wait one second before completing. The 50 ms Wait will run in parallel, so it has no effect on the timing in this case.
    2. Continuous AO is possible, depending on the hardware you have. However, I have no experience with implementing it. Since your frequency is such that you do not end the AO data segment at the end of a signal cycle, you need to be careful to avoid discontinuities in the signal sent to the AO.
    3. There is no data dependency between the AI and the AO. It is possible that the AO could run after the AI in any given iteration of the loop.
    4. Your phase reference should be the excitation signal. The best method of evaluating the response of the beam would be to use two sensors, one at the shaker and one at the tip. Then measure the phase shift of the signal at the tip with respect to the shaker signal. If two sensors cannot be used, either measure the voltage sent to the shaker or use the simulated signal that you send to the AO as the reference. In either case you would need to compensate for the response of the shaker.
    5. Consider the phase shift in the filter. The steady state phase shift is about 14 degrees. The initial transient lasts about 5 cycles of the input waveform.
    6. Your simulation sampling rate is 1000 samples/second. While this satisfies the Nyquist criterion for a 379 Hz signal, it does not give you much data to work with for the phase information. If the hardware will handle it, I would go to 10000 samples/second.
    Lynn

  • How can I get 'sync' signals for sine wave out? [FPGA USB 7856R]

    Hello,
    I'm Sean Ahn using NI 7856R, USB FPGA with LabVIEW 2014.
    I'm trying to make 'sync' signals for sine wave of adjustable frequency, like general function generator's sync out.
    I use sine waves whose frequency is feedback-congtrolled between 25~30 kHz and need sync signals of square wave.
    Like [1] below, when I try resettng two wavefom-generators, sine and sync signals are not perfectly synchronized.
    And everytime I adjust sine's frequency, the phase difference between sine and sync changes arbitrarily 
    In case of [2] using 'zero-crossing detector', I have severe jitter of sync signals not suitable as 'sync' signals for other parts.
    Please, give me some help.
    Thanks in advance
    Sean Ahn
    [1] Reseting two waveform generators
    [2] Zero-crossing detect

    Here’s my issue.  When I try to move any data between my PC and the iPad2 I receive an error message that states that “the [sync] session could not be started with the ipad, Please disconnect and reconnect the iPad and try again”
    I have tried again and again by various methods etc .  and all I get is the same message when I attempt to sync, backup or update the iPad. 
    I have tried the following AND FAILED:
    Deselect all Apps, Music etc in iTunes, then attempt to sync
    Disable and enable the iPad in device manager and restart itunes and try to sync again
    Disable and enable Apple Mobile Device Services and sync/backup/update
    Run iTunes as Administrator
    Reboot all devices (iPad buy pressing two buttons at once)
    Turn off all security and reboot and sync
    Connect directly to internet without a router
    Tried to sync with all wireless turned off and in airplane mode
    Running iTunes Diagnostics...... nothing all test passes
    Changing USB ports and cables
    Removing my SIM card and rebooting and trying to syc
    Trying to sync via wifi only
    Turning off all icloud services
    Uninstalling all Apple Software and reinstalling again
    I am syncing to a 64bit  PC running Win 7 Premium with all the latest updates, all firewalls off. WiFi and direct connect ethernet to Internet service with and without router.
    I am trying to Sync an iPAD 2 running iOS version 5.1.1 (9B206)
    I am trying to update from iOS 5.11 to 6.01 by using Itunes 11.0.0.16.3 in a USB or directly through the iPad via wifi.
    Please help as everything I have tried has failed.

  • How to measure the slope of a triangle wave

    Hi everyone,
    I'm looking for a way to measure the slope of a triangle wave, which changes every half cycle of the wave. I have the triangle wave out of phase by 90 degrees so that it models the behavior of a cosine wave, and essentially all I want is a way to measure whether the slope is positive or negative. The idea is to use this information to stop another signal running at the same time at the halfway point of the cycle of the first signal, so the first wave can continue back to it's starting point and the second will start again at the completion of the first wave (as it begins the second cycle)
    I'm using LabVEIW 8.2.1 if it makes a difference
    Thanks,
    Ben
    PS. Is there a way to close threads you've previously posted on this forum? I started one yesterday (or possibly the day before) with a fairly vague question in it and it's now redundant after I made some headway on my own, and I don't want to clog the forums up

    I'm not sure how you're using this data to control anything, so I'm not sure what the best implementation would be.  You will not be able to get any data out of the loop until it finishes (gets a True value at the Stop If True terminal (sort of)), so if you want to have the loop running constantly, you need to put your control code in the loop with the generated data.  Otherwise, you could generate your boolean array, and then wire it and your control array into a for loop, and do a point by point comparison to see if you should be controlling.
    The new example.vi has two examples to give you a rough idea what I'm talking about.
    Message Edited by JeffOverton on 06-12-2008 12:19 PM
    =============
    XP SP2, LV 8.2
    CLAD
    Attachments:
    Example2.vi ‏18 KB

  • Measuring Superimposed Frequencies on a Sine Wave

    Hi,
    Just looking for advise on the best way to measure superimposed frequencies on my raw data. The raw data (voltage versus time) is ultimately a noisy sine wave with a frequency of 1Hz. I need to determine where the noise is coming from, i.e. is it vibrational, electrical or surrounding noise, hence requiring the frequency of the noise if possible.
    Any advise on the best way of filtering the data would be appreciated. Currently I am using a butterworth filter with a cutoff setting of 1.5Hz. The original data was sampled at 1.5KHz so the noise was measured and so could be filtered during postprocessing.
    Also when filtering I don't want to loose important data i.e. sudden peaks or drops.
    Regards,
    John.

    John,
    Have you tried spectrum analysis of your data? That will give you the frequency content of the signal plus noise. One peak will be at the 1 Hz sine signal and other peaks will correspond with the supeimposed signals. With a 1.5 kHz sampling rate you would get information on frequency content up to the Nyquist frequency of 750 Hz. A peak at 50 or 60 Hz will likely be power line frequency interference. Gears, bearings, and motor armature slots produce characteristic frequencies which are related to the rotational speed.
    Lynn

  • How can I generate a smooth continuous sine wave

    I am trying to build a single frequency active noise control system to
    control a tonal acoustic disturbance. In order to do this I need to be able to
    drive a set of loudspeakers with a single frequency waveform which will be
    continuously adapting at each sample.
    The control system will ideally be implemented to control low frequency
    tones, 700-1000Hz, and thus sampling rates of below about 4000Hz should be
    sufficient for the task.
    However, when trying to continuously generate a waveform at an update rate
    of 4000 updates/sec the resulting sine wave output from the DAQ card when
    observed on an oscilloscope looks very much like a digital signal (a sine
    wave containing large "steps" in the voltage), as if there
    has been no
    smoothing in the DAC. Playing this through a loudspeaker results in a very
    "buzzy" sound and not a single frequency tone. Only when the update rate
    is much higher >50000 updates/sec, does the signal start to sound like a
    single frequency tone.
    I would much rather be able to implement the control system at a sample
    rate of 4000Hz than >50000Hz. How do I therefore guarantee a smooth analog
    sine wave output at the lower sample rates? Is this a labview problem, or
    a hardware problem?

    Is this a labview problem, or
    a hardware problem?"
    Problem?
    Well it actually the nature of the beast. As a rough rule of thumb, the signal starts to become smooth when the update rate is at least 10X the highest frequency present in your signal.
    The human ear is amazing in its ability to detect (hear) higher frequency components. This is the buzz you hear.
    If you want to keep your update rate low, then you may be able to get away with a low pass filter on the output from your DAQ device. An appropriately size cap and resistor may be all you need.
    Ben
    Ben Rayner
    Certified LabVIEW Developer
    www.DSAutomation.com
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Ni5401 how to generate 4 cycles of a sine wave at a time

    I'd like to generate 4 cycles of a 100kHz sine wave using a ni5401.  I'm currently able to generate a sinewave at 100kHz countinuously, but I need to stop after 4 cycles and then do some other processing and then restart another 4 cycles and then stop etc...  any help is appreciated

    hi htch,
    Unfortunately this isn't really the ideal application for a 5401. This application is something that could be accomplished fairly easily with an arbitrary waveform generator, or even a multifuction DAQ card, as long as it had a sample rate of at lease 2 MS/s. The 5401, however, is an arbitrary function generator, which means that it is meant to generate continuously, not a finite number of samples. 
    What you could try to do is use software timing to exit the loop after a certain amount of time has elapsed. However, you must keep in mind that software timing is not as accurate as hardware timing, and you may not generate exactly the amount of samples that you expect. 
    Regards,
    Leah
    National Instruments
    Applications Engineer

  • How to take a derivative of a sine wave?

    I know this is probably really simple and I am sure I am doing something stupid but please could someone help me..
    I am just trying to plot the derivative of a sine wave on the same graph as the original sine wave. It seems to be working (it is displaying a cosine wave) but the amplitude is way off.
    Please could someone just point to me why the amplitude is off.. the original sine wave is going between 1 and -1 but the derivative is between 60 and -60
    Solved!
    Go to Solution.

    Just speculating, but...
    The derivative of a 10 Hz sine wave should have an amplitude of about ±60 (2*pi*10).
    The Sine Waveform VI has a default frequency of 10 Hz.
    Coincidence?
    Best Regards,
    John Passiak

  • How to measure static phase noise by N4440A spectrum analyzer

    Hi, i am new in the RF measurement, and i have to measure the static phase noise, stray and pulse modulation of a DUT, please explain me how to use the spectrum analyzer (N4440A) for this purpose. It will be very helpful for me if you explain the steps for the measurement. Thanks and best Regards

    Hi Ikram!
    This is Peter Erskine in Applications Engineering. I was not able to find any information on a N4440A Spectrum Analyzer. However, I was able to find information on a E4440A spectrum analyzer. This is a spectrum analyzer developed by Agilent, and you can find the user manual here. 
    If you are looking to use this spectrum analyzer in LabVIEW, National Instruments has the E4440A instrument driver page that will help you out. If you have any additional questions about how to use LabVIEW with this analyzer, please let me know. I will be more than happy to answer any questions you may have.
    However, if you are looking to get help on the spectrum analyzer itself (without the use of LabVIEW), I would suggest contacting Agilent's technical support either by phone or on their forums for additional information.
    Have a great day!
    Peter E
    Applications Engineer
    National Instruments

  • How to measure the phase shift using AC analysis?

    Hi,
    I have a simple RLC circuit consisting of no more than 4 components. If i hook up the network analyser function to the circuit and read the S11 values, i can see a change in the input impedance and a phase shift when i run it across a range of frequencies.
    I am trying to do the same with the AC analysis tool. I've placed a probe on the positive input line. Using the AC analysis i've obtained the input impedance by using the expression mag(V(Probe1))/mag(I(Probe1)). Everything looks fine but i just can't seem to obtain the correct expression to gain the phase shift. All of the values i get out seem to flat line.
    It would be great help if someone could point me in the right direction, as i'm running out of ideas.
    Thanks for the help.
    Attachments:
    M1.png ‏3155 KB
    m2.png ‏618 KB

    Hi 08Ultrasound,
    You need to measure the voltage phase difference over a load as the voltage source is ideal so will always be in phase.
    Regards,
    Adam Brown
    Applications Engineer
    National Instruments UK

  • May I know how to measure Chrominance Phase using NI?

    Measure the chrominance phase of RGB color. Now I using Video analyzer to measure and would like to replace using NI.

    Check out this webcast I hope it will be helpful.http://zone.ni.com/wv/app/doc/p/id/wv-263
    Regards,
    Naqqash.
    Naqqash

  • How to change the phase by 90 deg of a sine wave

    Hi
    Does any one know how to change the phase of a sine wave by 90 degrees.
    Mal

    Hi Malkoba,
    Thank you for your post.
    Having looked at your VI I can say that you have created the correct inputs to the 'Sine Waveform.vi'.
    However the dial you had created had no affect as it was not wired into it the 'Sine Waveform.vi' on the block diagram.To fix the problem I have wired the 'Phase' dial into the 'phase' terminal of the waveform generator. This now changes the phase of the sine wave during runtime.
    The dial also now has a digital display (numeric box below it)- this can be used to read the dial's value, or feed in specific values into the control.
    Please find a modified version of your VI below.
    Regards,
    Field Sales Engineer | National Instruments | UK & Ireland
    Attachments:
    NI_phase shift sine.vi ‏31 KB

Maybe you are looking for

  • How to align text in a JTextArea

    Hi, I want to set the caret position to left/center/right based on an application-specified type for the JTextArea. Is there any easy way to do this?

  • Can i write from a URLConnection ?

    Can i write from a URLConnection ? I can read but can i write on a txt file ?

  • Application that cannot be deleted

    I seem to have a mess on my hands that I don't have a solution for and is causing me all kinds of grief. I have a package id that is listed as active in PkgXferMgr.log, and it will not go away. I cannot delete the package in question as it has depend

  • Delivery created with out stock

    Hi folks,              Sales order has been created for 'X' material,but there is 0 stock available for this material "X", ATP has been carried out and has proposed a further date, but when try to create a delivery,delivery documnet has been created

  • My hp mini 210 has lost all sound

    I have a hp mini 210-1910NR after I ran a system restore program I lost all sound. I re-ran the restore program but still no sound. Is there something else I can try to recovery the sound?