LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert double precision float string to a number

I am a newbie with Labview.

I have a GPIB link with a vector voltmeter and I receive the data as a double precision float string (IEEE standard 754-1985). I would like it to be recognized as a number, but I can't find the proper conversion function. The string to convert is 8 byte long. Does anyone have an idea how to do it? Thank you!
0 Kudos
Message 1 of 4
(4,047 Views)
can you post some sample data and what you expect to convert it into???
0 Kudos
Message 2 of 4
(4,039 Views)
Asumming your data is big-endian, you should be able to simply typecast it to a DBL (see attache LV 7.0 example).

(It is possible that your DBL string is little-endian, in this case it will be slightly more complicated. Let us know ;))

Message Edited by altenbach on 05-27-2005 04:49 PM

Message 3 of 4
(4,036 Views)
It works perfectly! Thank you very much for your time (both of you)!

Karine
0 Kudos
Message 4 of 4
(4,008 Views)