Thank you for the help!! I am glad that it is working for the amplitude detection, but to find the 'time between' I could not program it. Can you tell me what the first block in the picture is all about. [the block before 'peak detect'] You have specified certain values as 33,1000 etc. It would be good to get the details about these. At the same time if possible can u please attach the VI itself so that I can self check on the parameters.
Note: The input signal I am feeding is a real time ECG thro a circuit rigged up on NI ELVIS. I am getting the ECG waveform with a good gain.