Zero phase filtering initial condition effect

Hi
I was wondering if any body knows how I can handle the problem of edge effect caused by zero phase filtering? The problem is that by using zero phase filtering if the intial condition of forward filter does not equal to that of reverse filter, a kind of spike will occur at the begining and the end of filtered signal. In MATLAB spacial care has been taken to minimize this effect but it seems it is not the case in LabView?
I noticed that some body mentioned the same problem here long time ago and one of replies pointed out that it is the transient effect of convolution and we need to remove the first and last samples of filtered signal but I don't think that it is a wise solution because the problem is not because of convolution.
 Best regards
Afshin

The math is correct, but you can not compare directly to the math used then dealing with continuous math functions like sin(x). Use scaling functions to if you want to "correct" the amplitude. Do not change the dt value
Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Attachments:
Derivative[1].vi ‏19 KB

Similar Messages

  • 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

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

  • Zero phase filter returns unexpected values

    Hi,
    I want to filter the signal using the zero phase filter.
    This is my code using the filter:
    The filter returns some values like this:
    In this diagram, the green curve is the signal, which has been filtered using the zero phase filter.
    Is there a better example or special advices for these unexpected values? What I want is the signal without phase-dirft.
    Wilbur

    Hi,
    it was a good idea to post that snippet - but it would be best if we had your data too.
    Could save your inputs as default data and post the vi (don't know if snippets retain default values)?
    Regards
    Florian

  • Problem in Multisim with transient analysis and initial conditions

    Hello everyone,
    I have a problem in multisim with transient analysis and initial conditions.
    If I do transient analysis with automatically determined initial conditions the circuits works.
    If I do transient analysis with user-defined initial conditions the circuits works in cases.
    --Working with user-defined---
    *## Multisim Component V2 ##*
    vV2 3 0 pwl(0 0 0.001 0 {0.001+1e-008} 3 {0.001+1e-008+1} 3)
    *## Multisim Component R1 ##*
    rR1 3 0 10000 vresR1
    .model vresR1 r( )
    --Working with user-defined----------
    *## Multisim Component V2 ##*
    vV2 1 0 pwl(0 0 0.001 0 {0.001+1e-008} 3 {0.001+1e-008+1} 3)
    *## Multisim Component U1 ##*
    xU1 1 0 MEMRISTOR__MEMS__1__1
    --Not Working with user-defined-------
    *## Multisim Component V2 ##*
    vV2 3 0 pwl(0 0 0.001 0 {0.001+1e-008} 3 {0.001+1e-008+1} -3)
    *## Multisim Component R1 ##*
    rR1 3 1 10000 vresR1
    .model vresR1 r( )
    *## Multisim Component U1 ##*
    xU1 1 0 MEMRISTOR__MEMS__1__1
    The costum component includes something like that:
    .subckt MEMRISTOR__MEMS__1__1 plus minus PARAMS:
    *Parameters values
    +rmin=100 rmax=390 rinit=390 alpha=1E3 beta=0 gamma=0.1 VtR=1.5 VtL=-1.5 yo=0.0001
    +m=82 fo=310 Lo=5
    blah blah ...
    .ends Memristor
    Namely, if I combine the resistor and my custom component in one circuit, transient analysis with user defined initial conditions gives an error (timestep too small).

    Hi  Nik,
    If possible, please post the Multisim file. This way, I can get access to all your settings.
    Tien P.
    National Instruments

  • Page Transition - Initial Conditions

    Hi all,
    I have prepared an interactive widget for an iBooks project of mine. I am having a problem when initiating a go to page transition.
    Page 1 works fine
    Page 2 works fine when "Go to Page is selected from Page1"
    Page 1 works fine when "Go to Page is selected from Page2"
    However Page 2 does not start-up the same way it did on the first run.
    Its appears Page 2 does not start-up with the same initial "conditions".
    Is there something I am missing at the point of transition? or am I having a problem with Page Did Load?
    Can anyone help?
    Best,
    T

    See the documentation:
    http://help.apple.com/iadproducer/mac/5.0/#/iade80653a8
    The key part:
    Often used before the user has navigated to a page for the first time; when actions need to occur once per page.
    The net result is that navigating back to page 2 will restore the page to the state it was in when last navigated away. If you want something to happen on every appearance, use Page Did Appear.
    Does that help?

  • FILTERS/Render/Lighting Effects

    I am using Photoshop CS2 and trying to use FILTERS/Render/Lighting Effects and get the following message “Could not complete the Lighting Effects command because the selected area is empty!” Thanks for your assistance

    Hi,
    Do you have a blank transparent layer active or a selection that has no content inside?

  • Filters, styles and effects have stopped working in Photoshop Elements11

    Filters, styles and effects have stopped working in Photoshop Elements11, what do I do?

    Operating system and version? Have you installed anything new lately in PSE or done any OS updates?

  • Applying photoshop filters in After effects layers!

    Hi. Is it possible applying those photoshop filters into After effects layers? I thought the filter worked like layers, so when I import the photoshop files to AE I could drag the filter and apply it on a movie layer! I didn't work! Is it possible? thks!
    PS: I'm using Production premium CS5.5!

    Well, I'm reading the book ADOBE AFTER EFFECTS CS5 CLASSROOM IN A BOOK; chapter 6 (animating layers): it's about importing PSD files to After effects compositions! I was thinking about creating scenarios to a movie using PSD files.  When I apply a layer style to a picture in Photoshop CS5, save this picture, and import this picture to AE it comes likes 2 files: a composition ( picture + layer stile) and a picture without the layer style. I'm gonna use the very same words of the book.
    Though layer styles are referred to as effects in Photoshop, they behave more like blending modes in AE...Another diference is that each layer style blends directly with the underlying layers in the composition, whereas an effect is rendered on the layer to which it's applied, the result of which then interacts with the underlying layers as a whole!
    Well, I have tried to apply a layer style on a movie file of my composition but it doesn't work cuz the layer style doesn't come alone, it comes with the picture!
    So I have figured the following possibility! Take a look in this!
    http://2.bp.blogspot.com/-T5L62G9WLio/UALdatCbrmI/AAAAAAAAAyI/7hQJK_drigg/s1600/Screen19.j pg
    What if I apply a filter in this shot. Will the filter be applied only on the statue or it would be applied on the checkerboard background too? If the second possibility is possible I could apply this image above a movie and use the filter on it, couldn't I? After all the checkerboard background is transparent! Got it?

  • Initial condition as programmable input

    I am simulating a small photovoltaic panel (island power plant). The model is running in LV and the circuit parameters are computing in subVI with Multisim model.
    The model works very good, but for right function is necessary set the voltage of the PV diode as initial condition. Its OK, but for better function I need to control initial condition as input from VI.
    My question is: Is possible to control initial condition as input from VI?
    Thank you for your help.    

    Hi Slezinger and welcome to NI forums!
    I'm afraid this functionality is not available for co-simulation, so the only way I believe you can implement this is to have a dedicated input/circuitry to set your parameters at t0.
    Regards:
    Andrew Valko
    NI Hungary
    Andrew Valko
    National Instruments Hungary

  • How can I transfer my photo taken with iPhone5 filters maintaining filter effects ? I always have colored photo without filter effect on my iMac !!!

    How can I transfer my photo taken with iPhone5 filters maintaining filter effects ? I always have colored photo without filter effect on my iMac !!!

    no completely satisfactory answer but you can :
    1) email photos to yourself (tedious if you have a lot of filtered)
    2) create shared file in iPhone and bring into iPhoto (and maybe Aperture - not tested yet) with filter effects
    3) import to iPhoto and add effects from there (likely needs latest version to mirror iPhone filter)
    see this thread for more explanation on these workarounds: iPhone isn't transferring photos taken with built-in filters

  • Initial condition in CD parametric time response (control design)

    CD parametric time response calculates the output of system when a step input excites it, and the initial conditions are the initial values the parametric response uses. But there is a miscalculation in the taking into account of the initial conditions.

    You need to give us more information about what you are trying to do, with which tool and what the problem you are experiencing. With this information you will probably find someone in this community that can help.
    P.M.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

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

  • Phase game and its effect on iPod buttons...

    Hey,
    I recently purchased the Phase game from iTunes (amazing!) but I'm a little concerned. On expert, it has a lot of button pushing happening, and I'm worried that it might break the buttons on the iPod. After all, they weren't designed to for game playing, they were designed to be used occasionally to skip tracks (i mean, when I play music, I really don't hit the skip and rewind buttons that much).
    Do you think that this could have an effect on the durability of the buttosn and how long they will last?

    no answers

  • Data Foundation table joins with filters (multi-conditional joins)

    My environment: Crystal Server 2011, Business View Manager 14.0.2.364, Crystal Reports 2011 with SP2 and FP28
    In our existing database we make use of a single lookup table for many different types of selection lists.
    For example, the lookup table might have selections for all of the US States (ex: NonUniqueIDValue = 123,  Value1=TX, Value2=Texas, LookupType=US_STATES) and another list of selections for OrderStatus (ex: NonUniqueIDValue = 123,   Value1=OPEN, Value2=NULL, LookupType=ORDER_STATUS).
    It is necessary to supply addtional filtering on the join statement since the IDVaule for these entries are NOT unique.
    Using SQL written joins for the two examples above would look like this:
    join lookupTable on lookupTable.NonUniqueIDValue = mainTable.US_StateID AND lookupTable.LookupType = 'US_STATES'
    join lookupTable on lookupTable.NonUniqueIDValue = mainTable.OrderStatus AND lookupTable.LookupType = 'ORDER_STATUS'
    I am new to Business Views and don't readily see a solution since it appears the DF Linking window only suports single basic conditional testing (<, >, =, etc) . How can I accomplish this in my DF or elsewhere in the BV?
    I would greatly appreciate any feedback or insight anyone might have on how to accomplish these kinds of filtered joins.
    Thanks in advance...

    Hi Paul
    If the query returns 100,000,000 rows, there will be performance issues of the report based on the connection and the datasource you are using.
    If you use a Command Object or a Stored Procedure the query will be directly executed at the database level and the performance will not be affected much.
    Hope this helps!
    Thanks

Maybe you are looking for

  • Since downloading Rosemite I have had long delays in starting up my iMac ?

    I downloaded Yosemite on my iMac on 20.10.14 and have been experiencing long delays in starting up each day ?

  • Annoying screen flicker on my Y2P

    I purchased my 13" Y2P earlier this year and am satisfied with it except for this one annoying problem. Every now and then the screen turns off for a few seconds and comes back on. This will happen two or three times every incident it happens and the

  • JTextArea wordwrap according to the window size

    Hi All, I have a problem with JTextArea. I am constructing my UI as explained below: 1. Panel with GridBagLayout. 2. This panel have a grid of component. Each row will have a text area as a description and a text field to enter the value [ Text Area

  • Adusting video input signal while capturing???

    Hello I'm running Final Cut HD and am having trouble adjusting my video input signal. Under "Clip Settings" in the Capture Tool there appear to be controls, but they are disabled and my scopes do not appear to be reading either. Any thoughts on how t

  • Nokia C7 Phone Start-Up Failed

    A good friend of mine has a Nokia C7.  He and I both used to use SPB Mobile Shell, but I no longer do.  However, my friend is still using the SPB software. Sometimes when my friend turns on his phone, the usual Nokia information appears, then the "lo