LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

changing xy graph axis titles programmatically

Solved!
Go to solution

I would like to know if there is a way to control the name of the x and y axis labels programmatically on an xy graph. I have a case statement that has 4 different cases, and I would like the label of the y axis to change and correspond with the case that is chosen. I'm using volts, volts squared rms, dBV, and dBFS, and I want the y axis to reflect which case I'm doing by changing it accordingly. The way I want to go about it (if this is possible) is delete the axis title each run and within each case I would program the correct axis label. (Volts for volts, dB for dBFS and so on...)

 

Thanks

0 Kudos
Message 1 of 4
(8,589 Views)
Solution
Accepted by topic author Szklanam

Yes you can use the property node of the XY Graph (YScale.NameLabel.Text and XScale.NameLabel.Text).

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 4
(8,578 Views)

You will need to use propery nodes to do this. If you look on the tool palete you you find them here:

 

Example.png

 

Then you will need to find this property

 

Example 2.png

Tim
GHSP
Message 3 of 4
(8,575 Views)

Yes this is exactly what I needed. My case statement only needed to be around the property node. I made 4 different graphs the first time I ran it. But yes thank you much

0 Kudos
Message 4 of 4
(8,569 Views)