This is a challenging proposition, in fact, National Instruments has invested man-years in enhancing the FFT to include averaging, power in band, zoom FFT and so on. Averaging includes RMS, Vector, and Peak Hold features. These are all implemented as multichannel functions in the Sound and Vibration Toolset. You can download the manual from the web site. What they have done here, is to work through all the details of keeping the history for each channel separately, and so forth. Even though their is an additional charge for the toolset, you will find that the cost of the toolset is about the same as a couple days of your time.
I hope this helps.
Sincerely
Preston Johnson
Preston Johnson
Solutions Manager, Industrial IoT: Condition Monitoring and Predictive Analytics
cbt
512 431 2371
preston.johnson@cbtechinc