While working on some temperature programs, we found we needed to use the natural logarithm function.
The natural logarithm function provided by Labview is not supported in NXT. So we went ahead and developed this algorithm. It works if the operator is greater than 0 (x > 0).
The algorithm approaches natural logarithm by performing an iterative calculation. The number of iterations can be adjusted. The more iterations, the more accurate the result. The fewer the iterations, the faster the result. We set the default at 125, but get relatively useful results at even 20 iterations.
We left the source open, so feel free to poke around and adjust the number of iterations or the algorithm yourself!
Download the VI here.