Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

waveform array from multichannel DAQ

Hi,

I was using multiple channels of a DAQ device (NI-6002), and trying to get multiple waveforms from multiple channels.

Following instruction, I can select multiple physical channels in DAQmx, and read by using "Analog 1D Wfm NChan NSamp". After that I used index array to get waveform from different channels out. However, this did not work.

If I select only one channel, then it works perfectly. But it just refused to work with multiple channels.

A screen shot is attached, any suggestion will be very helpful.

Thanks

 

0 Kudos
Message 1 of 5
(3,961 Views)

What exactly do you mean by "this did not work"?  Did you get an error?  Did you just not see the data from all of the channels?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 5
(3,930 Views)

Thanks.

I got all zeros with length of 100 - although in the DAQmx setting I have set to collect 50K data points.

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

Hello,

 

Judging from the attached picture, you should connect the task out from the configure timing VI to the task in in your Start Task VI.

 

It may help a little bit more to use an example code to ensure that your code functions as intended. These can be found by going to Help >> Find Examples.

 

Then Navigate to Hardware Input & Output >> DAQmx >> Analog Input >> whichever VI seems to work best for you.

 

I would recommend starting with an example code, and then modifying it as needed.

 

Best,

 

Shamik C

Applications Engineer 

National Instruments 

http://www.ni.com/support 

0 Kudos
Message 4 of 5
(3,914 Views)

It turns out to be a data rate issue. I was running the DAQ board at full speed, this works fine for single channel; however, with more channels selected, data rate for each channel should be reduced proportionally. And this is why the code failed for multi channel.

Guess reading error message helps 🙂

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