Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Example of CNiReal64Vector constructor overload

I need some example code to illustrate CNiReal64Vector constructor overloading to access a double array. eg(double*)spectra, (unsigned int)dataSize.
0 Kudos
Message 1 of 3
(3,751 Views)
The answer to this question from another contributor has a bit of example code that shows what you are trying to do.

Tony H
Measurement Studio
0 Kudos
Message 2 of 3
(3,751 Views)
Here's an example of this:

const int size = 1000;
double xRealArray[size];
double xImagArray[size];

// Populate xRealArray and xImageArray ...

CNiReal64Vector xReal(size, xRealArray);
CNiReal64Vector xImage(size, xImagArray);
CNiMath::FFT(xReal, xImage);

- Elton
0 Kudos
Message 3 of 3
(3,751 Views)