Unable to get Zero Phase shift after filtering PWM

Hi,
After filtering the PWM signal i'm not getting the exact shape of Sine wave, i'm using the Zerophaseshiftfilter.vi in the blockdiagram.I've also attached the resulting waveforms that i'm getting. Anybody help me out.
Thanks
sayaf
Attachments:
PWM- Sine.bmp ‏486 KB

sayaf,
Thanks for including the image -- it's a big help. Now I'm not the greatest expert at filtering, but to my eye you're getting a pretty reasonable approximation. I don't know how much better you can get when you only have about 8 PWM cycles for defining a half-cycle of the sine wave you want to see. At least, it looks pretty good if you have to handle a very general case of modulation.
Can the modulation always be considered a pure sine wave with a constant frequency throughout your sampling time? If so, then you can use that knowledge to your advantage -- for example, pass a few cycles of your filtered signal into one of the tone-extraction vi's that ship with LabVIEW. I'm sure there are other good (probably better) methods as well.
-Kevin P.

Similar Messages

  • Unable to  get the login page after upgrade from 11.5.10.2 to R12

    Hi ,
    We are unable to get the login page after upgrade from 11.5.10.2 to R12, all the services are up and running.
    Pls let me know if someone has come across this issue.
    Thanks&Regards,
    Apps DBA

    Hi ,
    After compile JSP files manually , now we are facing problem after logging.
    Error : You have encountered an unexpected error.
    Thanks&Regards,
    Apps DBA

  • I am unable to get Pages to launch after copying it to my laptop

    I am unable to get Pages to launch after copying it to my laptop.  Any suggestions?

    Don't copy the application, you're likely to miss a number of essential files. If you purchased it from the Mac App Store, launch the Mac App Store on the laptop & click "purchases" to install it. If you purchased retail disk or license, you need to use the original installer & have a family pack license.

  • Comparison of Phase Difference between Zero Phase and FIR Filtering

    Hi,
    I have a comma-delimited text file containing a 2D array in frequency domain. I would like 2 do a phase difference comparison between the original signal, zero phase filter and FIR filter with a cut-off at 1550nm and sampling of 0.01nm. Ouput will be a graph. I've tried to model after the example in LabVIEW but I can't seem to get the graph to display. Is there an error in the block diagram?
    Also, is it possible to do the phase difference comparison via detection of central wavelength? If so, how can I go about it?
    Thanks.

    When you translate time domain to frequency domain, amplitude information is separated information.
    Therefore, there's no way to find phase information from frequency domain data.
    You must collect time domain data in order to perform this test.

  • HT5019 unable to get turn on display after turning on the power button ,no caps lock is turning on too,even a light at unlock button to open display is not going down , mine was a late 2008 mac book pro ( 17 inch ).please help me to solve my problem

    unable to get my screen on even after turning on power button .
    light at display unlock was not going down ,
    no caps lock button turning on .
    please help me to rectify my problem apple community

    unable to get my screen on even after turning on power button .
    light at display unlock was not going down ,
    no caps lock button turning on .
    please help me to rectify my problem apple community

  • Unable to get my tabs back after power outage and "restore previous session" doesn't show up.

    Well, I've spent most of my day trying to figure out how to fix this. My power unexpectedly went out overnight and I left my computer on. When I woke up, i saw that the computer was off. So I started my computer, but when I went to get onto Firefox, none of my windows and tabs were there. (and I did have a ton of tabs open.) There wasn't even a "Restore Previous Session" icon to press on the Firefox homepage or a "Well, this is embarrassing" window. I tried opening "sessionstore.js" and "sessionstore.bak", but then a window came up titled "Windows Script Host" and said "Microsoft JScript Compilation Error." Then all there is to do is press "Ok". (By the way, at another time today when I tried opening a .js file, it said "Windows can't open this file" and it wanted me to choose the program I wanted to use to open the file, or use the internet to find a program. I chose Notepad, but then it was just a bunch of letters, words and symbols.)
    I've also tried entering "about:sessionrestore" to get my windows and tabs back and then it says "Well, this is embarrassing." and "Firefox is having trouble recovering your windows and tabs." And there are no windows and tabs showing up below that sentence, with check marks, like it is when session restore has worked for me in the past. The only thing that worries me is that I did restart my computer between when I first started it this morning and now, when I'm writing this. I wanted to see if the "Restore Previous Session" icon would bring up my missing windows and tabs from before. But all it brought up automatically were the current windows and tabs that I have open right now. So now I'm wondering if I've permanently lost those tons of tabs that I had open before the power went out.
    The other thing is that when I first got onto Firefox today, I could see all of my history from the days, weeks, and months past. Now I can only see today's history. I know I pressed something when I was trying to fix things but I don't remember what I pressed. Maybe that changed whether or not I could see the previous months' history. I did try "places.sqlite", "places.sqlite-shm" and "places.sqlite-wal" to restore my history, but again it said "Windows can't open this file" and it wanted me to choose a program to open the file. So again I chose Notepad, and it was just a bunch of letters, numbers, and symbols.
    Hopefully someone may have an answer for me. Thanks!

    Yes I can understand you being confused there is an awful lot of information you need to take in and learn as you encounter such a situation. I will try to expand my explanation to cover the points you ask.
    ''right click the file and select "restore previous versions", right?''
    That is correct when using Windows to try to recover for instance files where the working fie is corrupted, but a previous version worked
    If you have no previous versions available from Windows you need to work on whatever you do have. With any file restore operation it is always a good idea to make copies of not only the originals but also the restored files.
    If you restored the ''places.sqlite'' with Windows that could possibly have resulted in a copy overwriting your working file that is even worse than the original file.
    When you restore a file using the Windows OS it restores the files in their ordinary working location and they should function as expected without needing to do anything else. Generally it is probably best to try such restores when the files are not in use and in this instance that means when Firefox is closed.
    For the benefit of any other readers of this thread note : <br />The places.sqlite is in the Firefox profile and easiest to find before closing down Firefox as the ''troubleshooting information page'' (''about:support'') may be used to find it.
    * [[Profiles - Where Firefox stores your bookmarks, passwords and other user data#w_how-do-i-find-my-profile]]_how-do-i-find-my-profile
    The ''places.sqlite'' database is the only file Firefox itself has with the full ''History'' information in it. The database also contains bookmarks but Firefox should have some other backups of those. If the database is deleted Firefox will restore the database but all it can do is add back bookmarks information from its backups the History is lost.
    There is almost no chance of getting the History back unless there is another copy of that database. Either one Windows is able to recreate, or one that was somehow created by another method, that normally being the user deliberately making a manual backup of your profile or places file in advance. Or maybe having in place other backup procedures.
    '' am I supposed to double-click the file?''
    That is not going to help in these circumstances. There are advanced methods of studying the files but right clicking does not help in this instance.
    Open tabs information is stored in the series of files ''sessionstore.*'' It may take rather a lot of messing about to to get any useful information out of whatever files you have. It would normally probably be a lot quicker just going back to the sites concerned, but that is made more difficult if you have overwritten the History database so you may need to try if the tabs were important to you. I can give more details in another post if you need to try that
    We could have a lot more luck with your bookmarks. Did you bookmark most of the sites concerned ? If so then at least you have a good chance of finding the sites again.
    Have you already got a fairly complete listing of your bookmarks in the Firefox bookmarks library/menu ? If you need to try to get back lost bookmarks that existed in the last few days but not are not present right now make a backup copy
    *Of the profile folder called '''''bookmarkbackups''''' ( With its contents ! )
    * ''places.sqlite'' Remember whenever attempting restoring bookmarks always backup the database file ''places.sqlite'' first.

  • Unable to get yahoo mail working after upgrading to ios5

    I updated my IPhone 4G at the same time &amp; have no problems with the phone. I get the message of server is unavailable. I have deleted the mail account &amp; reentered it &amp; continue to get the same problem.

    not sure if this is the same issue but the other night i had to delete my yahoo from my phone, then re add it in order to get it work

  • 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

  • Phase shift base signal

    Hello,
    I have two sinusoids which have a phase difference which varies slowly over time,  the difference being indicative of position. To measure the phase difference, i have used a premade vi called "Graph and Calcuate Phase differece". I have also used an example online to somewhat sucessfully calculate the phase some of the time.  The example would be the code that was posted in this thread.
    http://forums.ni.com/ni/board/message?board.id=170​&message.id=6956&query.id=101197
    These examples work great with theoritcal signals, but there is a problem (see figure below) I am having in practice..  Since the phase shift can occur in the range [-360,+360], i believe the index of the peaks are getting lost, causing it to pick up the next peak in the sequence, thus, causing a phase shift (see figure below, plot of phase shift) to be measured.  Another way of saying this is that after a small amount of phase shifting occurs, the lead peak begins to references the next peak in the comparison signal.
     Im at  loss on how to identify the peaks and track them so i can accurately measure phase shift.  Any help is appreciated. Im sure this is soemthing that has been done before, esp since there is a vi just for measuring phase shift. I guess i just dont know the key words to find it...
    Below is a screen shot showing the two signals. The bottom plot is showing there is a relative small shift in phase which periodically jumps.
    many thanks
    Jim from CT
    Message Edited by JimmyinCT2 on 01-23-2008 07:17 PM

    dahhh, okay, i think i finally figured out what is going on here, and i think im just being somewhat dumb or maybe just assuming to much.
    Looking at matts example helped a lot as i see why.
    with one of the old VIs for measuring phase shift, we were getting a phase shift range of [-360, 360] or more.    We were just assuming that was the range here with this new VI. 
    With the new dual channel measurement (or the example you posted), when phase is measured, there is an inflection point at some angle of phase difference..  The way your example works (and the express vi) is with an inflection at 180 degrees.  So, lets imagine we have a measurement of phase shift that is 178 degrees, as this difference increases, the next is 179,  and then 180..  Now as it continues to move, the next phase measurement will not bet 181 but instead -179.   As the signal continues to move in the same direction, its then 178, 177, 176.. So there is an inflection point at 180 degrees with two sinusoids, in simple terms, its because the phase difference of one sinusoid to the other has shifted and is now being measured in reference to the next peak in the series.
    Its troubling for measurements are if you turn on a machine that is measuring phase, and it happens to be right near -/+180, it can cross that boundary often, creating substantial noise.   Also, that for certain types of peak detection, such as for motion, its desirable to have a larger range such as [-360,360] which should be theoretically possible (like the first vi we used)  but i guess [-720, 720] could be done too assuming there is enough difference between the peaks.  It would have been awesome to have a VI that measures peak movement outward to infinity.   We were originally using a VI that calculated out these larger differences, think it was doing the calcs in frequency domain (imaginary nums) rather then cross correlation like the example.
     I think for now, we are going to have to work inside the range [-180,180] and initialize our hardware to 0 phase so we dont start near the inflection point and see if that works.
    Message Edited by jimmyinCT on 01-26-2008 07:54 PM

  • HT4623 During my update to the new operating system I am unable to get past Rescue EMail. I tried not putting in another e-mail as it says it is optional - that did nto work. I entered a Rescue E-Mail and it will not allow me to go to the next step. Help

    During my update to the new operationg system I am unable to get past the Restore E-Mail. I first chose not to have an "optional" restore e-mail and was unable to get past this section. I then entered an alternate e-mail with the same results. I am unable to get past this section after I push the Next symbol. HELP!

    I am having the same problem.  I think I saw something about VPN and not being able to communicate with Apple web site.  Do you have your protected company email on your phone?

  • 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 .

  • 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

  • Phase shift between a pulse and sin wave

    Hello,
    I was wondering if there is any VI that I can use to get the phase shift between a pulse and a sin wave (they have same frequency).
    The Ideal case is that the pulse should go to 1 when sin wave is positive and goes to 0 when the sin wave is negative. I want to set this test to measure the phase shift between pulse going to one and sin wave going positive.
    We just bought labview full version with Signal processing package, and I was wondering if there is anything that would be useful for me.
    Thanks in advance,
    Baran.

    Hi Baran,
    Try this on for size and see if it works for you.
    Have a great day,
    Chris V
    Applications Engineer
    National Instruments
    Attachments:
    Phase Difference.vi ‏22 KB

  • Is it possible to use Zero phase filter for continuous filtering?

    I have to filter a large amount of data without any phase shift from original signal. The Zero phase filter does it but it has to be used in single shot mode. It doesn't have any "Init/Cont" input terminal which other filters have. Is there any way to implement zero phase filtering to filter data continuously?

    AJ_CS wrote:
    The zero phase filtering method seen in your thread will work, if the filtering happens as a single shot operation. It will remove the edge effects of zero phase filtering.
    But for an application wherein data arrives as small blocks, it has to filter each block of the data and also it has to maintain the continuity of filtering. 
    For example in every 1 sec, I'm getting 500 samples of data. I have to use this zero phase filtering for each block of 500 samples, in each second. But what seems to happen is, between the end of one data block and beginning of next data block( between 500th sample and 501th sample or between the end of 1st sec data and beginning of 2nd sec data), there is a discontinuity, or distortion.
    Normal IIR (butterworth)filter maintains this continuity between data blocks, but with phase shift.
    Zero phase filtering doesn't introduce any phase shift but it is unable to maintain the continuity, it seems. 
    Is it possible to have a filter meeting both these requirements?
    In a nut-shell yes.
    It will require you apply the technique I illustrated in that thread repeatedly each time you get an update. The "reflection about the end points" cleans up the disconinuities. I suspect there may be some theory that what you end up with can not be proven using any formal math approach, but it closely mimics what the human mind does when we ask ourselves "If it continues like that that, what do I expect?".
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • About phase and amplitude after filtering

    Sir please give me solution to this
    i have a signal with phase,frequency n amplitude. To this signal i have added noise and i filtered that signal
    after filtering the amplitude and phase are reducing
    how can i get exact values of phase and amplitude after filtering
    if i change frequency, ampliteude or phase it should give exact results after filtering........
    plz solve this one for me................

    Hi upto my knowledge the mistake you made is the cut-off frequency.. your input signal is only 10Hz so you try setting it as the cutoff freq. Try this...
    The best solution is the one you find it by yourself
    Attachments:
    report(2).vi ‏89 KB

Maybe you are looking for