LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Meaning of Decimal string

Hi all, 

     From the VI i want to know the explanation for the following:

 what actually the processes are happening..? 

 

1)  Decimal String To Number

2)  Number To Hexadecimal String

3)  Hexadecimal String To Number 

 

please expalin be briefly.. 

thanks 

0 Kudos
Message 1 of 4
(2,525 Views)

Hi muralicgowda,

 

you're asking about number <-> string conversions...

 

1) convert a string containing a decial number to a "real" number like "123" (as string) to "123" (as number, you can set the datatype on your own)

 

2) convert a number to a string containing that number in hexadecimal like "123" (as number) to "7B" (as string)

 

3) vice versa of point 2, like "123" (as hex string!) to "291" (as decimal number!)

Message Edited by GerdW on 02-10-2010 11:35 AM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,516 Views)

Just to complete the subject, keep in mind that the object 'number' is a constant entity in term of memory managed as a binary set in basic data management. Only its visual representation changes : decimal, hexadecimal, binary, real, floating, etc... but its intrinsic value doesn't change with the change of representation (no really right for real/floating but the idea is here).

 

But when you convert it as String, you distinguish the type because you change the memory management so, you lose a part of information describing the number (for example, you could lose the lenght of number).

Message Edité par J.DECHET le 02-10-2010 12:10 PM
0 Kudos
Message 3 of 4
(2,503 Views)

thank you all...
0 Kudos
Message 4 of 4
(2,487 Views)