LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems setting x-index of cursor with property node (cursor ends up close to the correct value but not at it)

LabVIEW 7.1...
 
I am trying to set the x-index of a cursor on a XY-graph to the max value index, as returned from a max/min array function.
 
The index is correct but when I use the property node to set the cursor to that index, the cursor does not align with the proper index.
 
For example, the cursor is being set to 12346 but it ends up at 12258.
 
When I try to type the index in to the graph's controls manually the same thing happens.  I've also noticed that this is the value that the cursor lands at when it is being dragged with the mouse.  For instance, the cursor will land on 12043, 12258, 12473, and so on.  To move the cursor to a value in between any of these the "fine-tuning" graph control (it looks like a diamond with 4 arrows to click on) must be used.  Do I need to progmatically click the fine-tuning control until the cursor is at the value I want or is there a better solution for this (and if not, will that solution work)?
 
Thanks,
 
David
0 Kudos
Message 1 of 5
(3,060 Views)
For the time being I switched all my graphs to "free" mode and wrote an x and y value to the cursor through the property node. 
 
This puts the cursor where I'd like it but forces the user to click on the lock ring before being able to drag the cursor. 
 
David
 
0 Kudos
Message 2 of 5
(3,056 Views)
Is there a Y-axis value that relates to the X-Axis 12346? If not, the graph won't put the value there because the datapoint doesn't exist. If you are wanting to put a cursor at a point between two data points, the cursor can not be locked to the plot and you will have to use interpolation to calculate a Y-axis value to go with the X-axis value.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 5
(3,050 Views)
The datapoint does exist.  Using the fine-tuning cursor control (which steps the cursor 1 unit per click) I can set the cursor to it.
 
David
 
0 Kudos
Message 4 of 5
(3,037 Views)
Can you post the code then?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 5 of 5
(3,028 Views)