LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Channels in data do not match channels in task. Can't seem to fix this

Solved!
Go to solution

I'm trying to write on/off to 3 lines instead of just 1(which worked perfectly) but the program either throws an error that I have only 1 channel and 3 data or 3 data and 1 channel. If I have the true/false arrays as having entries, it complains that there is only 1 channel and 3 data. If I have the true/false with 1 entry it complains I don't have enough data lines. 

 

 

0 Kudos
Message 1 of 2
(2,201 Views)
Solution
Accepted by topic author jtboik

I'm not sure on the array of booleans and how that relates to physical channels and lines.  I've always used U8s for digital controls.  I've made that modification and it runs correctly on a simulated NI6221.

 

 

So basically instead of using 3 booleans in an array, pass an array with a single U8 in it with the numeric equivalent of your position.  This would be 0 or 7 for what you are trying to do.  

 

Best, 

 

Tim

Message 2 of 2
(2,189 Views)