LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Slider control bug?

Is there a known problem with the slider control?

I have one (attached) that is setup to coerce to the nearest 0.1 and the coercion works on the positive side of zero on the slider but not on the negative side.

There is also very tiny positive number (+1.94E-16) to be found on what appears to be the negative side of the zero point as the slider slides.
0 Kudos
Message 1 of 5
(2,735 Views)
If you change the Data Range from +/- Inf to anything within +/- 1.0E+12, the control coerces as intended. Don't ask me why.
- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 5
(2,735 Views)
Try entering values for Data Range instead Inf. I tried that and it worked. Also change (under format and precision) from auto format to floating point format. I don't know why the tiny numbers are shown.
Hope this somewhat helps.
0 Kudos
Message 3 of 5
(2,735 Views)
Hi,

Real numbers (e.g. dbl) can not be set to all numbers exactly. this is
because the resolution of the dbl is limited (32 bits). So the very small
deficiencies can not be avoided.

To avoid numbers like -2.78E-17 being displayed, select the
format&precision, and use floating point notation.

Regards,

Wiebe.


"Warren Massey" wrote in message
news:5065000000080000007AEC0000-1079395200000@exchange.ni.com...
> Is there a known problem with the slider control?
>
> I have one (attached) that is setup to coerce to the nearest 0.1 and
> the coercion works on the positive side of zero on the slider but not
> on the negative side.
>
> There is also very tiny positive number (+1.94E-16) to be found on
> what appears to be the negative side of the zero point
as the slider
> slides.
0 Kudos
Message 4 of 5
(2,735 Views)
Hi Warren,

Thank you for the observation.

I will report this behavior to the R&D department.

Best regards,
Philip C.
National Instruments
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
0 Kudos
Message 5 of 5
(2,735 Views)