From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How to access data in CNiReal64Vector

I acquire data and put it in variable CNiReal64Vector and need to access the waveform data in CNiReal64Vector. How do I get the array of waveform so I can do further analysis with it.
0 Kudos
Message 1 of 3
(3,048 Views)
Well, if you are using our analysis functions (from the CNiMath class), you can just pass the CNiReal64Vector into the functions. If you are using your own analysis and need a double pointer to the data, you can just put the CNiReal64Vector in the for the double pointer. The vectors have the ability to cast to a data pointer.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 3
(3,048 Views)
You access data like this:

CNiReal64Vector v;
v.Add(23);
v.Add(24);
v(0) = v(1); // index array with parenthesis instead of brakets
0 Kudos
Message 3 of 3
(3,048 Views)