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

Divide 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 quotient of the inputs.

If you wire two waveform values or two dynamic data type values to this function, error in and error out terminals appear on the function. 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.
y can be a scalar number, array or cluster of numbers, array of clusters of numbers, and so on.
x/y is a double-precision, floating-point number if both x and y are integers. In general, the output type is the widest representation of the inputs if the inputs are not integers or if their representations differ.

Divide Details

Fixed-Point Details

If you wire fixed-point values to this function, by default LabVIEW configures the integer word length of the quotient to avoid overflow. However, because the precision of the quotient can be infinite, quantization conditions always occur. Use the Numeric Node Properties dialog box to configure how LabVIEW handles quantization of fixed-point data. This function always uses the Saturate overflow mode to handle overflow.

Example

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


Resources


 

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