Multifunction DAQ

取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 5 条)
4,505 次查看

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?



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 项奖励
2 条消息(共 5 条)
4,474 次查看

Thanks.

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

0 项奖励
3 条消息(共 5 条)
4,462 次查看

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 项奖励
4 条消息(共 5 条)
4,458 次查看

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 项奖励
5 条消息(共 5 条)
4,442 次查看