07-12-2011 06:01 AM
Hi,
I need a help to read an analog and counter channels from a DAQmx at the same time and plot a XY graph. I know how to read two analog channels using a Flatten Channel.vi. Is there another way to do this, but syncronizing the data?
Thank you!
07-12-2011 07:24 AM
Hi,
You can't really read 2 analog channels at once because the DAQmx only has one ADC in it.
So you need to make a case loop for it, in each case you clear the DAQ tasks and create a new one in it.
http://forums.ni.com/t5/Multifunction-DAQ/Read-Analog-input-channels-in-multiple-VIs/td-p/787892
More information is in this link
Regards,
Stieve
07-12-2011 09:17 AM
commodore: That is plain wrong! The OP can read two or more analog channels from one DAQ at the same time, as long as they are in the same TASK. This is also what the OP is showing in the picture.
But you can't have two or more input TASKs running on the same cDAQ.
You can have an input AND an output TASK running at the same time for one cDAQ.
07-12-2011 09:24 AM
hmmm that's new to me. They always said to me that if I wanted to read 2 or more analogue signals, that I would need to clear the task and create a new one for it.Because the DAQ only has 1 ADC on board...
I knew that you can have an input and an output task at the same time.
07-12-2011 11:11 AM
Ok...reading two analog channel I know. I showed a way that work on a attachment file. My problem is how can I do using one analog channel and other counter channel at the same time and plot a XY Graph.
Thank you!!!
07-14-2011 04:42 AM
but can u read the 2 channels at the exact same time?
is it possible to tell me where u found that first VI? Infront of create channel.
07-29-2011 09:32 AM
Sorry for not answer your question before, but I found this VI in LabView Help. It's possible to read two channels in this way, but in thi example I read two analog measurements. I don't know for one counter and one analog channel. If you want to use that VI, you can find in search with thia name: DAQmx Flatten Channel String.
Thks