I am using Measurement Studio 2013 with VS 2012.
I am fetching data from NI PXI 5122 which I want to plot on the graph. I can clearly see the records when printed in console or even on the gridview but I am unable to plot it on the WaveformGraph. Here is my code:
static void PlotWaveformsOnGraph(AnalogWaveformCollection<double> waveforms)
{
List<AnalogWaveform<double>> waveformList = new List <AnalogWaveform<double>>(waveforms);
MainWindow main = new MainWindow();
main.waveformGraph.PlotWaveforms(waveformList.ToArray());
}
there is no error in the above code, also the data is present in WaveformList but not plotting on the graph.