03-18-2014 08:40 AM
i am working on a projet of detecting pulses using led and photodiode,i want to get the heart rate in bpm from the pulses.i got a VI from NI website.i am attaching the zip file with this.but the problem i have is,due to change in logic in my hardware i am getting negative peaks for every pulse,if there is no pulse,i am getting a constant voltage of 4 volts,if a pulse is detected i am getting output in around .1 volts.is there a chance of changing the program to suit my requirement,that is give the bpm from negative peaks?i tried changing "peaks" to "valleys" in peak detector VI,but there was no change.
03-18-2014 10:45 AM
Invert the signal and add 4 to it before passing it through the peak detector.
03-18-2014 11:10 AM
thanks sir,will try that.thanks for you fast response.