> I am trying to build an array of graph indicators, so that I
> could traverse it in a loop and write data to each one of them. That
> way I dont have to write same code multiple times, for each graph.
> However, I cant successfully insert indicators into an array, I get a
> broken wire. Creating references to those graphs and inserting them
> into the array would be one way to accomplish this, but I cant find a
> way to create a reference in LabView 5.1 . Are there any other ways I
> can do this, or is there a way to create a reference for an indicator
> in LabView 5.1?
The reason you can't put the graph in the array is that you can't
directly have an array of array datatype. The graph adapts to type, but
i
nitially starts out as an array of double. If the datatype for the
graph will be something not an array, wire that up first, then drop the
graph into the array. If it will be an array, put the graph into a
cluster and place that in the array. This will change the datatype, but
should be easy to match on the diagram.
Another thing that sounds a bit funny. If the indicator is an array,
you wont be updating them in the loop, but rather after the loop. Also
be aware that there will only be one set of attributes for the graph in
the array. Fixed scale or autoscaling work pretty well, but
programmatically setting attributes doesn't work well. A solution to
this is to make a cluster of graphs. You can easily convert array to
cluster on the diagram and use the cluster for the display.
Greg McKaskle