LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatic Display of Y Axis Labels

Hi all, got another oddball XY graph issue. I have an XY graph with three Y axes and I want to be able to display the Y axis assignment for each plot individually. My approach (which didn't work) is this:

  1. Get the size of the displayed array, wire to iteration terminal of For loop.
  2. Use iteration count terminal to set the Active Plot property in the For loop.
  3. In the same property node in the For loop, read the Y scale name label text property.
  4. Index the resulting array to string indicators.

As I said, this doesn't work. All I get is an array of "Y3", no matter what I set the Y scale to for each plot. Any ideas?

 

Thanks!

0 Kudos
Message 1 of 3
(1,918 Views)

I would get the array labels then concatenate them together and put them in the y label. I do not think that you will be able to create three different labels.

Tim
GHSP
0 Kudos
Message 2 of 3
(1,911 Views)

The Y scale name label will apply to the "Active Y Scale".  You would need to set each plot as the "Active Plot", read its "Plot:Y Scale Index" property and then set that as the "Active Y Scale" to get the label you want.

0 Kudos
Message 3 of 3
(1,908 Views)