LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write Multiple Samples/Channels input dimension

Solved!
Go to solution

When writing multiple samples/channels to a task using 1D array of waveforms, does the input have to match the number of physical lines in the port?

 

E.g. In my task I have defined virtual channels DO on line0 and line2 on a port containing 32 lines. Does my input have to contain 32 arrays or 2?

Actor Framework
0 Kudos
Message 1 of 2
(207 Views)
Solution
Accepted by topic author Quiztus2

@Quiztus2 wrote:

E.g. In my task I have defined virtual channels DO on line0 and line2 on a port containing 32 lines. Does my input have to contain 32 arrays or 2?


Two lines are configured hence there are two channels in that task. The input should be a 1D array of waveform with 2 elements.

 

For DAQmx Write (VI) - Digital 1D Wfm NChan NSamp

data contains a 1D array of waveforms to write to the task. Each element in the array corresponds to a channel in the task.

 

-------------------------------------------------------
Applications Engineer | TME Systems
Message 2 of 2
(178 Views)