LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Mixed Signal Graph: Cursor Position Property for Multi-Plot Cursor

I'm working 6 waveforms on 3 different plot areas in a mixed signal graph in LV2009.  When I try to pull the Cursor.PosY property from my cursor (in which Watch All Plots is True, and is set to Multi-Plot in the graph properties), it returns the value of only the first plot in the cluster of waveforms fed into the graph.  I've tried changing the active plot, active plot area, nothing changes.  I am able to retrieve each value via the cursor legend, but I cannot pull each of those values into another portion of my program.  Also, I noticed that when setting events in an event structure, any events relating to a cursor drag aren't present as they are in a waveform graph.  My workaround is to create an indicator for the Cursor.PosX property and monitor when that value changes, but I feel there should be an easier way.  Any help is appreciated.

 

Thank you in advance!

0 Kudos
Message 1 of 6
(4,743 Views)

Could you post a simple VI which shows this behavior?

Ben J.
National Instruments
Applications Engineer
0 Kudos
Message 2 of 6
(4,725 Views)

Ben,

 

Thank you for your reply.  Here's an example of what I'm dealing with.  You can see that the output for the cursor y position property only returns the value of one (the first) graph, where as the cursor legend reports all y values at that x cursor value.

0 Kudos
Message 3 of 6
(4,720 Views)

Jeanius,

   I am not quite sure why the cursor pos in the Wavegraph reference does not change when you change the active plot, but if you grab a reference to the specific cursor and then change the active plot things you receive the expected behavior.

Ben J.
National Instruments
Applications Engineer
0 Kudos
Message 4 of 6
(4,706 Views)

Thanks for the advice.  Could you repost the VI for LV9?  I can't open that file.

0 Kudos
Message 5 of 6
(4,691 Views)

For LV2009.

Ben J.
National Instruments
Applications Engineer
0 Kudos
Message 6 of 6
(4,685 Views)