> Is it possible to put the indicators' value property in an array so that I can
> access them through the For loop counter? A pseudocode equivalent would be:
>
> for (i=0; i> Switch multiplexer to cage i;
> Wait one minute;
> sampleValue = Take a single sample;
> indicator[i].value = sampleValue; //***This is the line I can't figure out
> in LabVIEW.
> }
>
The other replies pointed in the right direction, but in case you
haven't put it
all together yet, I'll go over the solution that I'd probably implement.
First, make an array showing three values. On the diagram, place
the terminal inside the loop. If you are already using the terminal
in another location and you don't want to move it, you can use a local
or the
value property for the array. The point is that you do not
update a part of an indicator, rather, you modify part of the array
and send it all to the array. The array indicator will not redraw
items that do not change. To get the old value of the array, it
is possible to read from a local, but much better to use a shift
register to cycle the value last written to the local back to the
left side of the loop.
It might seem a bit odd at first, but the terminal and locals are
much better ways to modify the value than the value property.
Greg McKaskle