DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Store results of ChnFiltCalc in original channel

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

0 Kudos
Message 1 of 3
(4,540 Views)

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

0 Kudos
Message 2 of 3
(4,530 Views)

Thanks Ralf.  That did the trick.

0 Kudos
Message 3 of 3
(4,518 Views)