LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

converting hex into a string of decimal

Hi all,

 

I am using Labview to communicate with accelerometer. I need to convert ASCII to decimal value. However, my application samples for labview is only capable to convert ASCII to HEX value which is pretty much useless as raw data.

 

How to i convert HEX into a string of decimal using type cast or is there any better way to do it?  What does the 'type' indicate? 

 

Kane

0 Kudos
Message 1 of 5
(3,182 Views)
Use the Number to String function(s) from that sub-pallette present inside the Strings pallette to achieve what you want. Smiley Happy
- Partha ( CLD until Oct 2027 🙂 )
Message 2 of 5
(3,178 Views)

You need something like here. Give example what you want exactly.

 

Mathan

0 Kudos
Message 3 of 5
(3,177 Views)

Hi Use ''Hexadecimal String To Number'' to convert Hex Value into Integer number\

I think this will work. If not use 'Number To Decimal String" after converting Hex into number.

 

0 Kudos
Message 4 of 5
(3,173 Views)

hito88 wrote:

 

What does the 'type' indicate?


Straight from LV Help...

 

"type is the data type to which you want to convert the data. Wire any constant or control to type to set the data type to which you want to convert the data. LabVIEW ignores any data in the constant or control you wire to type."

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 5 of 5
(3,160 Views)