LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

16bit float conversion

Solved!
Go to solution

Hello, I recive 16bit data that represent 16bit float(half precision) is there any easy way how to get the data value without writing my own conversion since labview supports only 32, 64, 128 float formats. Thanks

LV 2011, Win7
0 Kudos
Message 1 of 4
(5,392 Views)
I just finished this but it still doesn't give proper results. If anybody could have a look I would be thankful.
LV 2011, Win7
0 Kudos
Message 2 of 4
(5,365 Views)
Solution
Accepted by topic author ceties
Hello, there is no option to convert the number in easy way (without writing conversion code).

According to: "A Very Simple Compiler" (http://acm.pku.edu.cn/JudgeOnline/problem?id=3202) document you can use code that can be found in attachment.

Best regards,
MK
Message 3 of 4
(5,330 Views)
Hi Koza and thanks! Finally I realized that things aren't so complicated since the U16 in the inverter I communicate with means something different. The frequency setpoint and actual value are normalized so that 4000(hex) corresponds to 50Hz. The highest (maximum) that is to be sent is 7FFF. The normalization frequency (reference frequency) can be changed in P2000 (default 50Hz). But thanks again anayway. It might come handy one day.
LV 2011, Win7
0 Kudos
Message 4 of 4
(5,312 Views)