Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Channels in Data Doesn't Match Channels in Task

Solved!
Go to solution

 

allen716_0-1651574559843.png

allen716_1-1651574617830.png

 

Hello everyone.

I connect the NI9213 and 9474. I want to create an analog input from 9213 and digital output from 9474 (See in the attached file). But Channels in Data Doesn't Match Channels in Task.

Please help me with it.

Thanks a lot.

0 Kudos
Message 1 of 4
(817 Views)

This is the file.

0 Kudos
Message 2 of 4
(816 Views)
Solution
Accepted by allen716

First, the error is because you have 2 elements in the boolean array constants whereas the Digital Output has only one channel

santo_13_0-1651593474770.png

Next, I would recommend moving away from DAQ Assistant and learning to use DAQmx driver APIs. This is a good article to start with DAQmx (please skip the DAQ Assistant part) - https://www.ni.com/en-us/support/documentation/supplemental/06/learn-10-functions-in-ni-daqmx-and-ha...

 

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 3 of 4
(791 Views)

Sorry, I don't have drivers installed, so I cannot look at your assistant configurations. As a first step, please expand all your array constants so we can see what they actually contain.

 

Showing one element with the index=1 can be cause for endless confusion!

 

altenbach_0-1651593563170.png

 

0 Kudos
Message 4 of 4
(789 Views)