Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

vector subset

Dear All,

 

I have a vector size of 1000.  From this vector I want to duplicate/ extract the contents from element #500 - #1000.  In summary, I need to create vector, whose contents are preserved and the same from the 1st vector but of different vector size/ or with offset.  Is there an NI built-in function to do this? How?

 

 

Thanks for any inputs.

Regards,

0 Kudos
Message 1 of 2
(6,309 Views)

After browsing through the helpfile, I found a function, Subset().  This function does exactly, what I intend to do.  It's a member of the CNiVectorT class.  My problem is that I cannot access it from my vector.  Please give an example or show me the usage.  All inputs are welcome.

 

Thanks

0 Kudos
Message 2 of 2
(6,242 Views)