09-15-2024 12:31 PM
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?
Solved! Go to Solution.
09-15-2024 06:23 PM
@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.