LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting string to number

Solved!
Go to solution

Why the number doesn't contain the whole string and how to solve it ? 

VI is attached

0 Kudos
Message 1 of 17
(4,540 Views)

What are you actually trying to do? It looks fine to me, if your objective is to convert a string that only represents numbers in the Int32 range.

 

If your string contains more information that that you shoiuld look at Scan From String.

0 Kudos
Message 2 of 17
(4,529 Views)

You need to explain in more detail.  What are you trying to put in the string control,  what are you getting, what are you expecting?

0 Kudos
Message 3 of 17
(4,523 Views)

I am trying to take the "String" as it is without any changes and to be considered binary in  "number" 

0 Kudos
Message 4 of 17
(4,515 Views)

I am trying to take the "String" as it is without any changes and to be considered binary in  "number" 

0 Kudos
Message 5 of 17
(4,515 Views)

I don't understand the problem.  What doesn't work?  What data are you putting in?  You do know that this only returns an integer, don't you?

0 Kudos
Message 6 of 17
(4,513 Views)

What do you have typed into the string?  That is the question.

 

0 Kudos
Message 7 of 17
(4,506 Views)

binary bits

0 Kudos
Message 8 of 17
(4,502 Views)

I want to scan the whole String ... how can I make this ? Because it scans part of the string not all of it 

0 Kudos
Message 9 of 17
(4,496 Views)

@MarinaNashaat wrote:

binary bits


 

What does that even mean?

 

Post a screenshot of your VI with the data typed in.  Or put the data in the control.  Right click and save the value as defaul.  Save the VI and attach that.

 

(Please put all of your information in one post.  No need to create another message.  You can even edit your previoius message within a reasonable period of time if you go to the options menu to the right of the message and choosed Edit Reply.

0 Kudos
Message 10 of 17
(4,494 Views)