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

Square Function

NI LabVIEW 8.6 Help
June 2008

NI Part Number:
371361E-01

»View Product Info

Owning Palette: Numeric Functions

Installed With: Base Package

Computes the square of the input value.

The connector pane displays the default data types for this polymorphic function.

Details  Example

x can be a scalar number, array or cluster of numbers, array of clusters of numbers, and so on.
x^2 is of the same numeric representation as x.

Square Details

If you wire fixed-point values to Numeric functions such as Add, Subtract, Multiply, and Square, the functions usually return values that do not lose any bits of word length. However, if the operation creates a value that exceeds the maximum word length that LabVIEW accepts, overflow or quantization conditions can occur. LabVIEW accepts a maximum word length of 64 bits. Use the properties dialog boxes for Numeric functions to configure how LabVIEW handles overflow or quantization of fixed-point data.

Example

Refer to the Add - Various Uses VI in the labview\examples\general\functions\Numeric directory for an example of using the Square function.


Resources


 

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