Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. source code to eliminate power line noise frm ECG signal

source code to eliminate power line noise frm ECG signal

Scheduled Pinned Locked Moved C#
help
7 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ashwiny
    wrote on last edited by
    #1

    im doing research about eliminate noise in ECG signal..so that im looking for source code which will eliminate the 50Hz power line noise from the ECG signal.any programming language also acceptable..but im more familiar with C language.please help me..

    A 1 Reply Last reply
    0
    • A ashwiny

      im doing research about eliminate noise in ECG signal..so that im looking for source code which will eliminate the 50Hz power line noise from the ECG signal.any programming language also acceptable..but im more familiar with C language.please help me..

      A Offline
      A Offline
      ashwiny
      wrote on last edited by
      #2

      is there any other sites where i can find information?

      E 1 Reply Last reply
      0
      • A ashwiny

        is there any other sites where i can find information?

        E Offline
        E Offline
        ekynox
        wrote on last edited by
        #3

        couldnt you write a filter to do this ? Also have you considered using matlab. I do recall the DSP library within matlab is very extensive when it comes to filter design. The article below refers to using a Finite Impuluse Reponse filter for the noise removal from ECG http://www.eng.nus.edu.sg/EResnews/0410/sf/sf_7.html[^] Also if you find converting the transfer function of a FIR filter into code difficult then try this book http://www.dspguide.com/[^] It provides psudeocode, should be easy enough to convert to c.

        A 1 Reply Last reply
        0
        • E ekynox

          couldnt you write a filter to do this ? Also have you considered using matlab. I do recall the DSP library within matlab is very extensive when it comes to filter design. The article below refers to using a Finite Impuluse Reponse filter for the noise removal from ECG http://www.eng.nus.edu.sg/EResnews/0410/sf/sf_7.html[^] Also if you find converting the transfer function of a FIR filter into code difficult then try this book http://www.dspguide.com/[^] It provides psudeocode, should be easy enough to convert to c.

          A Offline
          A Offline
          ashwiny
          wrote on last edited by
          #4

          thanks for your message..i have no background in matlab..so my lecturer asked to go for c language..i couldnt open the link of the article you'd given to me..i went through the dsp guide..my reserach about development of adaptive digital notch filter for the removal of power line noise from biomedical signal(ECG).

          E 1 Reply Last reply
          0
          • A ashwiny

            thanks for your message..i have no background in matlab..so my lecturer asked to go for c language..i couldnt open the link of the article you'd given to me..i went through the dsp guide..my reserach about development of adaptive digital notch filter for the removal of power line noise from biomedical signal(ECG).

            E Offline
            E Offline
            ekynox
            wrote on last edited by
            #5

            I assume you are doing a paper in digital signal processing then doing it without matlab is a crime. Matlab offers you a much better environment for signal processing algorithm development and analysis then C would. Try this link for info on notch filter design for removal of a 50hz signal using matlab. http://www.dsprelated.com/showmessage/57537/1.php Asking someone to give you source code on forums wont make you magically complete your project therefore you need to start reading some IEEE papers on the adapative digital notch filter and figure out how to implement it. That's where the power matlab comes into play, it has built in routines to allow you to do the mathematical aspects of filter design alot easily. Personally, I think your lecturer suggesting to do it in C doesnt really understand the concept of prototyping all too well. The issue is that if you do it in C you will have to do all the mathematics all over again whereas in matlab most of the mathematics are standard routines which you call to make your algorithm work. Learning Matlab is worth while because the concepts of DSP is alot easily explained and learned through matlab then any other platform. Good luck

            A 1 Reply Last reply
            0
            • E ekynox

              I assume you are doing a paper in digital signal processing then doing it without matlab is a crime. Matlab offers you a much better environment for signal processing algorithm development and analysis then C would. Try this link for info on notch filter design for removal of a 50hz signal using matlab. http://www.dsprelated.com/showmessage/57537/1.php Asking someone to give you source code on forums wont make you magically complete your project therefore you need to start reading some IEEE papers on the adapative digital notch filter and figure out how to implement it. That's where the power matlab comes into play, it has built in routines to allow you to do the mathematical aspects of filter design alot easily. Personally, I think your lecturer suggesting to do it in C doesnt really understand the concept of prototyping all too well. The issue is that if you do it in C you will have to do all the mathematics all over again whereas in matlab most of the mathematics are standard routines which you call to make your algorithm work. Learning Matlab is worth while because the concepts of DSP is alot easily explained and learned through matlab then any other platform. Good luck

              A Offline
              A Offline
              ashwiny
              wrote on last edited by
              #6

              hi, can i draw a circuit in matlab? ashwiny

              E 1 Reply Last reply
              0
              • A ashwiny

                hi, can i draw a circuit in matlab? ashwiny

                E Offline
                E Offline
                ekynox
                wrote on last edited by
                #7

                so you finally went down the matlab part aye. What made you change your mind ? Attempting to write either Laplace Transforms or Fourier algorithms in c# must have been royal pain in the a$$ right ? Ofcourse Matlab can do circuit analysis, provided you have Simulink installed with your matlab installation and the corresponding blockset. I dont know which blockset in simulink does circuit analysis as I havenot touched matlab in 4 years. Have you tried looking up the Mathworks website ? Try this link as well: http://www.ebookee.com/Digital-Circuit-Analysis-and-Design-with-Simulink-Modeling-and-Introduction-to-CPLDs-and-FPGAs_66861.html[^]

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups