LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiplot properties

Hi.  I'm using 7.1.  I've got XY graph that display multiple plot lines.  The number of plot lines changes usually with each display occurence.  Sometimes the graph is receiving 1 line, sometimes 6, or anything in between.
 
I need to be able to control the properties of each plot depending on the number of the lines.  For example, if there are six lines the first three might be red and the last three blue.  If there are four the first three might be red while the last one is blue.
 
I know that XY graphs in 7.1 have property nodes that control plot properties; but none of them seem willing to accept a cluster or array of inputs.  Does anyone have any idea of how I could control each plot property within the block diagram?
0 Kudos
Message 1 of 3
(2,644 Views)
You need to use a for loop or a while loop. Use the iteration value wired to the actplot property node. This will select the plot number. Then have other proprty node values to select plot color and other items. Here is a quick demo to set plot colors.
Message 2 of 3
(2,633 Views)
Thanks.
0 Kudos
Message 3 of 3
(2,629 Views)