LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to convert 8 byte hex to floating point double?

Solved!
Go to solution

Hi

 

I want to know how to convert a 8 byte data string to a floating point double.

 

data (HEX): 40 02 4F 70 40 00 00 00

 

Thanks.

DP

0 Kudos
Message 1 of 4
(7,074 Views)
Solution
Accepted by topic author DDP_625
Is this 8-byte data string actually a string? Are the characters in the string the letters, or are you showing hex values? Ultimately you want to use Type Cast:
Message Edited by smercurio_fc on 06-01-2010 01:09 PM
0 Kudos
Message 2 of 4
(7,065 Views)

I think typecast is your friend:

HexStringToFloat.png

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 3 of 4
(7,057 Views)

I often use this functions because I can select endianess for non Labview native data 


 

Unflatten From String Function
Owning Palette: Data Manipulation Functions

Requires: Base Package

Converts binary string to the type wired to type. binary string should contain flattened data of the type wired to type. You also can use this function to specify the byte order, or endian format, of the data in the binary string.


 



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 4 of 4
(7,051 Views)