The derivative function you are using is very susceptible to noise. If your actual waveform has any noise, it will be amplified in the derivative. A much better method is the Savitzky-Golay filter. These can be used to get derivatives of any order and can be easily tailored to the characteristics of your data. A Savitzky-Golay filter does the equivalent of a polynomial least squares fit to the points surrounding the point of interest, then takes the value, or a derivative of the resultant equation. This gives much better noise immunity than the two-point scheme used by the LabVIEW utility. I have used this in the past to analyze data that was unusable with a two-point scheme.
Unfortunately, said analysis was done at another company and I do not have code to share. Fortunately, the algorithms are relatively simple. Find a second edition or better of Numerical Recipes in C by Press, et. al. (in most university libraries and larger public libraries). The book does a good job of explaining the algorithm and its application. If you can't find a copy, you can probably browse the section at Amazon.com.
Good luck!