LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calculate RMS of EMG signal with 50 msec time constant

Hi there...I'm trying to write a program to process EMG signals.  I need to calculate the RMS of the EMG signal, but I need to do it in 50 millisecond chunks.  Basically, I want to take a signal, divide it into 50 msec bins, calculate the RMS of each bin, and create a new array where the RMS values from each bin are inserted into the array consecutively.  I know where to find the RMS functions, and I know how to build an array, but I don't know how to set up the VI so that it divides the signal into 50 msec bins before calculating the RMS of each. If anyone can guide me on how to accomplish this, I'd really appreciate it!
 
Regards,
 
Nadia.
0 Kudos
Message 1 of 2
(3,566 Views)

Hi,

give a look at the attached example.

I made it by "waveform" data type but you can easily change it in order to use array instead (in this case you need the "array subset" function.

I hope it will be a possible solution.

Bye

 

CLD - Labview Certified Developer
0 Kudos
Message 2 of 2
(3,560 Views)