06-05-2011 01:13 PM
i an using NI-USB 6008 and when i click run , an error message appear :
Measurements: Write cannot be performed, because the number of channels in the data does not match the number of channels in the task.
When writing, supply data for all channels in the task. Alternatively, modify the task to contain the same number of channels as the data written.
Number of Channels in Task: 4
Number of Channels in Data: 6
Task Name: _unnamedTask<2F>
and error code : Error-200524
06-05-2011 02:30 PM
Either change the number of physical channels to match the number of channels in the data or vice versa. You have not mentioned how many channels you actually want to read from and you have not attached your code.
06-06-2011 01:20 PM
i want to get 4 digital output
06-06-2011 01:34 PM
Then make sure you only have 4 channels worth of data when you do your write. If you are using an array, this means making sure that there are only 4 elements in it.
Why didn't you attach your VI?
06-06-2011 01:39 PM
the VI
06-06-2011 04:59 PM
Clean up the sloppy wiring and you'll see your first comparison is done on all of the output channels of the read DAQ Assistant. Nothing is wired to the middle output of the split signal function.