LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

array of sound levels read from the entire file

Hello,
I would like to rad a wav file and  take the values from the exp average Sound Level VI or the Runnint Leq VI and do a percentile calculation. At the moment, the percentile brings back just the last chunk of data read from the VIs in question. How can I buld an array that will contain all of the averaged values (from the whole wav file) in one array and wire that to the percentile VI?
Thanks

Milan
0 Kudos
Message 1 of 5
(3,143 Views)

Hello,

I can try to help you. But first you must invest a little more o time writting your question. Because I couldn't understand it. Do the following:

1 - Explain again what's the idea

2 - attach the existing code that you have made

3 - what's your labview version

4 - Explain what are those .vi that you mentioned (Runnint Leq VI ) because I don't see them on the standard Labview

 

Best Regards,

 

 

 

Software developer
www.mcm-electronics.com





PORTUGAL
Message 2 of 5
(3,127 Views)
Hi Jorge,
The VIs mentioned are part of the Sound and Vibration toolkit. After the signal is scaled down to engineering units, the exp average VI performs exponential averaging of the instantaneous sound pressure in desired time spans. The Running Leq performs linear averaging of insantaneous sound pressure for the desired integration time and computes equivalent sound level. The sound and vibration toolkit is version 4 and Labview is version 8.2. But if you don't have the toolkit, the code will not be of much help.

Let me try to put it this way. Suppose I was analyzing wav file in 8192 byte pieces and passing it to the percentile VI. The percentile VI takes the array of values contained in that 8192 sample and computes the desired percentile before moving to the next sample. What I need is to calculate the percentile over the whole population of samples, not just one sample at the time. I guess I need to append these individual arrays into one bigger array but I am not quite sure how to do it.
I need to convert the waveform to waveform array (that part is ok), and then I need to build an array that will contain all of the values from separate samples processed one at a time before going into the percentile VI.
Does this give you a bit more information about the problem? I'll try to build a VI with similar actions but without the Sound and Vibration VIs
Thanks,

Milan
0 Kudos
Message 3 of 5
(3,122 Views)

Hello again,

it seems that the major problem it's just to append (concatenate) all the arrays. I'm correct?

In attach i've 2 things. One it's a .vi that implements the idea. The image it's what you have to do in other to put the "build array" function appending.

I hope that this things help you. if not. Try to explain me again only the programming part. IOIOI

Best regards,

Software developer
www.mcm-electronics.com





PORTUGAL
Download All
Message 4 of 5
(3,118 Views)
Thanks a lot, this solved my problem!

Milan
0 Kudos
Message 5 of 5
(3,103 Views)