01-24-2013 11:16 AM - edited 01-24-2013 11:17 AM
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
01-24-2013 11:45 AM
01-24-2013 04:04 PM
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.
01-24-2013 06:20 PM
Can you share some of your code? I'm having trouble figuring out your problem.
01-25-2013 01:59 AM
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...