05-25-2012 01:57 AM
Here I am trying to send the number 1000000 from microcontroller through UART and I am recieving the ASCII in labview. But i would like to get exact 1000000 in labview too. So i am trying to convert ASCII to integer but i am unable to do that.
Solved! Go to Solution.
05-25-2012 04:17 AM - edited 05-25-2012 04:18 AM
Hi,
This thread is discussing about ASCII to number conversion.Go through this and accept it,if it is what you are looking for.
http://forums.ni.com/t5/LabVIEW/convert-ASCII-with-decimal-point-to-number/m-p/753677#M345155
GOODLUCK.
05-25-2012 06:44 AM - edited 05-25-2012 06:45 AM
@mallik_t wrote:
But i would like to get exact 1000000 in labview too. So i am trying to convert ASCII to integer but i am unable to do that.
Why? Have you looked at the string functions? Like the ones that are for converting strings to integers, and vice-versa?
Have you taken any tutorials? To learn more about LabVIEW it is recommended that you go through the introduction material, tutorial(s), and other material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. There are also several Technical Resources. You can also take the online courses for free.
05-28-2012 12:35 AM
If i have gone through all the tutorials then why would i asked this????I dont want to go in detail for that just i want solution for that.
05-28-2012 12:46 AM
Hello mallik,
Please don't feel bad.Smercurio and all other experts are trying to make us to do things by our own.THis will make us experts in labview.Thats why he told you to go through the tutorials.I have heard such type of advice(sometimes they scold us) so many times.Still Iam hearingIt is our fault that we won't go through the tutorials properly.Don't get annoyed.
05-28-2012 02:18 AM
@danil33 wrote:
Hello mallik,
Please don't feel bad.Smercurio and all other experts are trying to make us to do things by our own.THis will make us experts in labview.Thats why he told you to go through the tutorials.I have heard such type of advice(sometimes they scold us) so many times.Still Iam hearing
It is our fault that we won't go through the tutorials properly.Don't get annoyed.
Besides, the question is quite unclear formulated and makes me almost assume, that the OP hasn't even bothered to look for a solution himself. Since the OP receives a string it would be logical to look in the String palette for some function to do what he wants. And inside that palette there is magically a String/Number Conversion palette, which sounds almost like it could contain at least one function that could do the right thing. (In fact it contains 3 that could work, but I'm sure the OP can find the most logical one for his number easlily).
05-28-2012 07:51 AM
@mallik_t wrote:
If i have gone through all the tutorials then why would i asked this????I dont want to go in detail for that just i want solution for that.
Then perhaps you should spend some time reading the LabVIEW Help or actually looking at the palette of functions that are available having the Context Help window open while doing so. I'll be willing to bet that if you had done so you would have found your answer within minutes, rather than potentially wating for days for an answer from the forums.