Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Numeric Functions (FPGA Module)

LabVIEW FPGA Module 8.2 Help
August 2006

NI Part Number:
371599B-01

»View Product Info

Use the Numeric functions to create and perform arithmetic operations on numbers and to convert numbers from one integer or unsigned integer data type to another.

Note  This palette is specific to FPGA targets and contains a subset of the VIs and functions that are on this palette when you edit a Windows or RT target VI.

The functions on this palette can return general LabVIEW error codes.

Palette ObjectDescription
Absolute ValueReturns the absolute value of the input.
AddComputes the sum of the inputs.
Compound ArithmeticPerforms arithmetic on one or more numeric, array, cluster, or Boolean inputs. Select the operation (Add, Multiply, AND, OR, or XOR) by right-clicking the function and selecting Change Mode from the shortcut menu. The default mode depends on the palette from which you drop this function.
DecrementSubtracts 1 from the input value.
Enum ConstantUse the enumerated constant to create a list of string labels with corresponding integer values you can select on the block diagram.
IncrementAdds 1 to the input value.
MultiplyReturns the product of the inputs.
NegateNegates the input value.
Numeric ConstantUse the numeric constant to pass a numeric value to the block diagram. Set this value by clicking inside the constant with the Operating tool and typing a value.
Quotient & RemainderComputes the integer quotient and the remainder of the inputs.
Ring ConstantUse the ring constant to create a list of value pairs you can select on the block diagram. Each value pair consists of a numeric value and corresponding string label.
Scale By Power Of 2Multiplies x by 2 raised to the power of n.
SignReturns the sign of number.
SubtractComputes the difference of the inputs.


SubpaletteDescription
Conversion FunctionsUse the Conversion functions to convert data types. The FPGA Module does not support floating-point conversions.
Data Manipulation FunctionsUse the Data Manipulation functions to modify data values used in LabVIEW.
Saturation Arithmetic VIsUse the Saturation Arithmetic VIs to handle or avoid integer overflow when performing mathematical operations. You can configure these VIs to return a maximum or minimum value if an overflow condition occurs instead of performing modular arithmetic.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit