User manual
UniversitàdegliStudidiCatania
IntroductiontoNILabVIEW
LabVIEWG‐Language:Clusters
Likeanarray,acluster isadatastructurethatgroupsdata.However,unlikeanarray,aclustercan
groupdataofdifferenttypes(i.e.,numeric,Boolean,etc.);itisanalogoustoastruct inCorthedata
membersofaclassinC++orJava.
Becauseaclusterhasonlyone"wire"intheblock
diagramclustersreducewireclutterandthe
numberofconnectorterminalsthatsubVIs need
Youcanaccessclusterelementsbyunbundlingthemallatonceorbyindexingoneatatime,
dependingonthefunctionyouchoose;eachmethodhasitsplace
Unlikearrays,whichcanchangesizedynamically,clustershaveafixedsize,orafixednumberof
wiresinthem.
Youcanconnectclusterterminalswithawireonlyiftheyhaveexactlythesametype;inother
words,bothclustersmusthavethesamenumberofelements,andcorrespondingelementsmust
matchinbothdatatypeandorder.
Bundle Unbundle
DIEEI