04-04-2008 04:07 AM
04-04-2008 04:09 AM
04-06-2008 10:00 PM
04-07-2008 11:54 AM
Hi ouchie_85,
You can’t have multiple analog output tasks in one device; however you can group all the channels in one task. I believe this error you are getting is because you are starting two analog output tasks in your vi. This knowledge base has information on how to program simultaneous analog output tasks in the same device. Also, have a look at this post that discussed a similar situation. Can you use one task for all the channels? What device are you using in this application? I believe that you must be using one of the Analog output cards, NI-67xx, in which case this developer zone could be helpful.
04-08-2008 09:09 PM
04-08-2008 09:34 PM
The fact that you have dc and ac signals is irrelevant. The type of identical tasks you are prohibited from doing is analog output.
Your VI is very difficult to read (actually, nect to impossible) because the wires go every direction, underneath, on top, etc. I'm sure you can clean it up a lot and then combine all of your signals (ac and dc) into a single task.
04-08-2008 10:03 PM
04-08-2008 10:11 PM - edited 04-08-2008 10:12 PM
Since you are already passing a waveform array to the DAQmx Write, create a waveform for each dc signal and add those to the array. I'm not sure if the number of samples matters. Try it with a waveform type with a single element in the Y array.