LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hex string to HEX number

Solved!
Go to solution

Hello Experts,

               I just stuck in a simple problem. actually i am having an array of HEX string which i want to convert into HEX number format, i am looking for this conversion. I think this will be simple but i can not make this working. Please see the attach image for more understanding.

 

Unbenannt.png

 

Cheers harry and thnaks in advance

Message 1 of 7
(11,531 Views)

untitled.PNG

 

untitled.PNG

Message Edited by Mathan on 11-12-2009 11:28 AM
Message 2 of 7
(11,528 Views)

Remember to SHOW RADIX too!  You may remeber that the data is displayed in Hex but the next guy might see "100"

is that equal to 0d4, 0d64, 0d100, or 0d256? 

radix.PNG


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 7
(11,500 Views)

Thanks for the quick reply,

 actuallz the flow of the program is always in decimal and i need the flow as well in the HEX that is teh third party VI needs the HEX string only, may be some thing i am doing wrong. see the attach image. The probe 2 is showing the decimal value. 

 

 

 

 

value.Unbenannt.PNG

 

 

 

0 Kudos
Message 4 of 7
(11,495 Views)

A numeric probe defaults to decimal display.   if you want to see it in hex on a probe First customize a numeric control with the desired display properties and save it. Then select Custom probe and select your control.

probe.PNG

Message Edited by Jeff Bohrer on 11-12-2009 01:32 PM
Message Edited by Jeff Bohrer on 11-12-2009 01:32 PM

"Should be" isn't "Is" -Jay
Message 5 of 7
(11,487 Views)
Solution
Accepted by topic author harjeemann

Harry, 

 

You can do this (and many other string-to-number conversions) with scan from string. %x tells LabView the input data is hex. There are also slew of string-to-number functions (e.g. "hexidecimal string to number") which might be faster if you are doing this 100,000 times in a loop, but scan-from-string will solve 99% of your problems.

 

 -Rob

Message 6 of 7
(11,468 Views)

Hello Guys,

           I find the solution I think we all are correct and now my VI is working this day, we all are right these are the different ways,

well i get  the problem as there was a bug in third party VI.

          Short description: we have a sucess bollen out, if failure occur it gives out the error and will not run anny other vi after that. so this was teh problem.

Any way much thanks for all the sugestion.

          The thing i lioke labview is the people who uses this are really nice. thanks a lot to all above.

Regards

harry

0 Kudos
Message 7 of 7
(11,422 Views)