From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,119 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,103 Views)

thanks, thanks, thanks!!! it works!

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