LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

split 1D array into elements

Solved!
Go to solution

In each iteration of a loop, I want to take root-mean-squre of the last 16520 elements of a 1D array (the last 10 seconds of sampled data). 

But I'm getting the following error: 

 

I also used "to double" converter, but I'm getting the 2nd error massage: 

 

 

array to single data.png

 

array to single data2.png

0 Kudos
Message 1 of 6
(5,600 Views)

 

Use For Loop to Index ur FXP Array and use Convert it to DBL.  

X terminal of RMS Function is a Scalar DBL Element.

Message 2 of 6
(5,594 Views)

I'm gonna give it a try. 

0 Kudos
Message 3 of 6
(5,591 Views)

If u need work  just with some elements in array, use Array Subset function to index and put ur desired lenght.

Message 4 of 6
(5,578 Views)

I think I should forget "RMS PtByPt" and switch back to ordinary "RMS" with a FIFO queue: 

 

 rms two options.png

0 Kudos
Message 5 of 6
(5,565 Views)
Solution
Accepted by topic author Cashany

Here u go. 

 

Message 6 of 6
(5,542 Views)