07-18-2008 03:48 PM
I tried using the following code to accomplish this but I get a conversion error.
AnalogWaveform<double>[] waveforms = new AnalogWaveform<double>[2];
for (int m = 0; m <2; m++)
{
double[] dblresult = (double[])waveformArrayList[m]; //waveformArrayList contains two 1D arrays
AnalogWaveform<double> waveformCurrents = AnalogWaveform<double>.FromArray1D(dblResult);
waveforms[m] = waveformCurrents;
}
myWaveformGraph.PlotWaveformsMultiple(waveforms, plotOptions);
On my call to PlotWaveformsMultiple I get the error "Error 3 Argument '1': cannot convert from 'NationalInstruments.AnalogWaveform<double>[]' to 'NationalInstruments.AnalogWaveform[*,*]'.
I would appreciate help in getting my variable declaration syntax corrected (or whatever I need to do) to fix this. I'm not familiar with the syntax [*,*] in a parameter of a method. What does that mean?
Thanks
07-19-2008 06:14 PM
07-21-2008 11:39 AM