5
: . .
(Array) - . . - , - . .
: numeric, Boolean, path, string, waveform, cluster.
, (index). .
, LabVIEW. Functions>>Programming>>Array.
Array Size - . , , . , [1,6,5,3,4] 5.
Initialize Array - , element. , "" .
Array Subset - ( ), ( index) , length. , [1,6,5,3,4] index=1 length=2, [6,5].
Build Array - , . . , , "Concatenate Inputs".
Index Array - (index). : [1,6,5,3,4] 2 5.
Max & Min , .
: [2,3,7,1,9,6,8,4], 1 4, 9 5, .
Sort 1D Array .
: [2,3,7,1,9,6,8,4], : [1,2,3,4,6,7,8,9].
Search 1D Array .
(array) array w/subset deleted deleted partion. .
length , . index .
|
|
Insert Into Array , , index. , .
, Functions>>Express Numeric Functions>>All Functions>>Numeric - . , , - . , add , . : [1,3,2] 2 [3,5,4]. [1,3,2] [3,5,4] [4,8,6]. , , . , [3,1,2,3] [1,2,1] [4,3,3].
.
1.
0 10, 0 100. , . .
:
For Loop (Programming→Structures→For Loop), .
.
, 0 10, N For Loop.
. , .
.
Array Size (Programming→Array→Array Size)
Max & Min (Programming→Array→Max & Min).
, , .
2.
10 0 30. .
3.
15 0 20. , .
4.
10 0 100. 2, 5 8 .
Index Array , Index (n-1), .. .
: [1,3,4,2,5,6] (4) Index Index Array 2.
5.
, 10, 0 100, 3, 0 -100.
, , .
|
|
: 1 : [12,34,54,23,37,32,76,98,54,43]
2 : [-32,-51,-94]
2 , : [12,-32,-51,-94,34,54,23,37,32,76,98,54,43]
6.
15 0 100. , 3, 5, 8, 10-15 .