LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

One direction autoscale chart

I intend to show only the positive part of the chart. Because of noice, it will show some negative scales if I use autoscale x. I don't know whether we have a way to set the chart start from zero and autoscale x. Anyone can give some suggestions? Thanks in advance.
 
Guangde Wang
0 Kudos
Message 1 of 5
(2,946 Views)

You can prefilter the data going into the chart, put a minimum threshhold and replace the sub-th value with the minimum or 'nan' either way this should fool the rescale option.  You can also turn off the autoscale and set the maximum y value to 1.2 x max value of your data and fix the minimum value.

 

Paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 2 of 5
(2,939 Views)
Paul, thank you for your response. I'll filter the data.
 
Guangde
0 Kudos
Message 3 of 5
(2,929 Views)

One cool and little know trick is replace using a NAN, this will leave the plots discontinious that is it makes the filtered points not visible.  Replacing the negative values with zero gives the impression that the values were zero as opposed to invalid values.

 

Paul 

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 4 of 5
(2,917 Views)
...and learning to do that without using a loop (yes it is possible - in at least a couple ways) might be an interesting exercise in polymorphism and how NaNs are handled.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 5 of 5
(2,888 Views)