Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69098

Conversion of Hex string to a hex string that can be converted to a floating point number

$
0
0

Hi, Could someone help me please. I've been racking my brains out for nearly three hours trying to solve this problem trying various things.

 

I have some code that extracts a string from a robot controller. The string is in hex and represents the number 1.234567. The string itself is 3FF3C0C9539B8887

 

If I perform a typecast on the string I have, it merely returns the value zero.

 

If I delete the string from the control, change it to hex and manually type in 3FF3C0C9539B8887 (so Labview auto formats it to 3FF3 C0C9 539B 8887) I get the result I need.

 

However I can't figure out a way to do this. Apologies, someone out there is probably shaking there heads at something that is probably relatively simple, but I'm somewhat new to dealing with hex.

 

Code is attached below in LV8 (although I'm running LV2012)

 

Thanks


Andrew

 

Typecast.pngTypecast2.png


Viewing all articles
Browse latest Browse all 69098

Trending Articles