06-05-2014 08:39 AM
Hi,
I am working on a project that turns on/off four valves. I am connecting four physical channels to a virtual channel and I am getting an error message that follows:
"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: 1
Number of channels in Data: 4"
I am trying to connect each physical channel to a boolean in an array, can someone look at my VI and see what I am doing wrong?
Many thanks in advance.
06-05-2014 09:05 AM
In order to use a boolean array for multiple digital lines, you have to configure the TASK to have one channel per line. Default is "one channel for all lines".
This setting is called "line grouping" (see Create Virtual Channel vi).
Also, you have to make sure that all arrays you pass have 4 valid elements. From your screenshot, the array sizes (the boolean one) is changing.
Norbert