Biomedical User Group Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Finding RMS, Mean and Median Power Frequency of EMG signal

Hello to Zhijun Gu and biomedical user group members.

Im currently trying to find the Root Mean Square (RMS), Mean Power Frequency (MNF) and Median Power Frequency (MPF) of one channel of EMG signals measured from my forearm muscles in real time. I constructed a circuit to measure EMG signals and placed an optocoupler (for safety) in between the output of the EMG circuit and input channel of the NI USB-6008 DAQ which I am using. Using an optocoupler is known as galvanic isolation. The purpose of galvanic isolation is to separate the ground of the EMG circuit and the ground on the NI USB-6008. (I did ths under supervision of my professor)

As for the labview part, im following Zhijun Gu's example entitled [NI Days 2009 China Demo] EMG Analysis Using Biomedical Startup Kit which is available in the documents section. On the DAQ Assistant I set both samples to read and rate to 5000:

sample_rate.JPG

I have used the following block diagram:

RMS_MNF_MDF_Block.JPG

I managed to display EMG signal and power spectrum using waveform graphs however im not getting the correct results for the RMS, MNF and MDF.:

RMS_MNF_MDF.JPG

What corrections/suggestions should I do on this VI in order to get correct RMS, MNF and MDF readings?

Thanks!

Jazlan

Labview 2010

0 Kudos
Message 1 of 6
(8,805 Views)

Here are the attached images of the block diagram and front panel

Download All
0 Kudos
Message 2 of 6
(4,370 Views)

I forgot to mention that in the example entitled: [NI Days 2009 China Demo] EMG Analysis Using Biomedical Startup Kit, the example program finds the RMS, MDF and MNF of an EMG signal stored in tdms file format. Im trying to find the RMS,MDF and MNF from a real time measured EMG signal aquired through NI USB6008 DAQ device..

0 Kudos
Message 3 of 6
(4,370 Views)

Hi Jazlan,

I am not sure why your x axis is so huge number. I suggest you first save your signal (30sec or 1minute) with muscle contraction to tdms to verify your codes (You could use Biosignal Logger in Biomedical Startup Kit). Then try to see whether it works in real time mode.

You could also attach your tdms file when you have for us to have a look.

Thanks!

ZJ Gu

0 Kudos
Message 4 of 6
(4,370 Views)

Hi Jazlan,

Im currently working on similar project like your figure above. Would like to ask, did u manage to get MPF in real time?? I tried the example block diagram in labview on my project but i din manage to get the MPF. Furthermore, i save my data in csv instead of tdms. Should i compute the MPF blocks outside the loop?

Thanks.

0 Kudos
Message 5 of 6
(4,370 Views)

Hello,

i've "fought" to implement some MPF and MNF analysis in my Master degree.

Unfortunaly, MPF and MNF vi in biomedical toolkit didn't worked for me.... it was needed to use "advanced signal processing" toolkit and some implementation. RMS vi is in biomedical is ok.

May this help a little. Take a look at:

https://decibel.ni.com/content/message/28056#28056

Good research!

0 Kudos
Message 6 of 6
(4,370 Views)