LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Auto Divisions and Auto Precision in Graphs

Solved!
Go to solution

Hi All,

 

Just a question about how divisions and precision work on a graph axis when set to VAL_AUTO.  I know what happens to the scaling when it's made automatic, but what is the basis for auto precision and auto divisions?  Are there default values?  I've been trying to look for this in CVI help with no luck.

 

Thanks,

 

Judy

0 Kudos
Message 1 of 4
(3,341 Views)

Judy,

 

Are you experiencing a problem with the precision or divisions? What kind of behavior are you trying to achieve?

National Instruments
0 Kudos
Message 2 of 4
(3,303 Views)
Solution
Accepted by topic author judyh

Hi Judy,

 

Basically the auto settings just mean that CVI will attempt to choose what it thinks are the best settings for divisions and precision. The graph axis will show as many divisions as it can without the numbers being too cramped together. The number of visible divisions is calculated first, then we do Auto-Precision. First we check to see what precision would be needed between divisions because the divisions are all evenly spaced. If 0 precision is needed (i.e. the divisions are whole numbers apart) then we look at the min and max values of the axis and determine which requires the most precision. There's some fuzzy logic involved too so that values like 1/3 don't show as 0.3333333333333333333 or something silly.

 

There aren't any default values as these are calculated on the fly based on the size of the graph and the min and max values of it.

Kevin B.
0 Kudos
Message 3 of 4
(3,302 Views)

Thanks guys,

 

I'm not having problems with them, but I wanted to explain them to users in the manual.

 

Judy

0 Kudos
Message 4 of 4
(3,283 Views)