02-25-2006 02:46 PM
HI
We had NI PCI-6723 card and we are not able to generate analog outputs signals simultaneously for one channel with different data.
02-27-2006 06:00 PM
02-28-2006 06:50 AM
03-01-2006 06:11 PM
1. Your understanding is correct.2. You can write different data for each channel, but since you can only have one analog output task per device, you must write all the data at once. To write to multiple channels, do another DAQmxCreateAOVoltageChan to add channels to the task, and put your multi-channel data into DAQmxWriteAnalogF64 as a 2D array.Make sure to look at the DAQmx ANSI C examples located in C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\3. You will have to explain to me what you mean by "configure for hertz". Check out the example located at C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Analog Out\Generate Voltage\Cont Gen Volt Wfm-Int Clk\ to see a simple example of generating a sine wave in DAQmx.4. If you take out the DAQmxIsTaskDone, you still have a while loop (that is now an infinite while loop). So, the loop will continue to run. The DAQmxIsTaskDone is basically there just to check for errors in the task.