LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

BUG Numeric with text

When you set the display format of a fractional numeric to e.g. "%#_g Mhz",
it becomes impossible to change it's value with the keyboard!

In LV 7.1, you can give the numeric key focus, and if the cursor is at the
numeric part, you can use arrow up and arrow down to increate or decrease
it's value.

In 8.2 and 8.5.1, the value turns to NaN when pressing the up or down arrow.
If you set a range, the value becomes the upper range value, even if you
press the down arrow.

This behavior doesn't occur when you set the display format to "%#_gMhz",
without the space... It also works fine with "%d Mhz", even if the control
is a dbl, but not with "%.0f Mhz"

It doesn't happen with any arbitrary letter, just the SI prefixes
(a,y,z,f,p,n,m,c,d,h,k,M,G,T,P,E,Z,Y).

If the value is e.g. 0, and you type a value and then press an arrow key,
the value becomes NaN, but if you click next to the numeric, the value is
set back to 0... If you type in 0, the display says 0, but is actually
1,70399E-313. If the value is 1, and you press the decreament button, the
value does become 0... If you type NaN in the control (replacing all the
text), the value also becomes 1,70399E-313, although the display says 0...

Like I said, it works fine in LV 7.1.

Regards,

Wiebe.


Message 1 of 5
(3,178 Views)
Hi Wiebe,

Thank you for your feedback.  This was reported to R&D (# 51722) and was fixed in LabVIEW in an upcoming release.  The title of the bug is, "Numeric Control: Format String functionality shows odd behavior when attempting to increment (displays NaN)".
0 Kudos
Message 2 of 5
(3,118 Views)
This looks like it's the same as this bug.
0 Kudos
Message 3 of 5
(3,105 Views)

"smercurio_fc" <x@no.email> wrote in message
news:1216852805368-749853@exchange.ni.com...
> This looks like it's the same as <a
href="http://forums.ni.com/ni/board/message?board.id=170&amp;message.id=3369
77" target="_blank">this bug</a>.

It is certaily related. Strange that he gets a bug when the unit is placed
behind the number /without/ a space, while I get a bug /with/ a space...
Could it be that the behavior changes when the numbers become negative?


0 Kudos
Message 4 of 5
(3,085 Views)

"Pie56694" <x@no.email> wrote in message
news:1216845606934-749781@exchange.ni.com...
> Hi Wiebe, Thank you for your feedback.&nbsp; This was reported to R&amp;D
(# 51722) and was fixed in LabVIEW in an upcoming release.&nbsp; The title
of the bug is, "Numeric Control: Format String functionality shows odd
behavior when attempting to increment (displays NaN)".

Great. Thanks.


0 Kudos
Message 5 of 5
(3,085 Views)