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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Two 1D Waveforms

Solved!
Go to solution

I am using DAQmx Read (Analog 1D wfm NChan NSamp).vi twice, once to read Dev/ai0 and Dev/Ai1, two analog inputs from a PXI-6052.  I can make a waveform chart plot either one or the other, but I want them both to appear on the same waveform chart.  How do I do this?

 

Thanks,

 

Kevin

 

0 Kudos
Message 1 of 6
(3,270 Views)
Solution
Accepted by atomless
Use an array. Check the example that ships with LabVIEW.
Message 2 of 6
(3,264 Views)
But why would you be using two separate DAQmx Reads?
Message 3 of 6
(3,255 Views)

Hi Dennis:  How do you use a single DAQmx Read for more than one input?

 

Thanks,

 

Kevin

 

0 Kudos
Message 4 of 6
(3,182 Views)
Just by specifying multiple channels. For example, Dev1/ai0:ai1. You can choose multiple channels by clicking on the physical channel control and selecting browse.
Message 5 of 6
(3,178 Views)

Like this:

channels4.png

---

Peter Flores
Applications Engineer
Message 6 of 6
(3,131 Views)