LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simultaneous analog output on multiple channels (NI 9263)

Solved!
Go to solution

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?

 

0 Kudos
Message 1 of 2
(884 Views)
Solution
Accepted by topic author Sakthipriya

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!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 2
(856 Views)