11-28-2012 04:26 PM - edited 11-28-2012 04:28 PM
Hello,
I have acceleration data in several Groups. Each Group has 15 channels. I wish to apply a low filter to all channels in all Groups. How do I go about storing the results in the original channels instead of having new channels created?
Here is my code...
Dim iGroupCount, i
For iGroupCount = 1 to GroupCount
Call GroupDefaultSet (iGroupCount) 'sets the current group as the default
For i = 1to15
CallChnFiltCalc("","["& iGroupCount &"]/[" & i & "]","","IIR","Bessel","Low pass",2,100,0,0,1.2,25,"Hamming",1,0)
Next
Next
Thanks!
Doane
11-29-2012 03:52 AM
Hi DBuksar,
The 3rd parameter of the function call specifies the result channel R of the calculation:
Call ChnFiltCalc(XW, Y, R, FiltStruc, FiltStyle, FiltType, FiltDegree, FiltLimit, FiltLowLimit, FiltUppLimit, FiltWave, FiltSamples, FiltWndFct, FiltZeroPhase, FiltCorrection)
Thus it should be sufficient if you use your second parameter also as the third parameter instead of leaving it empty:
CallChnFiltCalc("","["& iGroupCount &"]/[" & i & "]","["& iGroupCount &"]/[" & i & "]",...
Hope this helps,
Ralf
11-29-2012 09:55 AM
Thanks Ralf. That did the trick.