IIR Filtering and response .vi: Butterwort​h filter magnitude response depends on sampling rate -why?

Hi folks,
I am not expert in filter design, only someone applying them, so please can someone help me with an explanation?
I need to filter very low-frequent signals using a buttherwoth filter 2. or 3. order as bandpass 0.1 to 10 Hz .
Very relevant amplitudes are BELOW 1 Hz, often below 0.5 Hz but there will be as well relevant amplitudes above 5 Hz to be observed.
This is fixed and prescribed for the application.
However, the sampling rate of the measurement system is not prescribed. It may be between say between 30 and 2000 Hz. This will depend on whether the same data set is used for analysing higher frequencies up to 1000 Hz of the same measurement or this is not done by the user and he chooses a lower sampling rate to reduce the file sizes, especially when measuring for longer periods of several weeks.
To compare the 2nd and 3rd order's magnitude response of the filter I used the example IIR Filtering and response .vi:
I was very astonished when I the found that the magnitude response is significantly influenced by the SAMPLING RATE I tell the signal generator in this example vi.
Can you please tell me why - and especially why the 3rd order filter will be worse for the low frequency parts below 1 Hz of the signal. I was told by people experienced with filters that the 3rd oder will distort less the amplitudes which is not at all true for my relevant frequencies below 1 Hz.  
In the attached png you see 4 screenshots for 2 or 3 order and sampling rate 300 or 1000 Hz to show you the varying magnitude responses without opening labview.
THANK YOU for your ANSWERS!!!
chris
Solved!
Go to Solution.
Attachments:
butterworth-filter-differences.png ‏285 KB

Hello Lynn,
thanks for the answer. You are right that there are few points "behind" the curve in the graph, see png.
However, this is the filter response which Labview (2009) provides to me directly out of the "IIR Filter for 1 Channel. vi" in the "filter information" output cluster. Where up to now I do not know how to influence it - apart from adjusting the input parameters "IIR filter specifications". OK, I assume I have to gain more knowledge of this. The curve of the magnitude resonse dies not change when I change the number of samples of the input signal of the signal generator, only wehn I change the sampling rate.
I used directly the example vi from Labview with the name indicated in my first post "IIR Filtering and Response.vi".
So I assumed that everybody has it in his/her examples shipped with LV and it is not necessary to post it.
I just adjusted the size of the diagram of magnitude response to see the curves better as you see in the attached vi.
So I did no changes to the vital parts of signal generation and filter of the example. The screenshots are like they come from the example when using the option "one waveform" where I as user assume that this which is behind is quality-controlled by NI.
I was also astonished that the filter magnitude response is different to the one I copied out of graphs 1 year ago - but I unfortunately cannot reconstruct which example I used there...
Thanks for any further comments
chris
Attachments:
IIR Filtering and Response_CH.vi ‏55 KB
butterworth2nd_order_bandpass_0p1to10Hz_mag_response.PNG ‏18 KB

