Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

How to compute a 400-line spectrum from an 800-line spectrum?

I have collected FFT data at 800 lines and would like to display it as if it had been taken at 400 lines.
0 Kudos
Message 1 of 2
(5,733 Views)
Hello skip,

I am not familiar enough with the mathematics that you are doing in order to give you a definitive answer. But if you want to simply decimate (eliminate array elements) your FFT data array, keep in mind that you have the option of using the following functions with the Measurement Studio Analysis components:

Measurement Studio 6.0 CWDSP ActiveX control (Professional/Enterprise):

Function CWDSP.Decimate(xArray, dFact, ave)

Measurement Studio 7.0 Analysis .NET Assembly (Professional/Enterprise):

Function NationalInstruments.Analysis.Dsp.SignalProcessing.Decimate(ByVal inputData As Double(), ByVal decimatingFactor As Integer, ByVal averagingOn As Boolean) As Double()

Both of these of these functions will eliminate array ele
ments and return the decimated array. You can look in the Measurement Studio help for more information.

However, simply eliminating elements from your FFT array may not be what you want to do (and may not be mathematically correct), so you'll need to determine this.

David McClelland
NI Application Engineer
Message 2 of 2
(5,733 Views)