06-11-2009 06:41 PM
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
06-11-2009 06:59 PM - edited 06-11-2009 07:04 PM
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..