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

Numeric Functions (FPGA Module)

LabVIEW 8.5 FPGA Module Help
August 2007

NI Part Number:
371599C-01

»View Product Info

Owning Palette: FPGA Module VIs and Functions

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.

Refer to the Numeric Palette Details topic for information about Timed Loop compatibility, usage, timing, and resource considerations related to the objects on this palette.

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. When you select this function from the Numeric palette, the default mode is Add. When you select this function from the Boolean palette, the default mode is OR.
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.
Round To NearestRounds the input to the nearest integer.
Round Toward -InfinityTruncates the input to the next lowest integer.
Round Toward +InfinityRounds the input to the next highest integer.
Scale By Power Of 2Multiplies x by 2 raised to the power of n.
SignReturns the sign of number.
SquareComputes the square of the input value.
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