Incremental conversion worked best. The peak-finding algorithm delivered immediate ROI, proving the concept.
If you are interested in converting LabVIEW code to C, here are some additional resources to consider: convert labview to c
There is no single method. Choose based on your project size, timeline, and risk tolerance. Incremental conversion worked best
Example for the average function: