LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

real to word conversion

Hello,

I need to convert a real number (single-32 bits) to words, I mean to split the real 32b into 2 of 16 bits.
I have tried the conversions VIs but then I lose the decimals. The precision of the real (number of decimals) is variable.
Thanks for any suggestion about!

SBC
0 Kudos
Message 1 of 4
(6,291 Views)
> I need to convert a real number (single-32 bits)
> to words, I mean to split the real 32b into
> 2 of 16 bits.

If all else fails, you can always write the real
number to a binary file, then read two UINT16 out
of the file.

Les.Hammer@CompleteTest.com
0 Kudos
Message 2 of 4
(6,291 Views)
LabVIEW had a data manipulation palette you might find useful. functions >> advanced >> data manipulation. There is a function for breaking a number into words on that palette.
0 Kudos
Message 3 of 4
(6,291 Views)
Double post: check out other answers here:

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000081660000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
0 Kudos
Message 4 of 4
(6,291 Views)