ni.com checkout is currently experiencing issues.

Support teams are actively working on the resolution.

Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Graph 1 column out of 2d array in vb.net w/out a temp array


Hello,
 
I'm using cwgraph to plot time vs a 2d array like so:
 
cwgraph.plotXvsY TimeArray, 2dArray
 
Is there a way to use this same call to plot a selected column out of my 2d array without having to create a temporary 1d Array?  When you have 30 channels with 1,000,000 points per channel it can be time consuming to separate the 2d into 1d arrays.
 
Thanx!
 
B
0 Kudos
Message 1 of 2
(3,543 Views)
Depending on the source of your data, Instead of having a 2d array of the form double[,], can you have an array of arrays? ie. double[][] theArray? In that fashion, you could just pass theArray[0] to be plotted. (Looking at your post again I suspect this will not work given that your DAQ data is probably coming in as [,])...

It's a shame you can't pass IEnumerable<double> into the plotting routines of the NI graphs...
0 Kudos
Message 2 of 2
(3,512 Views)