Hi,
I am trying to plot some noisy data on RTMCPro, if I set the graphs to AutoRange then the spikes distort the graph range so the real data is hard to see, if I set the range manually I have to know what the min/max values will be and again the fine scale patterns are lost.
Before I write a QC program is there anyway in RTMCPro to plot smoothed data, that is to remove the spikes before plotting?? I am writing the display system today and need to delicer it by tomorrow so in a bit of a hurry!!
Thanks,
Scott.
you can use the offset function...
Your QC algorithm could possibly be applied to the series itself. Here's an example using five minute data:
Alias(N,"Zeus:CS110.EFM5min.EFM_Efield_v_m_Avg");IIf(ABS(N-ValueAtTime(N,TimeStamp(N),nSecPerMin*5,0))>200,NoPlot,N)
The above isn't a very solid QC method. It has flaws in its logic. It's meant to show some of the expression capabilities of RTMC and is not a complete solution to your issue. However, in the example, if the difference between the current value and the previous value exceeds 200 the current value will not be plotted. Maybe you can come up with an expression that filters out all of the spikes in your particular data.
Thanks for the code, it works a treat and allowed me to complete the project so very much appreciated!
Cheers,
Scott.