ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

data range Labview 8.2?

Is this a bug?

I have a stange thing when settings the data range in Labview 8.2.1. See attached picture.



The value will become 10 when I type 11.
The value will stay 9.9 if I increment from 9.8 up.

In LV 7.1 and LV8.5 this works like I imagined it would.



Message Edited by andre.buurman@carya on 11-06-2007 03:51 PM
Regards,
André (CLA, CLED)
0 Kudos
Message 1 of 6
(3,621 Views)
Hi Andre,

maybe this is due to floating point behaviour... The value 0.1 cannot be represented exactly in floating point, this may result in the coercion/incrementing problem...

I tested the same with my LV8.2.1 and I could increment up to 10 (using the increment button of the numerical control or by using "arrow up" key).
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(3,613 Views)
Its very strange. Sometimes it seems to work, most of the time not. There seems to be a difference between edit and run mode.

I think I just have to live with it or find some workaround for now.
Regards,
André (CLA, CLED)
0 Kudos
Message 3 of 6
(3,607 Views)
I could be wrong, but you have specified that particuliar control or indicator will only have a value between .1 and 10. You have the coerce turned on so it will force the system to respect those values.
0 Kudos
Message 4 of 6
(3,597 Views)
I imagined that the 10 would be the maximum allowable value, so when you enter e.g. 11 in coerces to 10.
Regards,
André (CLA, CLED)
0 Kudos
Message 5 of 6
(3,591 Views)
Hi Joseph,

I also had to read this twice:
The problem isn't the coercion to 10.
The problem of Andre is: sometimes/often he cannot increment the value till 10 but stays at 9.9...

@Andre:
A possible workaround is to use integers with range of 1 to 100 and do the scaling to range 0.1-10 by calculation.
Another workaround is to use a slide instead of a simple numeric. You can also set increments and range for the slider and show a digital control...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 6
(3,582 Views)