Hi,
The specifics on the functions that you use will depend on the trends that you want to detect. You could use a low-pass filter to get rid of spikes or noise and then compare the level. You can also use a liner fit to see if the data has a trend upwards or downwards.
If the data is coming in one sample at a time, you can use the point-by-point version of the analysis VIs; they will keep the buffer for you and do the running processing.
I hope this helps. Let me know if you have any further questions.
Regards,
Juan Carlos
N.I.