LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

creating an accending array

Hi, this is a very simple problem but i am having the hardest time in doing it. I want to create an array, with input size. contains elements accending at a constant value starts at zero. for example, an array like [0,1,2,3,4,5...] or [0,2,4,6,8....]. i tried many different ways, didnt work. Please give me any advices you have, i am using Labview 8.2 btw

thanks in advance

0 Kudos
Message 1 of 2
(2,276 Views)

Use a FOR loop and multiply the value from the iteration terminal [i] with a desired factor ( and add an offset if you don't want the series to start with zero).

 

Wire the result across the loop boundary and due to the magic of autoindexing, you'll get an array containing the elements.

 

Don't for get to wire the desired number of elements to N of the FOR loop..

 

Message Edited by altenbach on 06-11-2009 05:04 PM
0 Kudos
Message 2 of 2
(2,274 Views)