取消
显示结果 
搜索替代 
您的意思是: 

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

已解决!
转到解答

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 项奖励
1 条消息(共 3 条)
2,974 次查看

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 项奖励
2 条消息(共 3 条)
2,946 次查看
解答
已被主题作者 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 项奖励
3 条消息(共 3 条)
2,937 次查看