LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I programatically add an additional Y axis on an XY graph?

I have written a DAQ application using LV8.2.  The application monitors dozens of channels, and I would like to selectively show the channels on a graph. The only problem I am running into is that I can not dynamically add and remove Y Axes to and from the graph.

I HAVE been able to add a fixed number of axes, then toggle visibility on them as needed. Aside from the axis count limitation, this presents its own problem because I find that it doesnt reliably automatically shift the graph width to accomodate for the new Axis, and the Axis ends up bleeding off the left edge of the control.

Is it possible to programmatically add and remove Y Axes? Is it possible to determine the width of the axes and progammatically adjust the graph width?

Thanks in advance!
0 Kudos
Message 1 of 2
(2,919 Views)
Hi tlivingston,

I believe the discussion forum How can I add axis to an XY-graph programmatically (in LV 6i)? discusses this issue.

As for setting the width of the axes, how to set the graph margin width? discusses this.

Cheers.

| Michael K | Project Manager | LabVIEW R&D | National Instruments |

0 Kudos
Message 2 of 2
(2,896 Views)