Are you grouping your channels with one line for each channel or one channel for all lines? Also, what data type are you writing to your port? Unfortunately, I don't have any functional code right now.
The generated data must be a 2D array with the first dimension of the array corresponding to a channel in the task. And each element in the second dimension of the array corresponding to a sample to write to each channel. The order of the channels in the array corresponds to the order in which you add the channels to the task. The order of the lines in the array corresponds to the order in which you add the lines to the channel.
Also, keep in mind that if you are not using on-demand timing you have to call the WaitUntilDone method to allow the device time to configure all the data.
Micaela N
National Instruments