<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Help with applying Butterworth Filter in Measurement Studio for .NET Languages</title>
    <link>https://ni.lithium.com/t5/Measurement-Studio-for-NET/Help-with-applying-Butterworth-Filter/m-p/3256921#M17618</link>
    <description>&lt;P&gt;I am having difficulties coding a Butterworth filter. &amp;nbsp;I need to acquire the data from an NI analog input, apply the filter and then continuous plot to the Waveform graph. &amp;nbsp;I have looked at the white paper but am still struggling to get the coding correct. &amp;nbsp;Can someone please help? &amp;nbsp;Here is what I have so far. &amp;nbsp;I need to apply the filter before I execute the append but I don't how to apply it. &amp;nbsp;I'm getting errors. &amp;nbsp;I can append the data continuously to the Waveformgraph fine so I know I'm good up to this point. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'Create aquiring task with channels.  Channels configurued in another sub&lt;BR /&gt;Dim data() As AnalogWaveform(Of Double)
Dim i As Integer = 0
Dim myTask As New NationalInstruments.DAQmx.Task("myTask1")
reader = New AnalogMultiChannelReader(myTask.Stream)
&lt;BR /&gt;'Create Filter and set filter parameters&lt;BR /&gt;Dim newFilter As New ButterworthLowpassFilter(filterOrder, samplingFrequency, cutoffFrequency)
Dim samplingFrequency As Integer = 1000
Dim filterOrder As Integer = 4
Dim cutoffFrequency As Double = 3.0

'This block of code appends raw data to the WFG, currently no filtering applied
 Try
                data = reader.ReadWaveform(samplingFrequency)
                i = 0
                For Each WaveformGraph In WFGS 'Collection of WaveformGraph objects
                    WaveformGraph.PlotWaveformAppend(data(i))
                    i = i + 1
                Next
Catch
End Try&lt;/PRE&gt;</description>
    <pubDate>Mon, 22 Feb 2016 17:14:52 GMT</pubDate>
    <dc:creator>busarider29</dc:creator>
    <dc:date>2016-02-22T17:14:52Z</dc:date>
    <item>
      <title>Help with applying Butterworth Filter</title>
      <link>https://ni.lithium.com/t5/Measurement-Studio-for-NET/Help-with-applying-Butterworth-Filter/m-p/3256921#M17618</link>
      <description>&lt;P&gt;I am having difficulties coding a Butterworth filter. &amp;nbsp;I need to acquire the data from an NI analog input, apply the filter and then continuous plot to the Waveform graph. &amp;nbsp;I have looked at the white paper but am still struggling to get the coding correct. &amp;nbsp;Can someone please help? &amp;nbsp;Here is what I have so far. &amp;nbsp;I need to apply the filter before I execute the append but I don't how to apply it. &amp;nbsp;I'm getting errors. &amp;nbsp;I can append the data continuously to the Waveformgraph fine so I know I'm good up to this point. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'Create aquiring task with channels.  Channels configurued in another sub&lt;BR /&gt;Dim data() As AnalogWaveform(Of Double)
Dim i As Integer = 0
Dim myTask As New NationalInstruments.DAQmx.Task("myTask1")
reader = New AnalogMultiChannelReader(myTask.Stream)
&lt;BR /&gt;'Create Filter and set filter parameters&lt;BR /&gt;Dim newFilter As New ButterworthLowpassFilter(filterOrder, samplingFrequency, cutoffFrequency)
Dim samplingFrequency As Integer = 1000
Dim filterOrder As Integer = 4
Dim cutoffFrequency As Double = 3.0

'This block of code appends raw data to the WFG, currently no filtering applied
 Try
                data = reader.ReadWaveform(samplingFrequency)
                i = 0
                For Each WaveformGraph In WFGS 'Collection of WaveformGraph objects
                    WaveformGraph.PlotWaveformAppend(data(i))
                    i = i + 1
                Next
Catch
End Try&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Feb 2016 17:14:52 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Measurement-Studio-for-NET/Help-with-applying-Butterworth-Filter/m-p/3256921#M17618</guid>
      <dc:creator>busarider29</dc:creator>
      <dc:date>2016-02-22T17:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help with applying Butterworth Filter</title>
      <link>https://ni.lithium.com/t5/Measurement-Studio-for-NET/Help-with-applying-Butterworth-Filter/m-p/3257472#M17626</link>
      <description>&lt;P&gt;Hi busarider29,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have a shipping example that is installed here:&amp;nbsp;C:\Users\Public\Documents\National Instruments\MStudioVS2013\DotNET\Examples\Analysis\Professional\Filtering\cs&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It shows how to use filters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;G-IV&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 14:45:30 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Measurement-Studio-for-NET/Help-with-applying-Butterworth-Filter/m-p/3257472#M17626</guid>
      <dc:creator>G-IV</dc:creator>
      <dc:date>2016-02-23T14:45:30Z</dc:date>
    </item>
  </channel>
</rss>

