> The 2D array Global Readings has 20 elements in each columns (7
> columns). These elements are retrieved from external hardware using a
> DAQ card. These elements are continuosly replaced every 20 readings.
>
Learning about build array is a good thing, but from the sounds of it,
you may not need to worry about it. For small arrays, when you don't
have a time critical execution deadline to worry about, simple is best.
I'd say that unless your final array has 100,000 elements in it, just
write your diagram the simplest you can.
That means to avoid having places in your code where you read a global,
modify it, and write the data back to the global.
You don't show enough of your program to be able to see the overall
loop, but typica
lly a program runs for awhile and spends most of its
time in a loop. If it is clean, you want to put shift registers on that
loop to hold your 2D array. Then pass the 2D array through the various
case statements and subVIs that can modify it. As stated by others, get
rid of the For loop that does nothing, and try to clean up the subVI
connector. Ideally, you will pass the array into the subVI, it will
modify it, and pass it back out.
Greg McKaskle