Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

waveformGraph 2 channels, but i need only 1

Solved!
Go to solution

Hi all!

 

I use one daq a component for receiving a signal from two channels.

I receive 2 curves on graphics but i want only one. 

How can i draw channel 1 or 2.

 

NationalInstruments.AnalogWaveform<double>[] inpData;
            double[] dataPressure;
            double[] dataDistance;
            while (true)
            {
                    inpData = daqReadData.Read();    

                    dataPressure = inpData[0].GetRawData();
                    dataDistance = inpData[1].GetRawData();
                    
                    waveformGraphPressure.PlotWaveforms(inpData);
             }
                    

 Скриншот 2014-08-27 16.25.15.png

 

 

0 Kudos
Message 1 of 3
(5,888 Views)
Solution
Accepted by topic author mell90

Hi,

 

You've probably figured this out by now, but try this...

 

 

WaveformGraphPressure.PlotY(dataPressure);

 

 

Curt

0 Kudos
Message 2 of 3
(5,872 Views)

thanks, thanks, thanks!!! it works!

0 Kudos
Message 3 of 3
(5,846 Views)