01-22-2011 12:29 PM
Other than using a for loop, is there a quick way (or trick) of creating an equispaced array of numbers with min, max and number of points / spacing specified ? A bit like the Matlab linspace function.
Given max = 10, min = 9, and spacing = 0.1, get 9,9.1,9.2,9.3,..., 10.
01-22-2011 12:45 PM
Look at Ramp Pattern.vi under Signal Processing >> Signal Generation palette.
01-22-2011 12:57 PM
In this thread I show one way to do it without using a loop.
In LV10 you can use the Ramp.vi and select Ramp by Delta. If you peek under the hood, you may be disappointed to discover a For Loop.
In the old days, LV was very slow when it came to loops and I often had to resort to external code (CINs) to generate even modest integer arrays. These days things are much better, so I don't fully understand the aversion to loops.