LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cursor Position not able to move beyond some limits when programmed with position change

Solved!
Go to solution

I have the attached VI which has 2 buttons on it to move the cursor right and left by one increment when depressed.  (The code works when I substitute another mixed signal graph wiht the same data as this one) .  For some reason, the cursor will not move beyond 608 to the left and 613 to the right.  I have the watch all plots turned on but it does not seem to effect the thing.   Any ideas as to why this is happening?

0 Kudos
Message 1 of 3
(2,670 Views)

No. There are many Position.X values that cannot be reached by applying the buttons.

Even more obscure:  When replacing the +1 and -1 operations (that modify the Position.X property) by adding and substracting e.g. 1.3 the situation changes:  The cursor no longer hangs but now skips the values that cannot be reached.  Who knows more?

0 Kudos
Message 2 of 3
(2,642 Views)
Solution
Accepted by topic author id

I have not studied in detail what's happening in your case, but since the cursors are locked to plots, it seems more reasonable to use the "cursor index" property. It defines the index position of the data array where the cursor is locked to. Seems to work just fine (and without all that convoluted song and dance with cursor lists and label names).

 

 

Try this:

 

 

 

(I would also strongly recommend to stay away from easter egg coloring of the diagram. A boolean wire is difficult to see on a green background. There is not a single background color that does not interfere with at least one wire color. Don't try to be cute, focus on the coding task instead.

0 Kudos
Message 3 of 3
(2,633 Views)