User manual

UniversitàdegliStudidiCatania
IntroductiontoNILabVIEW
LabVIEWGLanguage:Array
ALabVIEWarray isacollectionofdataelementsthatareallthesametype,justlikeintraditional
programminglanguages.
Anarraydataelementcanhaveanytypeexceptanotherarray,achart,oragraph.
Arrayelementsareaccessedbytheirindices;eachelement'sindexisintherange0toN1,whereN is
thetotalnumberofelementsinthearray.Noticethat,alongeachdimension,
thefirstelementhas
index0,thesecondelementhasindex1,andsoon.
Datatype
Numberofdimensions,D
Totalnumberofelements,N
WeaccessthearrayelementsbyDxN indices,I
1.23
34
1.90
0.67
12
0.25
1.23
34
0.67
3x1
D=1
N=3
3x2
D=2
N=6
2x3x3
D=3
N=18
I: {i}
i=0:1
I: {i,j}
i=0:2, j=0:1
I: {i,j,k}
i=0:1, j=0:2, k=0:2
DIEEI