Admin Production ni-theme
Current Publication

ATTR_XLOOSE_FIT_AUTOSCALING_UNIT

LabWindows/CVI

ATTR_XLOOSE_FIT_AUTOSCALING_UNIT

Type: Control attribute
Description: The base 10 logarithm of the loose fit factor. The loose fit factor determines how the maximum and minimum values of the scale are calculated when loose fit autoscaling is enabled.

(Linear Scale) The maximum is the smallest multiple of the loose fit factor that is greater than or equal to the largest value of all plots. The minimum is likewise the largest multiple of the loose fit factor that is less than or equal to the smallest value of all plots.

For example, if the loose fit unit value is 1, the loose fit factor is 10. In that case, if the largest value of all plots is 41 and the smallest value of all plots is 27, the new maximum is 50 and the new minimum is 20.

(Logarithmic Scale) For a loose fit unit equal to 0, the maximum is the smallest decade that is greater than the largest value of all plots. The minimum is likewise the largest decade that is smaller than the smallest value of all plots. The decade is the power-multiple of 10 that is closest to the largest value or smallest value of all plots, respectively.

Examples:


Smallest value: 0.0234, new minimum: 0.01

Largest value: 0.0567, new maximum: .01


Smallest value: 3.45, new minimum: 1

Largest value: 5.678, new maximum: 10



For loose fit values other than 0, the loose fit unit is the offset of the position of the most significant digit. The most significant digit of a number is the first non-zero digit of the number regardless of the decimal point.

Examples where the loose fit unit is 1:


Smallest value: 0.0234, new minimum: 0.02

Largest value: 0.0567, new maximum: 0.06


Smallest value: 3.45, new minimum: 3

Largest value: 5.678, new maximum: 6


Examples where the loose fit unit is 2:


Smallest value: 0.0234, new minimum: 0.023

Largest value: 0.0567, new maximum: 0.057


Smallest value: 3.45, new minimum: 3.4

Largest value: 5.678, new maximum: 5.7
Control Types: Graphs.
Data Type: integer
Valid Range: -308 to 308
Default Value: 0
LabWindows/CVI
Compatibility:
LabWindows/CVI 5.5 and later