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

resetting cursor lists programmatically

已解决!
转到解答

This appears to work but goes to pot when you try to reprogram the ursorlist property to something else.  See attached VI.

0 项奖励
11 条消息(共 31 条)
2,747 次查看

What exactly should we be seeing with that attached VI?  It appears to be the original version of the workaround.

 

Edit:  Oops opened wrong version, now I see the added PN.  This is crashing my LV10 pretty hard anytime I try to manually change a cursor in the list.  Plus the CursorList reads empty when I try it.

0 项奖励
12 条消息(共 31 条)
2,742 次查看

This VI Takes an existing graph that has cursors, resets its cursor lists, then attempts to program the cursor list property with the original values that were in the graph.  The original cursorlist does not make it into the listing.

0 项奖励
13 条消息(共 31 条)
2,731 次查看

The issue here is that the cursor list in the graph has been corrupted somehow. If you look in the cursorlist property, nothing is in there. The graph does not think that it has any cursors. The tree control which the cursor list is using however still has text in it, this is a bug. You can tell that the cursors are not really there because there is no glyph there for the cursor. I'm not sure how this happened but if you drop a new graph from scratch you should not run into this situation.

0 项奖励
14 条消息(共 31 条)
2,711 次查看

I should clarify: if you drop a new graph from scratch you should not run into this problem in LabVIEW 2011.

0 项奖励
15 条消息(共 31 条)
2,702 次查看

why do I have to answer that question?  Something tells me NI can delete postings to their own forums...

0 项奖励
16 条消息(共 31 条)
2,634 次查看

This seems to work to reset the cursor list programmatically, but I have experienced a big problem with programming the cursorlist property in LV 2012 to add a cursor from a blank list.  It worked fine with LV 2011 and creates stack overflow failures in 2012.  Thought it may be my machine memory, but it isnt because I just upgraded it to 16G.  There is definietly soemthing odd about this property.  What is the proper way to add a cursor programmatically and which properties are interactive that can cause errors like active cursor, watch all plots, etc?  I.E if a value is out of bounds for the graph, can there be a stack overflow issue?

0 项奖励
17 条消息(共 31 条)
2,631 次查看

If you want to have the attachment of a forum post deleted, select “Options” in the upper right corner, and then select “Report to a Moderator.” This opens a window that allows you to let a Moderator know why you are reporting the post. State that you wanted to have the attachment deleted and a moderator will be notified.

0 项奖励
18 条消息(共 31 条)
2,608 次查看

@id wrote:

This seems to work to reset the cursor list programmatically, but I have experienced a big problem with programming the cursorlist property in LV 2012 to add a cursor from a blank list.  It worked fine with LV 2011 and creates stack overflow failures in 2012.  Thought it may be my machine memory, but it isnt because I just upgraded it to 16G.  There is definietly soemthing odd about this property.  What is the proper way to add a cursor programmatically and which properties are interactive that can cause errors like active cursor, watch all plots, etc?  I.E if a value is out of bounds for the graph, can there be a stack overflow issue?


This should not cause a stack overflow issue. Can you attach a simple VI that demonstrates the stack overflow? I can't seem reproduce it from scratch.

0 项奖励
19 条消息(共 31 条)
2,591 次查看

@Wonger wrote:

The issue here is that the cursor list in the graph has been corrupted somehow. If you look in the cursorlist property, nothing is in there. The graph does not think that it has any cursors. The tree control which the cursor list is using however still has text in it, this is a bug. You can tell that the cursors are not really there because there is no glyph there for the cursor. I'm not sure how this happened but if you drop a new graph from scratch you should not run into this situation.


Something like this?

 

ScreenHunter_001.jpg

 

Opening the Graph Properties Window results in:

 

ScreenHunter_002.jpg

 

 

Steps to reproduce: try to update the Cursor List programmatically.

And the workaround is to drop a new graph control? Terrific...

0 项奖励
20 条消息(共 31 条)
2,535 次查看