10-25-2014 10:35 PM
Hi all,
I have problem when using low level DAQmx to create more than 2 channels in one VI. I want to create more than 2 channels for AI measurement. The error said I can not use 2 "DAQmx start task" module at the same time. How to solve this problem?
BTW, do I need to set clock module for each channel? How to make them share the same clock settings?
It's not a problem when using DAQ assistant as I can easily choose more than 2 channels and make them share the same clock settings but with different input range.
Thanks
best
10-26-2014 11:48 AM
If you want to share a timing source, create two channels and add them to the same task.
10-26-2014 08:15 PM
So what you are doing with the DAQ Assistant is creating a single task with many channels in it. You need to do the same with the DAQmx API. Look at the DAQmx Create Channel VI. There is an input for the task to add that channel to. Use that to add channels to your task. But then when you perform the read, be sure to use the Multiple Channels option on the DAQmx Read.
10-27-2014 10:08 AM
Hello iyearning;
The thing about what you are trying to use is that you can't create more than one AI input task at the same time, what you can do is select multiple channels for the same task, and that way you can acquire from them all. You can do so following this Knowledge Base:
http://digital.ni.com/public.nsf/allkb/A3A05920BF915F1486256D210069BE49
To address your question about the clock, you configure that for the task, so if you select multiple channels for that task, they will; all have the same clock configuration.
Juan B.
National Instruments