03-08-2013 08:43 AM
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?
Solved! Go to Solution.
03-09-2013 06:26 AM
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?
03-09-2013 01:58 PM - edited 03-09-2013 02:00 PM
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.