01-21-2008 09:53 AM
Hi,
I have not found very much information on how to use the Savitzky-Golay filter correctly with VB.net. It only takes a one-dimensional array and when I try to feed data into it, I get Specified conditions on the input arrays have not been met. Analysis Error Code: -20008. I'm not sure if I am entering a correct side point number in the function either (is it the total number of points or is it (2*(totalpoints)+1)?). Either way I still get the same error message as shown above. I'll post a code example below and hopefully someone can help me or show me what I am doing wrong. I just threw something together at random to try out that's in VB.net.
Dim I As Integer = 0 Dim arr(99) As Double Dim myArr(99) As Double For I = 0 To 99
arr(I) = Rnd(1500)
NextmyArr = NationalInstruments.Analysis.Dsp.Filters.SavitzkyGolay.Filter(arr, 2, 2 * 100 * (2) + 1)
01-22-2008 08:46 AM
01-22-2008 10:26 AM