03-08-2011 12:26 PM
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
03-08-2011 01:25 PM
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