LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

is double precision float point supported in Labview 2012

Hi all,

 

  so there is no particular difference when using SGL or FXP 

 

 Regards,

 

Abdelhak.

0 Kudos
Message 11 of 13
(284 Views)

Hi Abdelhak,

 

well, there still is a huge difference between SGL and FXP. One is floating point, the other is fixed point.

 

Did you read the white paper I linked in message #2? There are even more differences discussed!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 13
(282 Views)

@saketa wrote:

Hi all,

 

  so there is no particular difference when using SGL or FXP 

 

 Regards,

 

Abdelhak.


a FXP is basically an integer with a divisor, SGL is a float with mantissa and exponent.

If FXP divisor is 1000 and you write 12345 it actually means 12.345 (in the 4 byte memory, in the code you dont have to worry about it)

A SGL would represent the same number as 0.12345 * 10^2 with 3 bytes as mantissa and 1 byte as exponent. (i can be a bit off or so, but as explanation it shouldn't matter)

This means a FXP have higher effective precision close to it's max, but lower at small values, where SGL can just lower exponent.

If a FXP needs to write a small value it need to fill up on 0's, while SGL changes exponent. This also means FXP is sensitive to decimal point placement, which divisor you're using.

 

One of FXPs benefits is that it uses the integer part of the hardware so it can be alot faster on some hardware.

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 13 of 13
(269 Views)