LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I offset all elements of an array by the same number

I'd like to know the quickest way to add a number to all elements of an array. In other word, offset the whole array by a number.
0 Kudos
Message 1 of 2
(3,656 Views)
You just use the normal add function. Wire the array to one input and the constant to the other input. After wiring the array, do not click on the other terminal and select Create>Constant because by default it will create an array. Just select a Numeric Constant from the Numeric palette or wire it to a control.
Message 2 of 2
(3,656 Views)