LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ASCII TO NUMBER

Hello every one...

  Iam suffering a lot about ASCII TO  number conversion...Actually i have a swr instruments it sending data through RS-232 protocol but the problem is iam receiving ASCII data but i would like to see as numeric.....plese help me

0 Kudos
Message 1 of 6
(3,647 Views)

Hi

Just typecast the ASCII value to a U8 numeric.

 

It's found in the "data manipulation" palette... You can use it to convert from one datatype to any other depending on the type input, so be careful to connect the correct type definition!

 

Hope this solves....

 

Kudos Welcome Smiley Wink

 

Regards,

Santhosh Joel

Certified LabVIEW Developer
Best LabVIEW Programmer @NIDAYS 2015
0 Kudos
Message 2 of 6
(3,638 Views)

THANK YOU...Smiley Happy

0 Kudos
Message 3 of 6
(3,626 Views)

If your issue is solved you can mark it as the solution for your questions 🙂

 

 

Kudos 😄

Certified LabVIEW Developer
Best LabVIEW Programmer @NIDAYS 2015
0 Kudos
Message 4 of 6
(3,620 Views)

well, usually the rs232  data stream is coded in a hopefully known way 🙂

the vi to convert a string to byte array is found in the string conversion palette....  however usually the scan from string vi is a better way ... 

If you run into problems post some sample data and explain the data format.

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 5 of 6
(3,593 Views)

@hanumeshbujji wrote:

Hello every one...

  Iam suffering a lot about ASCII TO  number conversion...Actually i have a swr instruments it sending data through RS-232 protocol but the problem is iam receiving ASCII data but i would like to see as numeric.....plese help me


If you are using a string indicator, just right click on it and you can use the Hex view instead of the normal view.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 6
(3,582 Views)