LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

hexadecimal string to 14 bit unsgned integer

Hi,

 

I have a hexadecimal value which contains 14bits two complement. How can I convert this to an integer value?

 

Your help is greatly appreciated.

 

Regards,

Chathuri

0 Kudos
Message 1 of 5
(2,639 Views)

Hi Chathuri,

how do you have the value? In which format, in which type of control? Can you give more information. Maybe you can give the hexadecimal value and the expected result.

 

Mike

Message 2 of 5
(2,635 Views)

hi Mike,

 

i have a string control which I have typed the value let's say 3E6B. The format for the string control has been set to hexa decimal. The 3E6B is a 14bit value which is two complement. So when I convert it to an integer the value I should get is -405 in decimal.

 

Let me know if you need anymore clarifications.

Thanks!

0 Kudos
Message 3 of 5
(2,631 Views)

This should fix your problem 😉

 



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Message 4 of 5
(2,623 Views)
thanks.. it was simply awesome. Im new to Labview and it helped alot. Thanks !!
0 Kudos
Message 5 of 5
(2,590 Views)