LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

connecting physical channels to virtual channels

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.

0 Kudos
Message 1 of 2
(2,413 Views)

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

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 2
(2,406 Views)