LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

BUG in the decimal string to number conversion

This bug was detected by Eiko Fettig, a few posts ago, and could be harmfull.
The decimal string to number function does not work properly with signed integers, when a real number is wired to the secondary default input : when the string begin with a + or - sign, the function returns the default value. Here is what is obtained :

input string Output (I32) Output (Dble)
456 456 456
-456 -456 0 (default)
+456 456 0 (default)

Observed with LV versions 7.1 >> 6.1 and on Mac and Windows platform.
Chilly Charly    (aka CC)

         E-List Master - Kudos glutton - Press the yellow button on the left...
        
Message 1 of 4
(2,294 Views)
Hello,

I cant reproduce the behaviour.
Both outputs (I32 and DBL) returns the signed number when I set -456 or +456 or 456 into my input. My input could be I32 or DBL.

I send you my example. Tell me if it is this test you have done. Otherwise, could you send us your test ?

Isabelle
Applications Engineer, NIF
Isabelle
Ingénieur d'applications
National Instruments France
0 Kudos
Message 2 of 4
(2,222 Views)
Sorry if I was not enough explicit :
The problem is with the "Decimal string to number" function, in the string> conversion sub palette.

See the attached vi

CC
Chilly Charly    (aka CC)

         E-List Master - Kudos glutton - Press the yellow button on the left...
        
Message 3 of 4
(2,220 Views)
Hello,

Don't hesitate to attach VI.
Anyway, your problem is known and National Instruments is working to find an issue.

Sorry for the disappointement.

Isabelle
Isabelle
Ingénieur d'applications
National Instruments France
0 Kudos
Message 4 of 4
(2,208 Views)