If you have the advanced analysis library, use the derivative VI. It implements a simple linear interpolation of the closest points. A more robust method is to use Savitzky-Golay filtering, but you will need to roll this one yourself. See
Numerical Recipes in C, second edition or better, by Press et. al. for details. That is too much info for this message board. LV has all the building blocks to make it easy. It did it once many years ago, when I was at a different company. I was using LV 5.0. I don't have the code any more. Good luck.