LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cursors mysteriously vanish on waveform graph

I have a waveform graph with one x-axis, two y-axes, two plots, and seven cursors.  When you run the code, five of the cursors disappear.  I can find no cause for this.  I also compared the files before and after running (with seven cursors and with two cursors) and the command shell fc command says they are identical.  Is this a LabVIEW bug?  I am running 8.2.1.

Instructions:
1.  Make a copy of Waveform Attributes.vi before running any code.
2.  Open test WA.vi
3.  Open Waveform Attributes.vi
4.  Run test WA.vi

The cursors are now missing on my machine.

This post is related to this one.
Download All
0 Kudos
Message 1 of 5
(2,807 Views)
There are som missing subVIs, so we cannot test.
0 Kudos
Message 2 of 5
(2,796 Views)
Thank you.  I have just now found the error.  In Init Cursors, I had erroneously used autoindexing on the Waveform Object which has only two members and it was truncating the loop early.  Sorry for the bother.
0 Kudos
Message 3 of 5
(2,791 Views)


kc64 wrote:
In Init Cursors, I had erroneously used autoindexing on the Waveform Object which has only two members and it was truncating the loop early. 
Not in the code you attached, though.
0 Kudos
Message 4 of 5
(2,787 Views)
Sorry again.  It is in the Display Cursors state where the cursors got deleted.  See the bottom-left wire with auto indexing.  I replaced that with an index array with index Plot and it works.  You can delete the Log VI in that state and it should run and demonstrate the error.
0 Kudos
Message 5 of 5
(2,783 Views)