LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to multiply a fixed point number by 10^4 in FPGA?

Solved!
Go to solution

So from the reading I've done so far on fixed point, it's a number with a static amount of digits because FPGA's don't really have "dynamic" memory (hopefully I said that right, or you know what I mean). Which makes sense why when I try to multiply my fixed point value by 10,000, labview doesn't agree and changes my constant to some long value of 0.xxxxxxxxxxxxx.

 

But I have a value of 0.02 that I want to multiply by 10,000 so that I can see a value of 200. Surely there must be a way to do this 🙂

0 Kudos
Message 1 of 4
(1,119 Views)
Solution
Accepted by David99999

There are many different fixed point datatypes, each defined by the total number of bits (word lenght) and the place of the binary decimal point (integer word length) and signed vs unsigned. Each combination gives you a max and min value and the spacing between values.

 

You just need to define a type that covers your desired range and resolution.

 

altenbach_0-1638479313263.png

 

Message 2 of 4
(1,113 Views)

See: https://zone.ni.com/reference/en-XX/help/371361R-01/lvconcepts/numeric_data/#Using_FXP

 

Have you seen the configure screen for a given fixed point control/indicator/constant? (edited: see the previous post)

 


Certified LabVIEW Architect, Certified Professional Instructor
ALE Consultants

Introduction to LabVIEW FPGA for RF, Radar, and Electronic Warfare Applications
Message 3 of 4
(1,112 Views)

Nope! I have not. But I see it now, thanks guys!

0 Kudos
Message 4 of 4
(1,098 Views)