LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

creating and controlling an array of intensity graph programmatically

I have 16 intensity plots I would like to display at once. I would like to be able to access them through the Labview program. By that I mean I would like to be able to set their location and insert the relevant data to each one.
I can probably use property nodes to control individual ones but I want to be able to use a loop and not have to wire everything 16 times.
I have tried an array of 16 intensity graphs but then I cannot set the location of each one individually.
Can you help?
0 Kudos
Message 1 of 3
(2,804 Views)
.
On the diagram, create a reference for each of the graph and make an array of these refnums. Now you can access properties and data auto-indexing this array in a for loop.


LabVIEW, C'est LabVIEW

Message 2 of 3
(2,804 Views)
> I have 16 intensity plots I would like to display at once. I would
> like to be able to access them through the Labview program. By that I
> mean I would like to be able to set their location and insert the
> relevant data to each one.
> I can probably use property nodes to control individual ones but I
> want to be able to use a loop and not have to wire everything 16
> times.
> I have tried an array of 16 intensity graphs but then I cannot set
> the location of each one individually.


Depending on what happens on the panel, there are probably four
different ways of doing this.

You could have sixteen independent intensity graphs. This will make it
easy to individually update them or change individual property nodes.
This can also require that 16
different property nodes or terminals be
updated. By using reference nodes, you can build an array of intensity
graph references and have a loop in the top level VI or in the subVI
update pretty much anything that you like.

Second, you can place the intensity graphs in a cluster. This will
still allow each of the graphs to be accessed through references, or you
can write the value as a cluster of 2D arrays.

Third, you can make an array of cluster of intensity graph. This will
make it easy to update the value, but as noted, the position and other
attributes are somewhat restricted. All plots will have the same scale
and color settings.

Fourth, you can merge the data and display it all in one intensity
graph. Probably not what you want to do, but in the case where you want
to compare them all using a cursor, it might be the right choice.

Greg McKaskle
Message 3 of 3
(2,804 Views)