LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting default on a waveform plot with multiple y-axis scales

I am plotting 4 waveforms on a waveform plot, and I have a separate y-axis scale for each one.  It works well, except that I have to re-assign each waveform to its scale every time I run the VI.  I am doing this by right-clicking on the plot, selecting Properties, and going to the Plots tab. 

 

The waveforms are passed in as a 1-D array of waveforms.  Is there a way to set defaults for this (perhaps have the first waveform go to the first scale, the second to the seconds scale, etc.?)

Thanks!

James

0 Kudos
Message 1 of 2
(2,525 Views)

If the y are not going to be reassigned regularly, i would just...

 

0) Set them as you have.

 

1) Stop the VI.

 

2) Right-click the chart and select "Make current values default".

 

3) Right-click >>> data operations >>> Clear chart

 

4) Repeat step #2

 

If they change regularly then you can develop code that ...

 

A) Set Active plot

 

B) Set active YScale

 

and loop through that as many times as you need.

 

Ben

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