LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cursors lock to the last point on graphic after I build a exe

When I run the program in the development mode everything works like a charm, however, when a build a stand alone my two horizontal cursors get locked on the last point in the graphic. I did some checking of the graph properties and allow drag is true I can drag the cursors to some point on the graph but as soon as i let go of the mouse they snap back to the last point. Has this been a problem in the past or is it just my application? Just a side note this is a very very large application and everything is working wonderfully exept the cursor thing.  I am not changing the cursor postion programatically.
Mark Mutton
Electrical Engineer
0 Kudos
Message 1 of 6
(3,263 Views)
Hello Mark,
 
I could not reproduce the behaviour on my side. Which version of LabVIEW are you using?
Try deleting the waveform graph and putting down a new one. Also, if you could post a VI that reproduces this error than that would be helpful.
 
Regards,
Chetan K
Application Engineer
National Instruments
0 Kudos
Message 2 of 6
(3,243 Views)
Ok i think i have disappeared the problem but have not yet discovered a soln. My two cursors were set to single plot, all plots so overtime i would try to change there values they would snap to the end of the waveform.  I have changed them to single plot, formula result and all is well, except when i try to change the Position X attribute progratically (nothing happens). In the code i tryed to change the cursor mode to free--change position X---cursor mode single plot.  This methodology works fine in the development version, but again when i make a stand alone the cursors snap to the left of the graphic whenever the code i just descrbed exicutes. Is there somthing funky going on with the cursor mode free attribute in an exe.  Also i read on another thread that when a cursor is set to single plot formula result you have to use index to move the cursor is this true?   I will work on making an example to mimic the error and try to post it tomorrow, but untill then if someone has a fix let me know.
Mark Mutton
Electrical Engineer
0 Kudos
Message 3 of 6
(3,232 Views)
You still haven't told us your LabVIEW version. 😉
 
0 Kudos
Message 4 of 6
(3,229 Views)
Sorry about that. LV8.0
Mark Mutton
Electrical Engineer
0 Kudos
Message 5 of 6
(3,224 Views)

The problem has been fixed.  Apparently if you have more than one set of crsrlist property nodes in the same while loop the cursor plot value gets forced to -1 regardless of what values are being changed. This is what was causing me all the problems.

Mark Mutton
Electrical Engineer
Message 6 of 6
(3,213 Views)