LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

x-y graph cursor moving

I have an application that uses cursors to "zoom" onto user-selected portions of a waveform that can be acquired at different sample rates. Everything works fine except I cannot keep my cursors on the same portion of the graph when I change the sample rate. Everything else works fine. I've tried everything I can think of and what I've seen posted here: saving the cursor list before I change the sample rate then re-inserting it after the scope refreshes, saving the x locations in shift registers, functional globals, etc. This is extremely confusing. I save the cursor positions in an ini file and can program them into the cursor list with no problem when I start the application, but can't do it internally in the program! Why do the cursor x values change and how can I solve it?
 
PaulG.
7.1.1/2000
PaulG.
Retired
0 Kudos
Message 1 of 3
(2,556 Views)
Can you attach a simple example? What is your version of LabVIEW?
0 Kudos
Message 2 of 3
(2,554 Views)
I think I got it .... but don't ask me how. I was setting the XScale.Offset/Mulitiplier/Maximum properties after I reset the cursors. If I reset the properties before I reset the cursors it seems to  be working. I'm stumped for an explanation. The cursors don't care what the scaling factors are, do they? I thought x position 55.5 usec should be 55. 5 usec regardless of multiplier and array size. Smiley Indifferent
 
PaulG.
7.1.1
PaulG.
Retired
0 Kudos
Message 3 of 3
(2,535 Views)