Additional Information
The peak detect VI is meant for detecting peaks in an analog signal, not so much digital signals. The VI finds the peak locations in each block, relative to the previously analyzed blocks. This can cause the VI to detect peaks at the rising and falling edge if the signal is flat for too long, rather than the center of the actual peak. To understand more about it read
this article on peak detection. Attached is a VI to help explain some of the behavior.