01-25-2022 10:16 AM
Hi, I am trying to establish simultaneous analog output on two channels of NI9263. I am using the NI Example code - Analog voltage finite output.vi
I have mentioned the virtual channels as Mod2/ao0:Mod2/ao1. Also modified DAQmx write to "Analog 1D Wfm NChan NSamp". But I get Error - 200524 (screeshot attached): Write cannot be performed, because the number of channels in the data does not match the number of channels in the task.
Can someone please help me resolve the issue?
Solved! Go to Solution.
01-25-2022 02:27 PM
Hi Sakthipriya,
@Sakthipriya wrote:
Also modified DAQmx write to "Analog 1D Wfm NChan NSamp". But I get Error - 200524 (screeshot attached): Write cannot be performed, because the number of channels in the data does not match the number of channels in the task.
The error message is quite clear: DAQmxWrite expects data for two channels, but your array of waveforms only contains data for one channel (aka only one element in the array)…
You need to provide an array of two waveform for two channels!