Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Smooth values on RTMCPro Graph


ScottB Mar 2, 2012 05:20 AM

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.


Mavada Mar 2, 2012 10:29 AM

you can use the offset function...


ChipsNSalsa Mar 2, 2012 10:15 PM

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.


ScottB Mar 4, 2012 01:32 AM

Thanks for the code, it works a treat and allowed me to complete the project so very much appreciated!

Cheers,

Scott.

Log in or register to post/reply in the forum.