LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

resetting cursor lists programmatically

Solved!
Go to solution

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

0 Kudos
Message 11 of 31
(2,502 Views)

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 Kudos
Message 12 of 31
(2,497 Views)

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 Kudos
Message 13 of 31
(2,486 Views)

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 Kudos
Message 14 of 31
(2,466 Views)

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

0 Kudos
Message 15 of 31
(2,457 Views)

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

0 Kudos
Message 16 of 31
(2,389 Views)

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 Kudos
Message 17 of 31
(2,386 Views)

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 Kudos
Message 18 of 31
(2,363 Views)

@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 Kudos
Message 19 of 31
(2,346 Views)

@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 Kudos
Message 20 of 31
(2,290 Views)