LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I set cursor.index to anywhere in the graph array?

I am using LV 8.5.1 and feeding an XY graph with an X-Y array of data. Only a section of the array is displayed on the graph. I have a cursor (single-plot).

 

I would like to set Cursor.Index property node of the cursor associated with the plot to the maximum index value of the graphed array regardless of the XScale range. I don't seem to be able to do it. I cannot set it beyond a certain number. When I rescale the graph I have a new maximum number. Is this what should happen?

 

To get around this, I am momentarily setting the XScale.ScaleFit property to 1, which then allows me to set Cursor.Index to maximum (I then immediately reduce my scale range appropriately). I am having to do this before every occurrence of setting the Cursor.Index in case the new setting exceeds the currently allowed maximum value. Just seems a bit clunky.

 

Thanks for any help.

0 Kudos
Message 1 of 2
(2,816 Views)
This is no longer a problem. My data is too big to feasibly be fed into a graph so am having to chop it up and use my own index pointer.
0 Kudos
Message 2 of 2
(2,797 Views)