06-27-2011 08:31 PM
Hi,
I have created two AO tasks to write different values to two channels in NI9205 module. And I am reading them through two channels using NI9263 module. For some reason I am unable to read correct values from both the channels. Only one is working fine. I double checked the wiring and the channel numbers.
I am not sure whether we can create two AO tasks in a single program. Any inputs are apppreciated.
06-27-2011 09:51 PM
No, you can't have two separate tasks. You should do a search for the error code you are getting.
It is however, simple to wite to multiple channels in a single task - as the answers to your search would have shown.
06-28-2011 12:15 PM
Hi Dennis,
Thanks for the message. I figured it out. I selcted DAQwrite polymorphicvi to 'multiplechannles single sample instance' and passed 1D array of data, array elements in the order of channels, and it worked.