05-03-2022 05:47 AM
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.
Solved! Go to Solution.
05-03-2022 05:48 AM
This is the file.
05-03-2022 10:59 AM
First, the error is because you have 2 elements in the boolean array constants whereas the Digital Output has only one channel
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...
05-03-2022 11:00 AM
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!