LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Add second Y Scale on the right side of a Chart

Solved!
Go to solution

Hello,

 

I am using a Waveform Chart to display temperatures (Y-Scale) versus Time (X-Scale).

My chart is quite wide, to see a "long" time range, and I would like to simply copy the Y-Scale

and display it on the right side of the chart again, simply for better readability of the temperatures.

I have tried with the customize option but I am not able to copy and paste the Y-Scale.

 

Thanks,

 

Patrick

0 Kudos
Message 1 of 5
(9,006 Views)

right click on the Y-scale itself and choose duplicate scale.

 

Then click on new and choose "swap sides'

 

From teh plot legend pop-up on a plot and choose scale the data should be plotted against.

 

If this is just for display then you can leave the plot seetings associated with scale alone.

 

If you are auto-scaling you will need extra code to keep the two scales sync'd up.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 5
(9,001 Views)

Hi Ben,

 

Thanks for your answer. Can I control the second scale with a property node as well?

I am using a property node for the first Y scale to set the Y Min/Max values with a button.

I am doing this to "rescale" my chart in case I have been zooming or moving around in it, to be able to see

the "whole" chart again quickly. The additional scale works fine with the zoom, but it does not rescale.

 

Thanks

 

Patrick

0 Kudos
Message 3 of 5
(8,960 Views)
Solution
Accepted by topic author pat777

When using multiple scales you will have to set the "ActiveScale" before applying changes. You can avoid race conditions if you expand your property node to include the active scale as the first property.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 4 of 5
(8,955 Views)

Thanks Ben, that does the job perfectly.

0 Kudos
Message 5 of 5
(8,926 Views)