From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

String to Float point value

Solved!
Go to solution

Hi,

 

I have one question relation this topic. As you told me, in labview 2009 I put an indicator to see the value, as you recommend me, but when I opened the same file in Labview 2010 didn't work. In the indicator the value lose the digits precision and I didn't change anything.

 

Can someone tell me another way to see what's happen? I need some extra library to floating points or something like this?

 

 

Thanks!!!

 

 

(Sorry for asking the same topic again, but I didn't change aything...) 

0 Kudos
Message 11 of 28
(942 Views)

Hi,

 

I would like to add this notice:

 

Due to changes to the LabVIEW compiler, the results of several mathematical operations performed using floating-point numbers might differ from results returned in previous versions of LabVIEW. The accuracy of algorithms written in LabVIEW using floating-point numbers is the same and in many cases improved in LabVIEW 2010. However, in a few operations the results might be less accurate than in previous versions because LabVIEW 2010 implements functions internally with the same numeric precision as the input data types rather than a higher numeric precision than the input data types as in previous versions. The acceptable error for the results of these operations is still appropriate for the data types of the inputs.

 

 

 

Thanks for yur feedbacks!

0 Kudos
Message 12 of 28
(937 Views)

mlop wrote:

I have one question relation this topic. As you told me, in labview 2009 I put an indicator to see the value, as you recommend me, but when I opened the same file in Labview 2010 didn't work. In the indicator the value lose the digits precision and I didn't change anything.



Can you attach the 2009 VI (or a simplified version containing only the indicator). Have you tried to change the format again?

 


@mlop wrote:

Can someone tell me another way to see what's happen? I need some extra library to floating points or something like this?


As I said, attach the 2009 VI and tell us exactly what you see and what you expect to see in 2010.

0 Kudos
Message 13 of 28
(932 Views)

Opening in 2010 should make no difference. Did you actually look at the Display Format? Does it really matter since the indicator was just to prove to yourself that the Scan From String is working perfectly fine? You are really asking about a problem that does not exist.

0 Kudos
Message 14 of 28
(929 Views)

@mlop wrote:

Hi,

 

I would like to add this notice:

 

Due to changes to the LabVIEW compiler, the results of several mathematical operations performed using floating-point numbers might differ from results returned in previous versions of LabVIEW...


This is completely irrelevant to your formatting problem. Here we are talking about changes in the result of complicated operations where the difference is extremely minor and probably in the 15th decimal digit or smaller. You are reading a string and converting to DBL. This is lossless within the inherent limitations of the DBL representation.

0 Kudos
Message 15 of 28
(925 Views)

Attached you will find!

 

I know tha has no sense asking this, but I can't see the value in 2010. However when I prove in other PC with 2009 with no problems (thanks of yours responses).

 

Thanks again!

0 Kudos
Message 16 of 28
(920 Views)

Do you see the full value when you place an indicator on the string before scanning to DBL?

0 Kudos
Message 17 of 28
(913 Views)

Hi,

 

Yes! the value received by VISA I see it perfectly (with all digits precisions) but, after the block "Scan Value" not..

The indicator output 1 shows without them.

 

Thanks!

0 Kudos
Message 18 of 28
(911 Views)

I see the full value in 2010.

0 Kudos
Message 19 of 28
(907 Views)

You have the chart Y axis formatting set to "Automatic"


"Should be" isn't "Is" -Jay
0 Kudos
Message 20 of 28
(902 Views)