I am having problem with calculating the hartrate for realtime measurement with a Daq-card and LED sensor. I am now using signal simulate to simulate the signal and de peak detector managed to count de peaks. But when calculating the heart beat it doesn't work. And now I am wondering if the way I am calculating the heart rate will work in realtime measurement with a Daq-card? This is my VI: