ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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
(6,991 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
(6,985 Views)

I'm gonna give it a try. 

0 Kudos
Message 3 of 6
(6,982 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
(6,969 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
(6,956 Views)
Solution
Accepted by Cashany

Here u go. 

 

Message 6 of 6
(6,933 Views)