LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating custom labels for XY Graph where Y has multiple plots

Solved!
Go to solution

Hello All,

 

I am working on a data reduction VI which creates 2 plots vs time for the corresponding selected parameters from a dropdown - Y1 and Y2 vs X (usually time).

 

I have created an XY graph which displays this as Plot 0 and Plot 1. I have also created a 2nd axis on the right side for viewing Y2 vs X. But I cant seem to find a property node which will let me programmatically change the scale and labels of Y2 and Y1 separately. It only shows parameters for Y. Like I want publish an axis label and units based on the parameter the user selects but the property node only changes 1 of the 2 axes. I thought maybe for multiple axes the namelabel property can take an array of strings input but that idea also did not work.

 

Can someone please help? Much thanks!

Download All
0 Kudos
Message 1 of 3
(13,560 Views)

Hi fang,

 


@Silverfang- wrote:

But I cant seem to find a property node which will let me programmatically change the scale and labels of Y2 and Y1 separately. It only shows parameters for Y. 

I thought maybe for multiple axes the namelabel property can take an array of strings input but that idea also did not work.

 

Can someone please help? Much thanks!


You need to set the "Active Y Scale" property before you set the properties for the selected scale…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(13,550 Views)
Solution
Accepted by Silverfang-

Hi Silverfang,

 

You need to select the active Y Scale first:

raphschru_1-1724414436797.png

 

Also, not sure specifying the unit label text is useful because it is not even visible.

However, you could concatenate the unit to the scale name. Example: "PT-100-6 [°C]".

 

Regards,

Raphaël.

Message 3 of 3
(13,535 Views)