LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

is double precision float point supported in Labview 2012

Hi,

 

  when i used Xilinx COREGEN Float point multiplier (which is supposed to support double float point precision), and try to creat control on 1 operand only SGL appear,  

  is double precision float point supported within Labview 2012.?

 

 

 Regards,

SA

 

  

  

  

  

0 Kudos
Message 1 of 13
(3,246 Views)

Hi saketa,

 

LabVIEW supports DBL as long as I can think of.

But you seem to ask for the FPGA module (while not saying so): this one only supports SGL…

 

You might want to read this white paper!

Best regards,
GerdW


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

Hi,

 

  Thank you.

  

  i think that SGL can support real number like 230.54458884 

 

 am i right?

 

 Thanks

 

SA

0 Kudos
Message 3 of 13
(3,216 Views)

LabVIEW FPGA only supports Single Precision Floating Points.  But be sure to put this in as a suggestion in the LabVIEW FPGA Idea Exchange.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 13
(3,215 Views)

Hi saketa,

 

no, you're wrong.

SGL has limited precision and will change your number to 230.5445861816406 when you try to input it in a control/constant…

Best regards,
GerdW


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

Hi GerdW,

 

 I do not perfectly understand your answer,

 

so it increase the precision from   230.544588 to 230.5445861816406

 

Regards,

SA

0 Kudos
Message 6 of 13
(3,200 Views)

Hi saketa,

 

no I only increased the number of visible digits. That's completely different from precision…

 

Create a SGL control/constant in LabVIEW. Type in your number. Change number of visible digits in the control properties to 17+. See what happens…

Best regards,
GerdW


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

@saketa wrote:

Hi,

 

  Thank you.

  

  i think that SGL can support real number like 230.54458884 

 

 am i right?

 

 Thanks

 

SA


Almost, a SGL has 7 decimals precision, so the ending ...84 will be ...8.

/Y

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 8 of 13
(3,193 Views)

Hi Yamaeda,

 

you need to count all digits of mantissa regardless of exponent, so the cut will be after "45"…

 

Btw. SGL only has 6.9 decimal digits! 😄

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 9 of 13
(3,190 Views)

@GerdW wrote:

Hi Yamaeda,

 

you need to count all digits of mantissa regardless of exponent, so the cut will be after "45"…


Right, forgot about that. 🙂

My point was ofcourse that a SGL supports a real, as he asked for, but with limited precision.

/Y

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 10 of 13
(3,187 Views)