LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

collect updating numeric values into an array

Hi,

 

 

I have a RMS numeric value valued among 352 samples (RMSvi from mathematics blockset). How can I collect its values into an array?

I used 352 samples because my sample rate is of 44100Ss and I want RMS is valued every 0,008 seconds; so I think, every second it (RMS array) have to be of 125 elements

 

 

0 Kudos
Message 1 of 5
(2,436 Views)

Hi Escape,

 

use an autoindexing output tunnel of your loop, that runs the RMS calculation...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(2,424 Views)

The problem is that the rms is computed taking 352 samples step-by-step by an array subset block from a 44100 samples. There is a for loop with index from 0 to 44099 that moves 125 times by blocks of 352 samples. The subarray is compared with 352 (constant) and then if comparison is true, array is send to rms VI (rms VI is into a case structure).

Now if I put out from case struct rms value I must specify what happens if 352samples-comparison is false.

0 Kudos
Message 3 of 5
(2,411 Views)

Can you share some of your code?  I'm having trouble figuring out your problem.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 5
(2,397 Views)

Hi Escape,

 


Now if I put out from case struct rms value I must specify what happens if 352samples-comparison is false.


 

Yes, sounds reasonable. When using an IF-THEN-ELSE construct one should provide outputs for THEN and ELSE...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 5
(2,383 Views)