Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

WaveformGraph simple X Y point

I can't seem to find a simple example of how to populate a Waveform and Complex graph with X, Y points. I have an array of X points and I have an array of Y points. I simply want to pass to the graph those points to populate the graph.

 

Thanks!

0 Kudos
Message 1 of 2
(3,931 Views)

WaveformGraph is meant to be used in scenarios where you have a single array of double values. You can use either WaveformGraph.PlotX() or WaveformGraph.PlotY() overloads.

 

ScatterGraph suits the context when you want to plot array of (x, y), where x and y are double[]. ScatterGraph.PlotXY() should be good enough for you.

 

Complex graph can take in an array of CompledDouble type. ComplexDouble has a pair of double values, that is (real, imaginary). You can treat them as (X, Y) pairs and plot your data by using ComplexGraph.PlotComplex() method.

 

If you simply want to plot arrays of X and Y, where X and Y are double[], then ScatterGraph serves the pupose.

 

Regards,

Vijet Patankar

National Instruments

0 Kudos
Message 2 of 2
(3,926 Views)