LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

1D array square root function

Is there a function in cvi to take the square root of a 1D array, element by element?
If not, what would be the fastest method of calculatng this?

I'm using CVI 7.0 with the advanced analysis library, so I have access to the 1D array operations.

Thanks-
-stephen
0 Kudos
Message 1 of 2
(2,803 Views)
Is there a function in cvi to take the square root of a 1D array, element by element?
If not, what would be the fastest method of calculatng this?

I'm using CVI 7.0 with the advanced analysis library, so I have access to the 1D array operations.

Thanks-
-stephen
There is no 1D function to do this but you can roll your own easily in C:
 
for(i=0;i<MaxArraySize;i++)
   array[i]=sqrt(array[i]);
 
Any array routine is going to do the same thing, so you probably won't get it much faster than that.
 
Dave 🙂
0 Kudos
Message 2 of 2
(2,787 Views)