Determine phase shift ben input & output

hello guys,
I want to determine the phase shift between input and output signals. I want to measure the phase difference as lomg as I apply input. And save that to a file for reveiwing it later.Can anyone please help me with that. I am using Labview 7.1.
Thanks,
  Jinal    

Hi Jinio,
Please take a look at the following KnowledgeBase article:
How Can I Determine Phase Mismatch Between Two Channels?

Similar Messages

  • Can 7 phase shifted 1kHz digital squarewaves be output using E-series DAQ?

    Is it remotely possible, using a PCI-5052E board, to generate seven different 1kHz squarewave digital outputs that are phase shifted (0 to 180 degrees) relative to the first output.

    Unfortunately, I wouldn't consider this very likely at all. While there is 8 DIO lines on this boards, you only have immediate software update control over them. (No strobed, hardware-timed output.) So you'd need a program that constantly toggled the state of these lines which would not be very fast or deterministic for that matter.
    A PCI-6602 counter-timer board would be a more likely solution and costs much less than a 6052E. However, you'd have to trigger each output at the right time in order to get the phase shift. The most flexible solution would probably be a PCI-DIO-32HS.
    -Russell

  • How do I apply a uniform phase shift to a waveform?

    In LabVIEW 6.0, I am attempting to apply a uniform phase shift to a non-periodic waveform but have run into a problem. Theoretically, if I take the Fourier transform of the signal, apply an offset to the phase and then take the inverse transform of that, the output of this process should be my original waveform with all of its frequency components delayed by the same number of radians (different amounts of time). However, I am not getting this result from LabVIEW. In the attached example code I generate a sine wave burst, take the FFT, convert from cartesian to polar, apply an offset to the phase, convert back to cartesian and take the inverse FFT. However, instead of getting a phase-shifted, same-amplitude versio
    n of the input at the output, I get an amplitude shifted, same-phase signal. What am I doing wrong?
    Attachments:
    phase-shift.vi ‏51 KB

    This only works (partially) if your array size is an integral power of 2 (e.g. 512, 1024, etc.), i.e. in cases where the fast fourier transform can be used.
    You need to use the complex FFT (and the hilbert transform)
    Please see my example posted HERE
    LabVIEW Champion . Do more with less code and in less time .

  • FFT phase shift

    I am using LabView7.1 and am trying to understand how the FFT measures the phase difference between 2 analog input signals.  The 2 signals have about the same amplitude and their phases will be about the same. I am getting a phase difference of exactly 0.000000 but there should still be a difference. Not sure how the FFT block compares the two signals. Do I need to specify which is the reference signal? If so, how do I go about doing that?
    Thanks,
    SparkEE
    Attachments:
    BTB Acceleromter.vi ‏378 KB

    I admit this is not 100% on mark but may give you some ideas. In this thread I suggested using a zero-phase shift filter. Ignore this post if it does not help.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Distance measurement using Ultrasonic sensors and phase shift method

    Hi, 
    I've recently started a project where the idea is that we have an ultrasonic transmitter and a receiver. The transmitter will send out a signal at 40 kHz that will hit some object, most likely a book, and reflect that signal to the receiver. The received signal should have a phase difference from the outgoing signal. Now, when we vary the outgoing signal, the phase shift should also change. Likewise, if we vary the distance to the object, the number of wavelengths that can fit in between the object and the transducers should also change. We would multiply the incoming and outgoing signals and measure the beat signal, but I'm not sure how we would do this in labVIEW. We can calculate the distance to the object by figuring out what d(phase)/d(frequency) is. So far,when I am having problems with actually getting an incoming signal and figuring what that phase shift is. I'm not sure how I could use simulate signal to accuately and precisely send out a 40 kHz sine wave, and then vary that signal by steps of 1 Hz. I have also tried using a signal generator, and having once BNC cable go to the input of the transmitter and the other going to input of the DAQ. I have another BNC cable going from the output of the receiver to the input of the DAQ. I had multiple channels on my DAQ, and used split signals to see the transmitted and received signal. But this doesn't seem to be working. I also tried to add gain to the received signal, but when adding an Op-Amp LF356 to the receiver, the signal completely disappears. Attached are some of the VI's I have, but none of them seem to be working. Thanks in advance for any help. 
    Attachments:
    Latest version of final.vi ‏64 KB
    Draft for final project.vi ‏89 KB

    Have you done the basic physics and mathematics? For the speed of sound = 343 m/s and the frequency = 40 kHz the wavelength is 8.6 mm. At 40.001 kHz the wavelength is 214 nm shorter.
    So, how do you propose to keep track of the number of wavelegnths if the target moves more than 8.6 mm?
    To measure a phase shift you must have some kind of reference. Typically a fraction of the transmitted signal is used as a reference.  Since you probably do not know how much phase shift occurs in the power amplifier driving the transmitter or between the electrical signal at the transducer and the acoustic signal in air, it is usually best to measure both, ideally with the same receiver and amplifiers.
    The LF356 should be good for modest amounts of gain. The transducers can look like a capacitance to the circuits. Do you have a DC offset which is saturating the amplifier?
    Lynn

  • 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

  • Calculation of phase shift

    Hi all,
     I am continuously acquiring two sinusoidal signals from the analog inputs of a daq card and saving the samples of the two signals into two different float type arrays. Can anyone tell me that how to calculate the phase shift between these two signals and as well as the peak voltage of the two signals? Please expain me with the help of an example code.
    Thanks

    Hi AI S
    I have gone through the example of phase diff e.g and i have written the following code but when i run it , it gives the max value of 1st sine wave (outarray1) nearly equal (i-e 7.7 volt ) but it should be 8 V pk.
    But for the 2nd sinewave (outarray2) it gives the max value from 0 volt to 1.5 volt pk but it should give 1.5 Volt pk only and the phase difference is displayed as 0.000 , even there is no update in decimals in it.
    One more thing to tell that 1 complete sine wave consists of 1024 samples , therefore in outarray1 and outarray2 , there are 8 cycles each. In one iteration of the loop outarray1 is filled and in other iteration outarray2 is filled , then i calculate the phase shift.  Please tell me what i am doing wrong.
    Here is my code
    double outarray1[8192],outarray2[8192] ;
    double *peakLoc, *peakAmp, *peakDeriv;
        int count;
    static double wave1maxval = 0.0;
    static int wave1maxind = 0;
    static double wave2maxval = 0.0;
    static int wave2maxind = 0;
    static double phasediff;
    PeakDetector (outarray1,8192,0.0, 3, 0, 1, 1, &count, &peakLoc, &peakAmp, &peakDeriv);
        if (count>0)
            wave1maxind = peakLoc[0];
            wave1maxval = peakAmp[0];
     SetCtrlVal(panelHandle,PANEL_wave1maxind, wave1maxind);
     SetCtrlVal(panelHandle,PANEL_wave1maxval, wave1maxval);   
        if (peakLoc)
            FreeAnalysisMem (peakLoc);
        if (peakAmp)
            FreeAnalysisMem (peakAmp);
        if (peakDeriv)
            FreeAnalysisMem (peakDeriv);
        PeakDetector ( outarray2,8192,0.0, 3, 0, 1, 1, &count, &peakLoc, &peakAmp, &peakDeriv);
        if (count>0)
            wave2maxind = peakLoc[0];
            wave2maxval = peakAmp[0];
      SetCtrlVal(panelHandle,PANEL_wave2maxind, wave2maxind);
         SetCtrlVal(panelHandle,PANEL_wave2maxval, wave2maxval);
        if (peakLoc)
            FreeAnalysisMem (peakLoc);
        if (peakAmp)
            FreeAnalysisMem (peakAmp);
        if (peakDeriv)
            FreeAnalysisMem (peakDeriv);
        phasediff = (8/8192) * (wave1maxind - wave2maxind) * 360;
        phasediff = fmod (phasediff, 360);
       SetCtrlVal(panelHandle,PANEL_Phase_Diff,phasediff);

  • How can I create a phase shift that will cause cross-cancellation?

    I recently recorded something using a USB audio input, and after it was done realized that a cellular device had interfered with the signal and I have a terrible hiss, some clicks, cell noise, etc. in the recording. Setting a noise print and running "Reduce Noise" did more to help this file than I ever would have thought possible (thank you Apple!!), but I think I might be able to do even better.
    The left channel has the audio I need, plus all the noise. The right channel has ONLY THE NOISE! Can anyone think of a way that I can use this right channel to create a cross-cancellation of the noise in the left channel? Theoretically, this should create a perfect (or close enough to it for me) file, should it not?
    The phase shifter doesn't seem to have what I would need to do this, but I'm sure some audio genius out there can think of a way I can either do this manually or with a filter or effect.
    Thanks for any suggestions!

    Hi Glen,
    IF you were to take two +identical signals+, sum them in equal amounts and flip the phase on one of them 180º to the other you will get +complete cancellation+.
    According to the manual on page 221 the Process>Invert will do this.
    Invert
    +Choosing this command inverts the phase of each sample in the audio file or selection.+
    +Each sample’s amplitude is unchanged, but the phase is inverted. In the waveform+
    +display, the wave’s crests become troughs and vice versa.+
    IF your R channel is the exact same noise as the noise in your L Channel then this technique could work for you.
    You can test this out with any track -> put a copy of it on another track and Invert, they resulting playback will be total silence.

  • 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

  • How to generate 3 phase sine wave to output on ELVIS

    Hi .I need to make a star or delta connected circuit on ELVIS board.2 make this circuit I need 3 wave generator( with 120 phase shift) and one common ground
    and because the ELVIS function generator can only generate one wave I decided to generate countionuos sine wave in Labview.
    Now I can generate 2 continuis sine wave in labview and output them on the analog outputs of ELVIS.Ao-0 and A0-1
    but I dont know what to do for the third signal.the elvis board just has 2 analouge output and when I use  Ao-0 and A0-1 I cant use ELVIS function generator after that.so would u please help me on this problem.how can I output 3 contious sine wave in Elvis.I have attached my VI to this post
    Attachments:
    new.vi ‏38 KB

    Hi, I am also having some problem in generating two signals from two AO. Could you please tell me how to generate two different signals from two AO. I have attached vi which generate square wave from one AO 0. I need the inverted signal in AO 1. 
    Attachments:
    Pulse Width Modulation.vi ‏48 KB

  • Hello!  I am having trouble deleting any emails on my Mac OS X.  I keep getting this error message "this operation couldn't be completed.  Input/Output err."  Any suggestions?  I have rebooted.

    Hello,
    I have a Mac OS X.  I just had some memory installed and had to update my Mail and had a ton of old mail still there.  Since then, my mail has crawled so slow and I have tried to delete my old emails and I keep getting this error message "the operation couldn't be completed.  Input/Output error".  Any suggestions? 
    Thanks!

    The next time you have the problem, note the exact time: hour, minute, second.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Scroll back in the log to the time you noted above. Select any messages timestamped from then until the end of the episode, or until they start to repeat. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Disk Utility says: "Unable to read FAT (Input/output error)"

    I have a Western Digital Passport external hard drive factory formatted as FAT32. It worked as advertised for over half a year before it suddenly stopped working and refuses to mount on the desktop (it is visible in /dev). No odd sounds and the disk or other problems, a different USB cable makes no difference.
    The disk shows up as an empty disk in Windows 7 even though it is supposed to contain a small iTunes library. I have tried to repair the disk in Disk Utility in OS X 10.6.4. This is the latest attempt to repair the disk, copied from the log:
    2010-08-10 15:58:44 +0200: ** /dev/disk2s1 (NO WRITE)
    2010-08-10 15:58:44 +0200: ** Phase 1 - Preparing FAT
    2010-08-10 15:58:44 +0200: ** Phase 2 - Checking Directories
    2010-08-10 15:58:44 +0200: Unable to read FAT (Input/output error)
    Does anyone have any recommendation on repair/recovery applications? I own a copy of DIskWarrior already but DW is a HFS-olny repair app…

    Hi Niklas,
    have a look at TestDisk http://www.cgsecurity.org/wiki/TestDisk
    Regards
    Stefan

  • The VIServer doesn't work when importing/exporting complicated and many input/output VI.

    My VI server and client works fine when I importing and exporting uncomplicated VI. When I import/export many input/output and complicated VI, that complicated VI doesn't give any output. I don't get any error in the error message either (it said "No error"). And my client program looks like it gets hang - I can't stop the program. In this case, I have to shut down the server program then I can stop the client program. Is there any way that we can solve this problem?

    It's difficult to determine the cause of the problem from your description. Here are a few suggestions:
    1. Bundle the inputs to your complicated VI's into a cluster. Do the same with the outputs. You will technically then have only one input and output. This will keep you connector pane a lot cleaner and less confusing.
    2. Have Highlight Execution turned on in your complicated VIs. This will allow you see the portions of your complicated VIs that might be slowing them down.
    3. Run your complicated VI's without VI Server and with a set of input data that allows your VI to run quickly. Then, using VI Server, pass this same input data to your complicated VI's. This will allow you to determine if there is a problem with the way you are calling y
    our complicated VI's.
    Chris_Mitchell
    Product Development Engineer
    Certified LabVIEW Architect

  • What you hear recording sounds like Phase Shifter!

    Hi, when I record with "What you hear (from youtube, etc.) it sounds like it came through a phase shifter: real bad. I have a dell xps 420 with Vista 32 bit and it'scame bundled with?creator premiere, adobe soundbooth, etc. Intel core tm2 quad cpu, 2.66 Ghz, memory 4GB
    it seems to record ok with line in and mic. Can someone please help?

    Actually, there's discussion about this all over the Internet.
    The problem is your move to Vista and Windows 7
    Under pressure from the record companies, the ability to record the Stereo Mix output of you computer has been disabled or removed from many new computers.
    You may be lucky and find it's only been disabled on your machine.  If so, then do the following:
    To enable:
    ->> go to Control Panel
    ->> Hardware and Sound
    ->> Manage Audio devices
    ->> in the Recording tab window right click in the white area away from any devices and from the menu enable "Show Disabled Devices" and "Show disconnected devices"
    ->> right click on Stereo Mix to get the properties window and in Device usage "Use this device (enable)"
    However, there have been many reports in here (you can do a search) that some computer manufacturers are actually removing this ability entirely, again under pressure from the record companies.
    This being the case, you might try some software called Virtual Audio Cable: http://software.muzychenko.net/eng/vac.htm
    You have to pay for it but at least there's a trial version so you can see if it works for you before laying out your money.
    Bob

  • Fourier analysis on phase shift oscillator skewed by initial buildup to oscillation?

    Is there a way to start a transient analysis at time t=0, but not save simulation results until after the "transients" have died out for subsequent fourier analysis?
    When doing a fourier analysis of the output of a phase shift oscillator, the THD values from simulation are much higher than those from measurements on the same circuit.  I am assuming this occurs because it takes a finite length of time for the oscillator output to reach the expected output voltage magnitude and frequency.  Including this transient regime in the fourier analysis would skew the results. 

    Hello,
    You can find more information about the transient analysis at this tutorial; Configuring a Transient Analysis in Multisim and you can also find information on fourier analysis here; Configuring a Fourier Analysis in Multisim.
    Hope this helps!
    Regards,
    Sharanya R
    Market Development Engineer
    National Instruments

