11-06-2009 05:58 AM
Please help me? I am doing my final project in labwindows.
I get data from RS232 serial port into labwindows stripchart. Strip chart plots data very fine.
But how can I calculate the heart rate with peak detektor?
The stripchart gets every byte and plots. How can I pass the data from stripchart to peakdetektor and calculate heart rate?
please answer me in detail and very quickly, there is no more time!!
Thanks a lot.
11-06-2009 07:00 AM
jeyaseelan wrote:please answer me in detail and very quickly, there is no more time!!
wow... your expectations are a bit high.. I don't know if I want to reply or not..
Since I'm a usually a nice guy, I'll provide a bit of help.
For this type of peak detection, where you have a continuous wave of peakes and valleys, do you want an automatic peak detection, or do you want to set a threshold value which is set and will detect peaks that cross the threshold? Whichever choice, that will be the algorithm that you need to develop as part of your project.
There are examples of such peak detection algorithms within this and a couple of other forums. It's a common project. Have you done any search for examples?
11-06-2009 07:17 AM
Have a look at the Life Sciences board which is for this sort of discussion: http://forums.ni.com/ni/board?board.id=LifeScience
There are a few threads discussing heart beat rate detection. Some of the discussions may have the code written in LabVIEW instead of CVI, so you may ask for help in the translation.
This one was written in LabVIEW: http://forums.ni.com/ni/board/message?board.id=170&message.id=356066
By the way, you do know that you are usually dealing with a 1D (probably) or 2D array of values.
So have a look at the following Application Note: Peak Detection Using LabVIEW and Measurement Studio. Look at the examples, you will find some CVI code. You might find the Features of the Peak Detector Functions useful. If you are looking for an example program that uses the PeakDetector() function, please take a look at \samples\analysis\phasedif.prj.