LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to build an array.

I want to build an array with a start control, stop control, and increment control. This array would take the value of the stop control minus the start and divide by the increment to get the number of elements. Then I want to take the start point and add the increment to it, then add the increment to the new value until all of the iterations are complete and load these values into the array. Is this possible?
0 Kudos
Message 1 of 5
(2,996 Views)
Yes, this is possible to accomplish in several ways. A sample is attached.
0 Kudos
Message 2 of 5
(2,996 Views)
> the iterations are complete and load these values into the array. Is
> this possible?

If the array is what you need, look at using the Ramp function in the
signal generation palette.

Greg McKaskle
Message 3 of 5
(2,996 Views)
Description:
1.) C = No. of Cycle = (Stop Control - Start Control)
2.) N = C
3.) Initialise array of C dimension

Note:
This vi prevents "memory full" error should you have
Start Control = Stop Control = 0

ian f k
Nov'2002
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 4 of 5
(2,996 Views)
hi

find attached one of xxx solutions that fit's to most
of my programs, where I need sweep values.
Maybe interesting for people, who need linear & logarithmic
sweeps / double (up and down) sweep e.t.c.

regards
wha
0 Kudos
Message 5 of 5
(2,996 Views)