Array Sum and Product Overflow

From LabVIEW Wiki
Jump to: navigation, search
Array Sum and Product Overflow

Array Sum and Product Overflow is a VI Analyzer test installed by the LabVIEW VI Analyzer Toolkit add-on. It checks the Add Array Elements and Multiply Array Elements functions to see if the numeric array input is a signed or unsigned 8-bit or 16-bit integer data type.

Explanation

Since the sum and product output of these functions matches the input data type, the add or multiply operation may result in an overflow. The input data type to these functions should be changed to a signed or unsigned 32-bit or 64-bit integer to reduce the possibility of an overflow.