Increment Array Element VI

Owning Palette: Array VIs and Functions

Requires: Base Development System

Adds 1 to the specified elements of a 1D array. If the array is an array of timestamps, this VI increments the element by one second.

Example

 Add to the block diagram  Find on the palette
array in specifies the 1D array with the element that you want to increment.

This input accepts an array or an array of clusters of the following data types:
  • Numbers
  • Timestamps
  • Analog Waveforms
index specifies the index of the element in the array that you want to increment.

This input accepts a signed 32-bit integer or an array of signed 32-bit integers.
array out returns the 1D array with the specified element incremented.

Example

Refer to the Malleable VIs Basics.lvproj in the labview\examples\Malleable VIs\Basics directory for an example of using the Increment Array Element VI.

 Open example  Find related examples