Professional Documents
Culture Documents
Global, Local Variables, Arrays, Clusters
Global, Local Variables, Arrays, Clusters
Picture for
Lab 3
Last Updated 2/3/05 Week 3 - part b
Global and Local Variables
In all programming languages, the programmer has the ability to
define local variables (within a subroutine or subVI) or global
variables (accessible to VI and all subVI’s).
rate := 0.05
principle := 1000.
money := principle
For I:= 0 to 10
money:=money+money*rate
Next I
0 0 .0 0
0 .0 0
G P IB A D D R E S S
G P IB A D D R E S S
Index Display
12 15
0
18
Array Example
Cluster
G P IB A D D R E S S
E rro r c o n d itio n
0
L e n g th o f A rra y
time
0 .0 0
H our
N e w V a lu e B u n d le B y N a me
M in u ite 0 .0 0
H our 0