Maybe you are looking for

  • FF 4 (wish I hadn't updated) :) top portion doesn't seem to appear properly on my screen

    Hi, I don't know how to add a screenshot here. If there is a way can someone let me know. After I updated to FF 4 (big mistake for me) the screen just isn't right. At the very top left is the little FF globe icon (not anything like the pictures show

  • Sending HTML Email Using Report Bursting

    Hello all, I have a requirement whereby I am sending the report as an attachment to some users and as a link to other users. Report bursting would seem to be the answer and is working well with the exception of the HTML formatted email. When attempti

  • PC Suite 6.86.9.0 - Error resetting the unread fla...

    Entering the PC suite Nokia Phone Browser inbox will reset the unread flag for ALL messages on the phone. This shouldn't happen before selecting each of the SMS-messages!? The unread flag seems to be correct entering the Phone Browser, but the flags

  • Dynamic JComboBox small bug...

    Hey, I have made the following script to create a JComboBox containing car makes, which has an actionListener on it, so when a car make is selected the model can be set and a JComboBox for the model is created:         String[] carManString = { "Audi

  • Solution Manager trace file ? Details of all systems messages ?

    Hi, I had developed custom applications involving different systems like IDES, R/3, File system and web services and BPM scenarios. These systems are integrated with XI, and now I want to monitor the message exchanges between these systems. I need al