LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Graph Cursor X position BUG?

Hi, can you somebody verify if what I observe is a bug or just my misunderstanding?

I have used the Cursor.PosX in LV 2009/2010 with no problems but now for some reason this property behaves as Cursor.Index.

 

The thing I try to achieve is to "bring to center" the cursor. Instead of trying to find the closest x coordinate in the data it represents the passed number as index of a point to which it snaps.... It is not expected behaviour in my eyes and it is not how it worked in previous versions.

 

Attached is an example demonstrating the problem. 

Thanks 

LV 2011, Win7
0 Kudos
Message 1 of 5
(2,682 Views)

Actually, it looks like it is doing exactly what the help says it should be doing, to wit:

 

   "Position:X is in the coordinate system of the X Scale value that is associated with the cursor or plot."

 

That statement from the help is talking about coordinate systems not values, hence it is behaving as it should. One reason I can think of why it might appear that the behavior has changed is the multiplier value. If in your previous work you always had a multiplier of 1, then the index would be equal to the 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 2 of 5
(2,670 Views)

Hi Mike,

 

It behaved in a different way before. No changes in Multiplier. I actually disagree about the statement. It would talk aboun an index but it talks about value instead. And then now CursoXPos ans CursorIndex behave the same, don't they? Is that expected?

LV 2011, Win7
0 Kudos
Message 3 of 5
(2,659 Views)

When you read the XPos and increment the value by one it should move the cursor 

a) to the expected coordinate (or the closest one) - if it worked as it used to

b) move it to the next point - if it was representing the value as index

 

None of above happens. It reads it as (a) and writes it as (b). It is a BUG

LV 2011, Win7
0 Kudos
Message 4 of 5
(2,657 Views)

Hi Ceties,

 

this bug in 2011 has been reported and filed in fall 2011, it should be fixed in upcoming version of LabVIEW.

Best regards,
Jano
0 Kudos
Message 5 of 5
(2,636 Views)