12-09-2009 04:55 PM
12-29-2009 03:07 PM
Hi Eagle,
If I understand your application correctly, I believe that there could be a few ways of accomplishing this. One option would be to run one task at a time, with the separate channels in each task. When you say that you want the first pattern to be written and then the second one- how much time do you want to be in between those writes? Another option could be to create one task that contains both channels, and then write an array that contains 2 columns of data- one with your waveform, and the other full of zeroes. Perform your write (so that the first channel outputs data and the second channel outputs 0), then switch the columns of the array and write again (so that the second channel outputs data, and the first channel outputs 0).
Either of these options may work for you- let me know if you need further clarification. You may also find the following links helpful:
Multiple Waveforms on Different Channels
Simultaneously Writing to/Reading Samples to/from Multiple Analog Channels
Have a good one!