LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CONVERT NUMBER

Hi :

 

I have number in HEX which is FF78 , if i convert this number using calculator the number will be -136

 

nots i need to sign attach see picture

1.jpg

 

 

how i can do the in labview

 

thanks

 

 

 

0 Kudos
Message 1 of 4
(3,237 Views)

I assume that the input is a hex formatted string. Try the following (select I16 representation for the default constant):

 

Message 2 of 4
(3,233 Views)

Hi elyan,

 

so you have a number and want to convert that to a signed 16 bit integer?

 

It could be that easy:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 4
(3,229 Views)

@elyan wisam wrote:

I have number in HEX which is FF78 , if i convert this number using calculator the number will be -136


As you can see, your problem description is quite ambiguous.

 

The above could mean:

  • A numeric indicator set to hex display
  • A hexadecimal formatted string containing two characters (in the range of 0...F) per byte
  • A binary string set to hex display containing two (often nonpritable) characters

So please tell us exactly what you have and what you want. Some scenarios don't need any code at all.

0 Kudos
Message 4 of 4
(3,223 Views)