07-30-2015 12:38 PM
Hi Wonder if there is a way around for above, I could not have found a suitable property to achieve this.
My signal varies 0-1000N. Autoscaling works perfectly fine. But for any steady value, say 20N, maximum and minimum adjusts to roughly 21N and 19N responding to Noise taking the whole space of the graph. Is there a way to set these to say 10 and 30N and still have y scale auto-scaling?
Thanks
K Waris
07-30-2015 12:48 PM - edited 07-30-2015 12:48 PM
I didnt know the answer so I had a 2 minutes look and perhaps the Loose Fit property is intended for this issue?
Cheers,
Jimmy
07-30-2015 12:56 PM
You could get the Min/Max values of your array (or a subset of your array, depending on how many samples you are displaying on your graph), subtract a few units from your min and add a few to your max, then use those values to dynamically set the min & max values of your graph Y scale. The resulting graph will always have a bit of unused area above and below the graphed data, but should eliminate the problem of noise filling your graph on steady readings.
Good luck.
07-31-2015 02:28 AM
07-31-2015 03:09 AM
"First measure the dynamic range of the data", Do you mean comparing with previous value to see if new value is more than 10??.
I am plotting 10000/s and my loops do not have room for more ticks unfortunately. And waiting for properties to update the graph scale may take more time!Just thinking out loud! I thought there might be an easier way. I do have the ability on my front panel to switch off autoscale and set manual scale by moving vertical numeric controls. May be it is a good alternative! Thanks anyways
K Waris
CLD
07-31-2015 07:06 AM
07-31-2015 08:30 AM
With all due respect, its a graph not a gauge. If x scale range is set to say 10s ( x scale max - x scale min) and I load graph with 10000 points every seconds, it would simply draw the trends and human eye would see and analyze the trend as it plots over 10 seconds. And a keen user may zoom in using the graph pallette buttons.
Will see how it goes. I am only being optimistic that Labview would do it all for me. I may end up learning the hard way!
K Waris
CLD
07-31-2015 11:53 AM
07-31-2015 12:32 PM
It is 800/600 px. Obviously I may get thicker lines for more samples
I just wanted to make sure that I understand your suggestion. So for the chunk of data points - say 10000- you suggest find maximum and minimum which probably could be done using array max/min function and if it is less than 10 then turn off auto scale and set the scale based on average of the values of data points in the array??
K Waris
CLD
07-31-2015 02:39 PM