Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

getting multiple values from a waveform graph in C#

Hi,

 

I am using a waveform graph with multiple Y axis. As I am using only one cursor, Is it possible that when ever I move my cursor it displays x,y positions of all the plots on the waveform graph.

 

Regards,

Naureen.

0 Kudos
Message 1 of 5
(6,610 Views)

Hi Naureen,

 

The MultiPlotCursor will display data across all of your plots that share a common axis. So if you have multiple y-axes that share a single x-axis, binding or setting MultiPlotCursor.HorizontalAxis to that x-axis will give you a vertical cursor that displays data across all of those plots, at least when they share x-values.

 

-Aaron

0 Kudos
Message 2 of 5
(6,593 Views)

Hello,

 

Please can I have some code sample in C#.

 

Regards,

Naureen.

0 Kudos
Message 3 of 5
(6,571 Views)

Hey Naureen,

 

I realized you are likely talking about Windows Forms controls, while I was referring to the WPF graph. Unfortunately, my expertise is on WPF, not Winows Forms, so someone else will have to respond to your question.

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

Hi Naureen,

 

Unfortunately, the cursor in Windows Forms is bound to only 1 plot. However, you can write your own custom methods to draw the cursor. In this forum post here, Vijet provides some sample code on how to do this.

National Instruments
0 Kudos
Message 5 of 5
(6,561 Views)