LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple AO tasks for NI 9205

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.   

0 Kudos
Message 1 of 3
(2,660 Views)

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.

Message 2 of 3
(2,655 Views)

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.

 

 

Regards
Vishh
0 Kudos
Message 3 of 3
(2,641 Views)