LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to generate multi-channel voltage at same time

I am a new Labwindows user,I need to use the onboard clock to update 4 voltage arrays in 4  different AO channels .After I Write all of my 4 voltage arrays into the buffer ,I find it can only generate one by one, more than starting at same time .Should I use two-dimensional array to save the 4 voltage arrays ,which will be write to the buffer by using this two-dimensional array rather then four one-dimensional arrays?Thank you for your help.

0 Kudos
Message 1 of 4
(4,717 Views)

Try to set the channel like this:"6229/ai0:3"

0 Kudos
Message 2 of 4
(4,705 Views)

I have set my channel like"Dev1/ao0:1",but when I write my voltage data into the buffer ,some error happen.The error info is like this "FATAL RUN-TIME ERROR:   "work.c", line 224, col 121, thread id 0x0000E838:   Array argument too small (4000000 bytes).  Argument must contain at least 8000000 bytes (1000000 elements)."

My board is NI6343,I use the DAQmxWriteAnalogF64 function ,the datalayout is interleaved.

0 Kudos
Message 3 of 4
(4,491 Views)

This question is related to this other thread where there can be a solution



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 4 of 4
(4,437 Views)