User manual
For loop While loop
Case
structure
Flat sequence
structure
Stacked sequence
structure
Event
Structure
UniversitàdegliStudidiCatania
IntroductiontoNILabVIEW
LabVIEWG‐Language:ControllingProgramExecution
Structures aregraphicalrepresentationsoftheloopsandcasestatementsoftext‐basedprogramminglanguages.
Usestructuresontheblockdiagramtorepeatblocksofcodeandtoexecutecodeconditionallyorinaspecificorder.
Likeothernodes,structureshaveterminalsthatconnectthemtootherblockdiagramnodes,execute
automaticallywhen
inputdataisavailable,andsupplydatatooutputwireswhenex ecutioncompletes.
Eachstructurehasadistinctive,resizableborder toenclosethesectionoftheblockdiagramthatexecutesaccordingto
therulesofthestructure.Thesectionoftheblockdiagraminsidethestructureborderiscalledasubdiagram
.The
terminalsthatfeeddataint oandoutofstructuresarecalledtunnels.Atunnelisaconnectionpointona structureborder.
ForLoop—Executesasubdiagram asetnumberoftimesor,if
youaddaconditionalterminal,untilaBooleanconditionor
anerroroccurs.
WhileLoop—Executesasubdiagram untilaBoolean
conditionoranerroroccurs.
Casestructure—Containsmultiplesubdiagrams,onlyoneof
whichexecutesdependingontheinputvaluepassedtothe
structure.
Sequencestructure—Containsoneormoresubdiagrams that
executeinsequentialorder.
Eventstructure—Containsoneormoresubdiagrams that
executewheneventsaregeneratedbyuserinteraction.
Timedstructures—Executeoneormoresubdiagrams with
timeboundsanddelays.
ConditionalDisablestructure—Containsoneormore
subdiagrams,exactlyoneofwhichcompilesandexecutesat
run‐time.
DiagramDisablestructure—Containsoneormore
subdiagrams,exactlyoneofwhichcompilesandexecutesat
run‐time.
DIEEI