ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

axis count

I'm currently working on a tool which allows graph manipulation..... I want to keep the code generic, hence my following problem.

 

I need to be able to set the axes programatically to autoscale or not, but I have a slight problem.  I can't find any way to determine the number of X-axes or Y-axes on a graph short of trying to set the index and wqaiting for an error.  Is there not a better way to do this?  Why is there no axis count property?

 

Shane.

0 Kudos
Message 1 of 4
(3,457 Views)

Hi Shane,

you can use the error method to count the available scales before really using it. Smiley Happy

 

Mike

Message 2 of 4
(3,454 Views)

Ah, that's true.

 

Since the number of axes can't change during run-time it's a one-off thing for each graph, right?

 

That's not so bad.

 

 Thanks.

 

Shane.

0 Kudos
Message 3 of 4
(3,451 Views)

Intaris wrote:

Since the number of axes can't change during run-time it's a one-off thing for each graph, right?

...


yes, afaik itÂŽs not possible to change it at runtime.

 

Mike

Message 4 of 4
(3,445 Views)