Similar Messages

  • IIR Filters in FPGA

    I am trying to modify IIR filters and use them in FPGA vi. Originally, the signal was filtered using the IIR filter vi (see below).
    The coefficients were calculated using matlab, so this vi (and different combinations of it) was configured to do different signal processing. I would like to use the sample IIR filter in a FPGA vi and I have been trying to achieve this by using the Digital Filter Design Toolkit. However, the IIR filter design vi (and the classical filter design express vi) ask for different inputs than matlab. Is there any way to do this?
    Thanks!

    Hi rhong,
    There is a couple of Express VIs for Butterworth and Notch filters in FPGA. I don’t believe we have a specific function that uses those same coefficients as inputs. However, we do have some guidelines on IIR filter design in FPGA. Otherwise, you could also consider opening the subVI and keep working based on it.

  • Maximum audio sample rate and bit depth question

    Anyone worked out what the maximum sample rates and bit depths AppleTV can output are?
    I'm digitising some old LPs and while I suspect I can get away with 48kHz sample rate and 16 bit depth, I'm not sure about 96kHz sample rate or 24bit resolution.
    If I import recordings as AIFFs or WAVs to iTunes it shows the recording parameters in iTunes, but my old Yamaha processor which accepts PCM doesn't show the source data values, though I know it can handle 96kHz 24bit from DVD audio.
    It takes no more time recording at any available sample rates or bit depths, so I might as well maximise an album's recording quality for archiving to DVD/posterity as I only want to do each LP once!
    If AppleTV downsamples however there wouldn't be much point streaming higher rates.
    I wonder how many people out there stream uncompressed audio to AppleTV? With external drives which will hold several hundred uncompressed CD albums is there any good reason not to these days when you are playing back via your hi-fi? (I confess most of my music is in MP3 format just because i haven't got round to ripping again uncompressed for AppleTV).
    No doubt there'll be a deluge of comments saying that recording LPs at high quality settings is a waste of time, but some of us still prefer the sound of vinyl over CD...
    AC

    I guess the answer to this question relies on someone having an external digital amp/decoder/processor that can display the source sample rate and bit depth during playback, together with some suitable 'demo' files.
    AC

  • FCP 6 with M-audio fastrack pro and sample rates

    hello, having a weird problem in FCP 6.02 under OS X 10.4.11 on a MacPro where if i record a voiceover through my m-audio fastrack at 48khz, which matches the sequence and project settings, it comes back at the wrong sample rate (plays back higher pitch), but if i record it at 44.1 it sounds right. any ideas on this?
    thanks in advance
    david

    Perhaps the M-Audio is still recording at 44.1, and FCP is set to convert the audio to 48k, but is unable to resample as it would with an analog source. I would try to access the control panel for the M-Audio box and see if you can get it to force its sample rate to 48k outside of FCP. If so, you can probably get FCP to record correctly at 48k. If not, you might be better off just letting it record in 44.1, and maybe batch exporting later to upconvert.
    Hope this helps -
    Max Average

  • Core audio and sample rate conversion

    I would like to know how to take manual control over core audio regarding sample rate destruct... er conversion. First - I know the workarounds - simply closing the audio player of choice, resetting the external hardware and relaunching the audio player of choice.
    setup:
    I run external converters with an external sample rate clock source. No problems or issues here. I keep my music collection segregated by SR (96k, 88.2k, 48k, 44.1k) as I ALWAYS listen through external converters.
    The annoyance is when one forgets to keep track of core audio and inadvertently ends up listen to a piece of music sample rate destructed. You know - walk up to music server computer, forget that you had DAC set to 44.1k for last music played, put on 96k source, SRC takes over and you don't notice the artifacts and distortion for a few songs. No one wants that! Don't get me wrong - it's a convenient feature and the amateur user would be sunk without it.
    What I want is an indicator that will tell when SRC is turned on and further, what the input and output sample rates are (as far as core audio is able to determine from the hardware anyway). In my world this would have been a check box in a preference setting. Perhaps someone has written a script or app for this? Command line instruction?
    Thanks

    Start with http://developer.apple.com/documentation/MusicAudio/Conceptual/CoreAudioOverview /Introduction/Introduction.html and direct further queries to the developer forums under OS X Technologies.

  • Slow sampling rate = slow button response time

    (Disclaimer: I am a labview novice)
    I am writing a VI that acquires data from 2 sources - one via serial communication (VISA) and one via DAQmx (simple voltage measurement).
    Currently, our sampling rate is 0.2 Hz (one sample per 5 seconds), which I am setting using Time Delay.vi within block structures (see screenshot).  The data is being recorded satisfactorily, however when I press any button, such as the clear button (clears chart history), the stop button, or the record button (starts/stops writing to measurement file, not shown in screenshot), the button state change does not register until the next sample is recorded.  The result is a delay of up to five seconds for any action I take.  This is a minor inconvenience, but we would like to change our sample rate to 1/60 Hz, which will lead to up to a 60 second delay before any actions taken are registered.
    Block diagram attached.  I have removed all but the key functionality of the program in order to make it more readable.  Does anyone have any suggestions on how to fix this problem?  Any advice or suggestions are welcome, as I am new to Labview.
    Thank you very much.  Screenshot attached.
    Attachments:
    labview VI streamlined.JPG ‏222 KB

    One option for you is to put your user feedback (Clear Chart...) into a parallel loop that holds an event structure.  When the user triggers an event, by pressing a button in this case, that even will execute immediately.  Look in the LabVIEW help for info on Event Structures, it is well documented there.
    CLA, CLED, CTD,CPI, LabVIEW Champion
    Platinum Alliance Partner
    Senior Engineer
    Using LV 2013, 2012
    Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.

  • Every time l open filters and try to use the oil painting filter photoshop closes down !!

    Every time l open filters and try to use the oil painting filter photoshop closes down !!

    Update your graphics driver. The oil paint filter uses GPU acceleration.
    Mylenium

  • Problem while setting response header in a filter

    Hi,
    I am intercepting response in a filter and trying to modify the response header, so that my subsequent class would get the header in request .
    Somehow i don't get the header in request. I don't know whats going wrong.
    I have few more filters other than the one in which i m modifying the response header.
    I change the response header before calling doFilter() method.
    Where am i going wrong ?

    The subsequent servlets and filters will get the same request that the first filter has. The passing to the next servlet is via a method call.

  • Filters and  events

    whats the main difference between the filters and events

    i mean to say that there are 3 methods in filters whihc are init ,doFilter and destroy and in events ,there are 2 methods contextInitialized and context destroyed ...
    when we use the filters ,the init method is called when server is started and the same is true with the events that the contextInitiliazed method is called at the same time. and the doFilter is called along with the service methods of the servlet ..the HttpSessionListener session methods are along with the service methods ...
    so i don find whats the difference between events and filters though the definition says the filters are called before the request,response and filter chain ..and events happens along with the methods of the servlets..
    thnaks and regards.....

  • Frequency response of real analog filter using mydaq

    Hello!
    I am trying to find the frequency response of a analog filter using the NI myDAQ.  There are several examples of this in Labview, but they are usually analyzing digital filters, not real world filters.  There is one example, see attached vi, that simulates measuring a realworld signal using a simulated frequency generator and a simulated multimeter.  I believe that this could be done for real using the mydaq.
    Can someone please help me convert this VI to run off of the mydaq?
    Thanks!
    Attachments:
    Frequency Response.vi ‏21 KB

    Thank you Kyle, this is exactly what I was looking for.  I searched the examples that came with labview 2010, the signal processing module, the 8.6 DSP module and the signal anaysis toolkit, but I had not yet installed the elvis cd so I didn't run across these VIs.  Thank you once again!

  • Microsoft Project 2010 Error/Bug Using Filters and AutoFilters

    Dear Community Members/Team,
    I came across an error/bug while using Filter and AutoFilter options in Microsoft Project 2010. The details are as under:
    I have an MS Project 2010 file which has total 3049 activities (IDs).
    The linking process (predecessors and successors) is almost complete.
    In MS Project 2010 software console, in the bottom left most corner, I have right clicked and enabled the options of "Filter" and "AutoFilter".
    In the "View" tab located at top console, I have selected "[No Filter] against the "Filter" icon. Also, from the drop down arrow against the "Filter"
    icon, I have enabled "Display AutoFilter". As a result I can see drop down arrows in front of all columns displayed in the file.
    I have displayed columns "Duration", "Start", "Finish", "Total Slack", etc.
    I used the drop down arrow appearing in front of "Total Slack" column, and I can see some options. At the bottom I can see all the "Total Slack" values with
    scroll option available and all the boxes here are checked. I remove the check box in "Select All" field and manually select any random value such as "-11.17 wks".
    To my surprise, some values when selected, they are displayed correctly with the relevant activities shown. However some of the values which I select are not appearing and the relevant
    activities are not shown and only empty rows are shown. So I use "Clear Filter" and try some other option.
    Now, to find those activities, I have to click on the drop down arrow in front of "Total Slack" column, Go to "Filters", and select the last option "Custom".
    Now I select show rows where Total Slack "equals" and I select any value from drop down arrow appearing in front of "equals", I can see all those values of "Total Slack" and I randomly select the same value for e.g. "-11.17
    wks". This time the relevant activity is displayed correctly which was not shown by using the above method of selecting a certain value by selecting a check box from drop down arrow appearing against any column.
    I hope to have a response from the community.
    Regards,
    Usman

    Hi Usman,
    Strangely we are having the exact same discussion with another member here:
    https://social.technet.microsoft.com/Forums/projectserver/en-US/0ae3530f-6760-4ef9-afd9-6028258a490e/autofilter-feature-malfunctioning?forum=projectprofessional2010general
    Please go through this thread and tell us if it brings some light. Particularly try with a brand new file to reproduce the error. It could see the error on Ahmad's file, but couldn't reproduce it on a brand new file.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • How do I determine the best Order to run my butterwort​h filter at?

    I'm lowpass filtering a signal that was sampled at 200hz through a 40Hz butterworth. I need to determine the optimal filter order. How do i create a quantitative comparison of the effects of the butterworth filter on the frequencies above 40Hz based on varying order?
    I have tried using the FFT to create a chart in the frequency space, but am not sure how to proceed. Any help would be greatly appreciated. What I want to compare is the path immediately before and immediately after the butterworth filter.
    Also is there an alternate way to read in a column of numbers from a text file without using the Read from Measurement file Express VI?
    Solved!
    Go to Solution.
    Attachments:
    frequencydomain.JPG ‏131 KB

    I have my filter working correctly now. I just need a quantifiable way to justify picking any one order of filtering over another.
    Here is my front panel, How can I compare the (After/ Before) graphs of varying orders (in a quantifiable way)? How can one tell which is the best?
    I was thinking I could compare the (Integral from 0 to 40)/40 and the (Integral from 40-inf). The order that yeilds the closest to 1 and 0 respectively should be the one I go with. Does that sound logical?
    How do I compute a definite integral with a lower bound and an upper bound?
    Attachments:
    order2.JPG ‏240 KB
    order5.JPG ‏240 KB
    order10.JPG ‏240 KB

  • What's the difference between segment filtering and reduced message type

    Hi gurus,
    What's the difference between segment filtering and reduced message type? It seems they have the same functionality: Reduce the segment while idoc is generated.
    Thanks in advance.

    Hi,
    BD53 is for IDoc Reduction.
    this allows you to create a reduced message based upon a standard message type.If you want see mandatory fields. go to T-coe BD53 and give one standard messege type name and eg: matmas
    there mandatory fields will be in Green color..
    And BD56- This transaction is used to filter out segments of IDocs for combination of sender and receiver. This is usefull in scenarios where a standard IDoc with many segments is used but the receiving partner is only interested in some of the segments
    the table related to this transation is TBD20
      please go through below blog you have an idea abt that,
    http://wiki.sdn.sap.com/wiki/display/ABAP/ReducedMessageTypes
    http://saptotal.com/IDoc%20Segment%20Filtering.html
    regards,
    ganesh.

  • SSRS in SharePoint2013:Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModule

    SSRS in SharePoint2013: There is a report in SharePoint and it contains a sub-report and the sub-report hyperlink. When I click the hyperlink to go to the sub-report, after >10min, I click the "Back to.." button
    on IE to go to the previous page. Then it catch the error as:
    Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
    Details: Error parsing near '
    <!DOCTYPE html PUB'.
    I am using SQL2012 and Sharpoint2013.

    Hi Alisa,
    Thanks for your reply, I changed the web.config, but the issue did not resolved. 
    I add the codes in two parts of the web.config as below, you can find in by keywords “aspnet:MaxHttpCollectionKeys”
    This issue can not reproduce on Chrome only occur on IE.
    So, do you have some details suggestion for me to fix it?
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <configuration>
    <configSections>
    <sectionGroup name="SharePoint">
    </sectionGroup>
    <location path="_layouts/15/TA_AppMonitoringDetails.aspx">
    <appSettings>
    <add key="ChartImageHandler" value="storage=memory;timeout=20" />
    </appSettings>
    </location>
    <location path="_layouts/15/ReportServer/RSViewerPage.aspx">
    <appSettings>
    <add key="aspnet:MaxHttpCollectionKeys" value="10000" />
    </appSettings>
    </location>
    <system.net>
    <defaultProxy />
    </system.net>
    <appSettings>
    <add key="aspnet:MaxHttpCollectionKeys" value="10000" />
    <add key="aspnet:RestrictXmlControls" value="true" />
    <add key="FeedCacheTime" value="300" />
    <add key="FeedPageUrl" value="/_layouts/15/feed.aspx?" />
    <add key="FeedXsl1" value="/Style Library/Xsl Style Sheets/Rss.xsl" />
    <add key="ReportViewerMessages" value="Microsoft.SharePoint.Portal.Analytics.UI.ReportViewerMessages, Microsoft.SharePoint.Portal, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
    </appSettings>

  • What is Data filtering and Segment filtering in ALE/IDOCs

    Hi sap gurus
    what is Data filtering and Segment filtering in ALE/IDOCs

    Hi,
    Filtering at the IDoc Level
    Identify the filter object (BD59)
    Modify the distribution model
    Segment Filtering
    specify the segments to be filtered (BD56)
    The Reduced IDoc Type
    Analyze the data.
    Reduce the IDoc type (BD53)
    Thanks and regards.

Maybe you are looking for